Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007893/0.0007893, allocations: 76.48 kB / 9.931 MB, free: 0.7617 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009332/0.001722, allocations: 449.7 kB / 10.37 MB, free: 332 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0006142/0.0006142, allocations: 148.9 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008037/0.001418, allocations: 459.6 kB / 11.69 MB, free: 2.48 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9146/0.9146, allocations: 173.4 MB / 185.8 MB, free: 8.992 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.07653/0.9912, allocations: 52.49 MB / 238.3 MB, free: 4.434 MB / 234.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.924e-06/1.924e-06, allocations: 0 / 239.6 MB, free: 3.16 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.289e-05/1.482e-05, allocations: 2.312 kB / 239.6 MB, free: 3.156 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.002575/0.00259, allocations: 2.901 MB / 242.5 MB, free: 252 kB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001015/0.003605, allocations: 0.7435 MB / 243.2 MB, free: 15.5 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001073/0.003712, allocations: 4 kB / 243.2 MB, free: 15.49 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 8.368e-05/0.003796, allocations: 51.5 kB / 243.3 MB, free: 15.44 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001326/0.003929, allocations: 99.06 kB / 243.4 MB, free: 15.34 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002145/0.004143, allocations: 103.7 kB / 243.5 MB, free: 15.24 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002776/0.004421, allocations: 386.1 kB / 243.8 MB, free: 14.86 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001369/0.004558, allocations: 86.28 kB / 243.9 MB, free: 14.77 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001919/0.00475, allocations: 235.4 kB / 244.2 MB, free: 14.54 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001342/0.004884, allocations: 111.7 kB / 244.3 MB, free: 14.43 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.75e-05/0.004921, allocations: 28 kB / 244.3 MB, free: 14.41 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.16e-05/0.004953, allocations: 32 kB / 244.3 MB, free: 14.38 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 3.85e-05/0.004991, allocations: 51.81 kB / 244.4 MB, free: 14.32 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 7.989e-05/0.005071, allocations: 99.81 kB / 244.5 MB, free: 14.23 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002385/0.00531, allocations: 231.1 kB / 244.7 MB, free: 14 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.441e-05/0.005324, allocations: 0 / 244.7 MB, free: 14 MB / 250.7 MB Notification: Performance of FrontEnd: time 5.41e-07/0.005325, allocations: 0 / 244.7 MB, free: 14 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.581e-05/0.00534, allocations: 0 / 244.7 MB, free: 14 MB / 250.7 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.0006261/0.005967, allocations: 0.5791 MB / 245.3 MB, free: 13.39 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.843e-05/0.005995, allocations: 8.031 kB / 245.3 MB, free: 13.39 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.543e-05/0.00605, allocations: 52.89 kB / 245.3 MB, free: 13.34 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001848/0.006235, allocations: 181.2 kB / 245.5 MB, free: 13.13 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.113e-05/0.006316, allocations: 124 kB / 245.6 MB, free: 12.99 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.362e-05/0.00635, allocations: 28.38 kB / 245.7 MB, free: 12.96 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002362/0.006586, allocations: 294.5 kB / 245.9 MB, free: 12.64 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.818e-06/0.006596, allocations: 192 / 245.9 MB, free: 12.64 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.722e-05/0.006613, allocations: 16.12 kB / 246 MB, free: 12.63 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.146e-06/0.006621, allocations: 11.98 kB / 246 MB, free: 12.62 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001011/0.006723, allocations: 84.48 kB / 246.1 MB, free: 12.54 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007859/0.007508, allocations: 0.8217 MB / 246.9 MB, free: 11.66 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001402/0.007649, allocations: 105.5 kB / 247 MB, free: 11.55 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.152e-05/0.00769, allocations: 44.83 kB / 247 MB, free: 11.51 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.377e-05/0.007704, allocations: 4 kB / 247 MB, free: 11.5 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001429/0.007847, allocations: 184.8 kB / 247.2 MB, free: 11.29 MB / 250.7 MB Notification: Performance of pre-optimization done (n=21): time 9.82e-07/0.007848, allocations: 0 / 247.2 MB, free: 11.29 MB / 250.7 MB Notification: Performance of matching and sorting (n=21): time 0.0003745/0.008222, allocations: 190.3 kB / 247.4 MB, free: 11.1 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.707e-05/0.008249, allocations: 55.34 kB / 247.5 MB, free: 11.03 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.34e-05/0.008343, allocations: 199.4 kB / 247.6 MB, free: 10.82 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.698e-05/0.00836, allocations: 33.7 kB / 247.7 MB, free: 10.79 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.607e-05/0.008426, allocations: 176.4 kB / 247.9 MB, free: 10.61 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.16e-05/0.008467, allocations: 71.41 kB / 247.9 MB, free: 10.54 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.333e-05/0.008521, allocations: 57.62 kB / 248 MB, free: 10.47 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.375e-05/0.008595, allocations: 338.8 kB / 248.3 MB, free: 10.13 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.157e-05/0.008626, allocations: 27.98 kB / 248.3 MB, free: 10.11 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.168e-05/0.008708, allocations: 167.8 kB / 248.5 MB, free: 9.895 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001/0.008808, allocations: 124.1 kB / 248.6 MB, free: 9.75 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.00881, allocations: 0 / 248.6 MB, free: 9.75 MB / 250.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0001624/0.008973, allocations: 192.6 kB / 248.8 MB, free: 9.555 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.195e-05/0.008984, allocations: 4 kB / 248.8 MB, free: 9.551 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.591e-06/0.00899, allocations: 4 kB / 248.8 MB, free: 9.547 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001178/0.009108, allocations: 36.98 kB / 248.9 MB, free: 9.508 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001504/0.009258, allocations: 79.83 kB / 248.9 MB, free: 9.43 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006193/0.009878, allocations: 1.316 MB / 250.2 MB, free: 8.031 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.376e-05/0.009971, allocations: 27.84 kB / 250.3 MB, free: 8.004 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.202e-05/0.009983, allocations: 20.11 kB / 250.3 MB, free: 7.984 MB / 250.7 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 7.89e-05/0.01006, allocations: 133.7 kB / 250.4 MB, free: 7.844 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.028e-05/0.01008, allocations: 19.98 kB / 250.4 MB, free: 7.824 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.178e-05/0.0101, allocations: 25.95 kB / 250.5 MB, free: 7.805 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.813e-06/0.01011, allocations: 4 kB / 250.5 MB, free: 7.801 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.032e-06/0.01011, allocations: 0 / 250.5 MB, free: 7.801 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.626e-06/0.01011, allocations: 0 / 250.5 MB, free: 7.801 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001431/0.01025, allocations: 149.7 kB / 250.6 MB, free: 7.637 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.01026, allocations: 0 / 250.6 MB, free: 7.637 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001035/0.01036, allocations: 47.16 kB / 250.7 MB, free: 7.594 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.668e-05/0.0104, allocations: 23.86 kB / 250.7 MB, free: 7.57 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.923e-05/0.01047, allocations: 44.69 kB / 250.7 MB, free: 7.523 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.905e-06/0.01048, allocations: 4 kB / 250.7 MB, free: 7.52 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005487/0.01103, allocations: 1.17 MB / 251.9 MB, free: 6.254 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.01103, allocations: 7.875 kB / 251.9 MB, free: 6.246 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000202/0.01123, allocations: 193.8 kB / 252.1 MB, free: 6.035 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.815e-05/0.01125, allocations: 7.984 kB / 252.1 MB, free: 6.027 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.606e-05/0.01131, allocations: 16.12 kB / 252.1 MB, free: 6.012 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.091e-05/0.01136, allocations: 31.94 kB / 252.2 MB, free: 5.98 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.704e-06/0.01137, allocations: 7.984 kB / 252.2 MB, free: 5.973 MB / 250.7 MB Notification: Performance of sorting global known variables: time 3.728e-05/0.01141, allocations: 62.97 kB / 252.2 MB, free: 5.91 MB / 250.7 MB Notification: Performance of sort global known variables: time 3e-08/0.01141, allocations: 0 / 252.2 MB, free: 5.91 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001823/0.01159, allocations: 87.78 kB / 252.3 MB, free: 5.824 MB / 250.7 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 6.798e-05/0.01166, allocations: 88.36 kB / 252.4 MB, free: 5.73 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0002242/0.01188, allocations: 223.3 kB / 252.6 MB, free: 5.496 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 8.125e-06/0.01189, allocations: 4 kB / 252.6 MB, free: 5.492 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001111/0.012, allocations: 179.6 kB / 252.8 MB, free: 5.301 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000134/0.01213, allocations: 55.84 kB / 252.9 MB, free: 5.246 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002125/0.01426, allocations: 0.6181 MB / 253.5 MB, free: 4.602 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.404e-05/0.0143, allocations: 92.25 kB / 253.6 MB, free: 4.492 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 6.024e-05/0.01436, allocations: 25.94 kB / 253.6 MB, free: 4.465 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001982/0.01456, allocations: 87.36 kB / 253.7 MB, free: 4.379 MB / 250.7 MB Notification: Performance of SimCode: time 5.41e-07/0.01456, allocations: 0 / 253.7 MB, free: 4.379 MB / 250.7 MB Notification: Performance of Templates: time 0.005057/0.01962, allocations: 3.303 MB / 257 MB, free: 1.125 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.4162948224693537]