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.001478/0.001478, allocations: 78.66 kB / 21.42 MB, free: 3.074 MB / 18.57 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.00152/0.00152, allocations: 172.2 kB / 24.82 MB, free: 9.312 MB / 18.57 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 0.9767/0.9767, allocations: 177.1 MB / 205.3 MB, free: 5.512 MB / 186.7 MB " [Timeout remaining time 179] 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.363e-06/1.363e-06, allocations: 0 / 273.4 MB, free: 1.285 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.216e-05/2.353e-05, allocations: 2.312 kB / 273.4 MB, free: 1.281 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.006349/0.006373, allocations: 2.866 MB / 276.3 MB, free: 14.4 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001428/0.007801, allocations: 0.7553 MB / 277 MB, free: 13.64 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001702/0.007971, allocations: 4 kB / 277 MB, free: 13.64 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001527/0.008124, allocations: 51.5 kB / 277.1 MB, free: 13.59 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001692/0.008293, allocations: 95.08 kB / 277.2 MB, free: 13.49 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003164/0.00861, allocations: 103.7 kB / 277.3 MB, free: 13.39 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003318/0.008941, allocations: 386.2 kB / 277.7 MB, free: 13.01 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000175/0.009116, allocations: 79.62 kB / 277.7 MB, free: 12.93 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002284/0.009345, allocations: 215.5 kB / 278 MB, free: 12.72 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001531/0.009498, allocations: 111.7 kB / 278.1 MB, free: 12.61 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.886e-05/0.009537, allocations: 28 kB / 278.1 MB, free: 12.58 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.705e-05/0.009574, allocations: 36 kB / 278.1 MB, free: 12.55 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.778e-05/0.009622, allocations: 71.73 kB / 278.2 MB, free: 12.48 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 8.9e-05/0.009711, allocations: 123.7 kB / 278.3 MB, free: 12.36 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002431/0.009954, allocations: 247.1 kB / 278.6 MB, free: 12.11 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.00996, allocations: 0 / 278.6 MB, free: 12.11 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.293e-06/0.009961, allocations: 0 / 278.6 MB, free: 12.11 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.122e-06/0.009967, allocations: 0 / 278.6 MB, free: 12.11 MB / 266.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.0006544/0.01062, allocations: 0.6338 MB / 279.2 MB, free: 11.44 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.826e-05/0.01066, allocations: 12.03 kB / 279.2 MB, free: 11.43 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.193e-05/0.01073, allocations: 64.7 kB / 279.3 MB, free: 11.37 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002131/0.01094, allocations: 208.1 kB / 279.5 MB, free: 11.14 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.149e-05/0.01103, allocations: 132 kB / 279.6 MB, free: 10.98 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.171e-05/0.01107, allocations: 28.38 kB / 279.6 MB, free: 10.96 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005335/0.0116, allocations: 299 kB / 279.9 MB, free: 10.63 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.808e-06/0.01161, allocations: 192 / 279.9 MB, free: 10.63 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.893e-05/0.01163, allocations: 20.12 kB / 279.9 MB, free: 10.61 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.903e-06/0.01164, allocations: 4 kB / 279.9 MB, free: 10.61 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001065/0.01174, allocations: 96.44 kB / 280 MB, free: 10.51 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00104/0.01278, allocations: 1.057 MB / 281.1 MB, free: 9.395 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001768/0.01296, allocations: 119 kB / 281.2 MB, free: 9.266 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.721e-05/0.01301, allocations: 47.66 kB / 281.3 MB, free: 9.215 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.607e-05/0.01302, allocations: 4 kB / 281.3 MB, free: 9.211 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001644/0.01319, allocations: 198.5 kB / 281.5 MB, free: 8.98 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.232e-06/0.01319, allocations: 0 / 281.5 MB, free: 8.98 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0004445/0.01363, allocations: 233.3 kB / 281.7 MB, free: 8.742 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.496e-05/0.01368, allocations: 106.8 kB / 281.8 MB, free: 8.613 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001192/0.0138, allocations: 250.6 kB / 282 MB, free: 8.352 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.058e-05/0.01382, allocations: 33.7 kB / 282.1 MB, free: 8.312 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.279e-05/0.01391, allocations: 231.1 kB / 282.3 MB, free: 8.082 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.148e-05/0.01395, allocations: 75.36 kB / 282.4 MB, free: 8.008 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.113e-05/0.01401, allocations: 67.19 kB / 282.4 MB, free: 7.934 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000106/0.01412, allocations: 0.5079 MB / 282.9 MB, free: 7.414 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.189e-05/0.01416, allocations: 31.91 kB / 283 MB, free: 7.383 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.348e-05/0.01426, allocations: 185 kB / 283.1 MB, free: 7.145 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001197/0.01438, allocations: 154.7 kB / 283.3 MB, free: 6.961 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.01438, allocations: 4.031 kB / 283.3 MB, free: 6.957 MB / 266.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.000209/0.01459, allocations: 223.2 kB / 283.5 MB, free: 6.73 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.414e-05/0.0146, allocations: 8 kB / 283.5 MB, free: 6.723 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.01461, allocations: 3.984 kB / 283.5 MB, free: 6.719 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001395/0.01475, allocations: 43.88 kB / 283.6 MB, free: 6.672 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001295/0.01488, allocations: 59.91 kB / 283.6 MB, free: 6.613 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008772/0.01575, allocations: 1.955 MB / 285.6 MB, free: 4.547 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001164/0.01587, allocations: 39.95 kB / 285.6 MB, free: 4.508 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.179e-05/0.01588, allocations: 8 kB / 285.6 MB, free: 4.5 MB / 266.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 9.258e-05/0.01597, allocations: 176.5 kB / 285.8 MB, free: 4.316 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.663e-05/0.016, allocations: 31.89 kB / 285.8 MB, free: 4.285 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.496e-05/0.01603, allocations: 21.97 kB / 285.9 MB, free: 4.262 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.01603, allocations: 0 / 285.9 MB, free: 4.262 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.01603, allocations: 8 kB / 285.9 MB, free: 4.254 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.01604, allocations: 3.938 kB / 285.9 MB, free: 4.25 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001556/0.01619, allocations: 181.1 kB / 286 MB, free: 4.047 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.01619, allocations: 7.938 kB / 286.1 MB, free: 4.039 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.589e-05/0.01628, allocations: 39.92 kB / 286.1 MB, free: 4 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.199e-05/0.01637, allocations: 39.64 kB / 286.1 MB, free: 3.957 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.387e-06/0.01638, allocations: 0 / 286.1 MB, free: 3.957 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009439/0.01732, allocations: 1.736 MB / 287.9 MB, free: 2.109 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.01733, allocations: 0 / 287.9 MB, free: 2.109 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002715/0.0176, allocations: 253.4 kB / 288.1 MB, free: 1.84 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.053e-05/0.01765, allocations: 39.72 kB / 288.2 MB, free: 1.801 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.101e-05/0.01767, allocations: 8 kB / 288.2 MB, free: 1.793 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.583e-05/0.01773, allocations: 20.06 kB / 288.2 MB, free: 1.773 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.661e-05/0.0178, allocations: 39.88 kB / 288.2 MB, free: 1.734 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.153e-06/0.01781, allocations: 0 / 288.2 MB, free: 1.734 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.332e-05/0.01787, allocations: 173.4 kB / 288.4 MB, free: 1.566 MB / 266.7 MB Notification: Performance of sort global known variables: time 2e-08/0.01787, allocations: 0 / 288.4 MB, free: 1.566 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002431/0.01811, allocations: 79.84 kB / 288.5 MB, free: 1.488 MB / 266.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 9.9e-05/0.01821, allocations: 103.2 kB / 288.6 MB, free: 1.379 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002883/0.0185, allocations: 301.3 kB / 288.9 MB, free: 1.066 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.0185, allocations: 0 / 288.9 MB, free: 1.066 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001449/0.01865, allocations: 233.4 kB / 289.1 MB, free: 0.8164 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001954/0.01884, allocations: 39.92 kB / 289.1 MB, free: 0.7773 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009921/0.01984, allocations: 0.5652 MB / 289.7 MB, free: 184 kB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.741e-05/0.01989, allocations: 88.31 kB / 289.8 MB, free: 76 kB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.733e-05/0.01996, allocations: 17.95 kB / 289.8 MB, free: 52 kB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000118/0.02008, allocations: 118.2 kB / 289.9 MB, free: 15.93 MB / 282.7 MB Notification: Performance of SimCode: time 6.52e-07/0.02008, allocations: 0 / 289.9 MB, free: 15.93 MB / 282.7 MB Notification: Performance of Templates: time 0.004918/0.025, allocations: 3.154 MB / 293.1 MB, free: 12.83 MB / 282.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) [Timeout 240] 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","",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.79459418496117]