Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001392/0.001392, allocations: 85.31 kB / 20.68 MB, free: 1.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001482/0.001482, allocations: 165.6 kB / 23.95 MB, free: 4.168 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.458/1.458, allocations: 177.1 MB / 204.3 MB, free: 9.188 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.412e-06/1.412e-06, allocations: 0 / 325.1 MB, free: 0.5273 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.684e-05/2.825e-05, allocations: 5.516 kB / 325.1 MB, free: 0.5234 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004255/0.004283, allocations: 2.708 MB / 327.8 MB, free: 14.69 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001859/0.006142, allocations: 0.7404 MB / 328.5 MB, free: 14.17 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001561/0.006298, allocations: 4.75 kB / 328.5 MB, free: 14.17 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001988/0.006497, allocations: 52.05 kB / 328.6 MB, free: 14.14 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002443/0.006741, allocations: 99.02 kB / 328.7 MB, free: 14.07 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004044/0.007146, allocations: 104.1 kB / 328.8 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005334/0.007679, allocations: 377.8 kB / 329.1 MB, free: 13.82 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002222/0.007901, allocations: 84.75 kB / 329.2 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003012/0.008202, allocations: 213.6 kB / 329.4 MB, free: 13.69 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002484/0.008451, allocations: 113.4 kB / 329.6 MB, free: 13.65 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.595e-05/0.008527, allocations: 30.25 kB / 329.6 MB, free: 13.65 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.703e-05/0.008594, allocations: 34.94 kB / 329.6 MB, free: 13.64 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.42e-05/0.008678, allocations: 70.34 kB / 329.7 MB, free: 13.6 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001742/0.008852, allocations: 115.2 kB / 329.8 MB, free: 13.55 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000626/0.009478, allocations: 379.7 kB / 330.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.009482, allocations: 0 / 330.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.009483, allocations: 0 / 330.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.162e-05/0.009495, allocations: 0 / 330.2 MB, free: 13.4 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.001257/0.01075, allocations: 0.5343 MB / 330.7 MB, free: 12.98 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.944e-05/0.01079, allocations: 9.188 kB / 330.7 MB, free: 12.98 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.997e-05/0.01088, allocations: 39.2 kB / 330.7 MB, free: 12.96 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003733/0.01125, allocations: 202.9 kB / 330.9 MB, free: 12.76 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001436/0.0114, allocations: 131.3 kB / 331.1 MB, free: 12.62 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.152e-05/0.01146, allocations: 31.06 kB / 331.1 MB, free: 12.61 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006593/0.01212, allocations: 350.8 kB / 331.4 MB, free: 12.36 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.417e-05/0.01213, allocations: 192 / 331.4 MB, free: 12.36 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.733e-05/0.01217, allocations: 19.41 kB / 331.5 MB, free: 12.34 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.001e-05/0.01218, allocations: 6.844 kB / 331.5 MB, free: 12.34 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003825/0.01256, allocations: 189.9 kB / 331.7 MB, free: 12.25 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001836/0.0144, allocations: 0.9629 MB / 332.6 MB, free: 11.43 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004009/0.0148, allocations: 151.2 kB / 332.8 MB, free: 11.34 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001534/0.01495, allocations: 76.28 kB / 332.8 MB, free: 11.3 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.589e-05/0.01498, allocations: 2.375 kB / 332.8 MB, free: 11.3 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003405/0.01532, allocations: 202.9 kB / 333 MB, free: 11.12 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.823e-06/0.01532, allocations: 0 / 333 MB, free: 11.12 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001143/0.01646, allocations: 320.4 kB / 333.4 MB, free: 10.94 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.297e-05/0.01656, allocations: 110 kB / 333.5 MB, free: 10.81 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002474/0.01681, allocations: 205.7 kB / 333.7 MB, free: 10.66 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.036e-05/0.01685, allocations: 30.92 kB / 333.7 MB, free: 10.62 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000146/0.01699, allocations: 180.7 kB / 333.9 MB, free: 10.46 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.801e-05/0.01707, allocations: 76.48 kB / 333.9 MB, free: 10.39 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001086/0.01718, allocations: 62.08 kB / 334 MB, free: 10.34 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001675/0.01735, allocations: 332.2 kB / 334.3 MB, free: 10.02 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001376/0.01748, allocations: 67 kB / 334.4 MB, free: 9.984 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002445/0.01773, allocations: 188.4 kB / 334.6 MB, free: 9.801 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003229/0.01805, allocations: 196.5 kB / 334.8 MB, free: 9.66 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.01805, allocations: 0 / 334.8 MB, free: 9.66 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005135/0.01857, allocations: 276.5 kB / 335 MB, free: 9.508 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.997e-05/0.01859, allocations: 5.438 kB / 335 MB, free: 9.508 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.174e-05/0.0186, allocations: 10.23 kB / 335.1 MB, free: 9.5 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003079/0.01891, allocations: 54.52 kB / 335.1 MB, free: 9.469 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002451/0.01915, allocations: 52.94 kB / 335.2 MB, free: 9.457 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001775/0.02093, allocations: 1.436 MB / 336.6 MB, free: 8.02 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002563/0.02118, allocations: 41.67 kB / 336.6 MB, free: 7.992 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.255e-05/0.02121, allocations: 9.031 kB / 336.7 MB, free: 7.992 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,switch2.tSwitch,$PRE.switch2.tSwitch,switch2.quenched,$PRE.switch2.quenched,switch2.off,$PRE.switch2.off,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.000189/0.02139, allocations: 152.5 kB / 336.8 MB, free: 7.848 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.88e-05/0.02143, allocations: 18.75 kB / 336.8 MB, free: 7.84 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.912e-05/0.02148, allocations: 22.97 kB / 336.8 MB, free: 7.828 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.919e-06/0.02149, allocations: 5.188 kB / 336.8 MB, free: 7.824 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.956e-06/0.02149, allocations: 1.5 kB / 336.8 MB, free: 7.824 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.302e-06/0.0215, allocations: 7.984 kB / 336.9 MB, free: 7.816 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002874/0.02178, allocations: 213.2 kB / 337.1 MB, free: 7.629 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.368e-06/0.02179, allocations: 5.172 kB / 337.1 MB, free: 7.625 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001726/0.02196, allocations: 33.92 kB / 337.1 MB, free: 7.617 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001915/0.02215, allocations: 48.94 kB / 337.1 MB, free: 7.59 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.923e-05/0.02217, allocations: 5.75 kB / 337.2 MB, free: 7.586 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001372/0.02354, allocations: 1.299 MB / 338.5 MB, free: 6.277 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.947e-06/0.02355, allocations: 4 kB / 338.5 MB, free: 6.273 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000683/0.02423, allocations: 336.5 kB / 338.8 MB, free: 6.066 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.137e-05/0.02431, allocations: 32.52 kB / 338.8 MB, free: 6.043 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.803e-05/0.02435, allocations: 14.69 kB / 338.8 MB, free: 6.031 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001757/0.02453, allocations: 16.89 kB / 338.8 MB, free: 6.023 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001002/0.02463, allocations: 31.47 kB / 338.9 MB, free: 6.004 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.419e-05/0.02464, allocations: 3.5 kB / 338.9 MB, free: 6.004 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000141/0.02478, allocations: 147 kB / 339 MB, free: 5.895 MB / 302.1 MB Notification: Performance of sort global known variables: time 9e-08/0.02478, allocations: 1.312 kB / 339 MB, free: 5.895 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003948/0.02518, allocations: 82.25 kB / 339.1 MB, free: 5.875 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (inductor1.i,inductor2.i) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,booleanPulse.pulseStart,switch2.off,switch2.quenched,switch2.tSwitch) * Number of discrete states: 2 (switch2.quenched,switch2.off) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001557/0.02533, allocations: 112 kB / 339.2 MB, free: 5.773 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005914/0.02592, allocations: 276 kB / 339.5 MB, free: 5.59 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.02593, allocations: 1.438 kB / 339.5 MB, free: 5.59 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003068/0.02623, allocations: 191.6 kB / 339.7 MB, free: 5.438 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002999/0.02653, allocations: 37.67 kB / 339.7 MB, free: 5.414 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001697/0.02823, allocations: 0.593 MB / 340.3 MB, free: 4.996 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002073/0.02844, allocations: 151.4 kB / 340.5 MB, free: 4.883 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001099/0.02855, allocations: 27.42 kB / 340.5 MB, free: 4.867 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.622e-05/0.02861, allocations: 20.09 kB / 340.5 MB, free: 4.855 MB / 302.1 MB Notification: Performance of SimCode: time 3.3e-07/0.02861, allocations: 1.531 kB / 340.5 MB, free: 4.855 MB / 302.1 MB Notification: Performance of Templates: time 0.008027/0.03664, allocations: 2.889 MB / 343.4 MB, free: 2.18 MB / 302.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.415265142917633]