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.001548/0.001548, allocations: 92.31 kB / 20.96 MB, free: 3.477 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.002564/0.002564, allocations: 161.7 kB / 24.27 MB, free: 176 kB / 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 1.538/1.538, allocations: 177.1 MB / 204.6 MB, free: 5.598 MB / 186.7 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.623e-06/1.623e-06, allocations: 0 / 272.3 MB, free: 1.805 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.117e-05/3.279e-05, allocations: 2.312 kB / 272.3 MB, free: 1.801 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004636/0.004668, allocations: 2.698 MB / 275 MB, free: 15.09 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001631/0.006299, allocations: 0.736 MB / 275.8 MB, free: 14.34 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001433/0.006443, allocations: 7.938 kB / 275.8 MB, free: 14.34 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001806/0.006623, allocations: 51.5 kB / 275.8 MB, free: 14.29 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003577/0.006981, allocations: 99.06 kB / 275.9 MB, free: 14.19 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003614/0.007342, allocations: 103.7 kB / 276 MB, free: 14.09 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004757/0.007818, allocations: 382.2 kB / 276.4 MB, free: 13.71 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002055/0.008023, allocations: 87.66 kB / 276.5 MB, free: 13.62 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002938/0.008317, allocations: 207.6 kB / 276.7 MB, free: 13.42 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002231/0.00854, allocations: 111.7 kB / 276.8 MB, free: 13.31 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.974e-05/0.0086, allocations: 32 kB / 276.8 MB, free: 13.28 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.119e-05/0.008661, allocations: 28 kB / 276.9 MB, free: 13.25 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.874e-05/0.00875, allocations: 83.67 kB / 276.9 MB, free: 13.17 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001647/0.008915, allocations: 111.8 kB / 277 MB, free: 13.06 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005315/0.009446, allocations: 378.7 kB / 277.4 MB, free: 12.69 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.00945, allocations: 0 / 277.4 MB, free: 12.69 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.122e-06/0.009451, allocations: 0 / 277.4 MB, free: 12.69 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.961e-06/0.009457, allocations: 0 / 277.4 MB, free: 12.69 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.001141/0.0106, allocations: 0.5339 MB / 278 MB, free: 12.12 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.904e-05/0.01064, allocations: 8.031 kB / 278 MB, free: 12.12 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001398/0.01078, allocations: 68.69 kB / 278 MB, free: 12.05 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004348/0.01121, allocations: 205.9 kB / 278.2 MB, free: 11.82 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001344/0.01135, allocations: 128 kB / 278.4 MB, free: 11.68 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.384e-05/0.01141, allocations: 28.38 kB / 278.4 MB, free: 11.65 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005781/0.01199, allocations: 349.9 kB / 278.7 MB, free: 11.28 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.418e-05/0.012, allocations: 4.125 kB / 278.7 MB, free: 11.28 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.849e-05/0.01204, allocations: 20.12 kB / 278.7 MB, free: 11.26 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.218e-06/0.01205, allocations: 4 kB / 278.8 MB, free: 11.25 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000395/0.01244, allocations: 186.5 kB / 278.9 MB, free: 11.07 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001813/0.01426, allocations: 0.9775 MB / 279.9 MB, free: 10.03 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003673/0.01463, allocations: 154 kB / 280.1 MB, free: 9.871 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001569/0.01478, allocations: 72.84 kB / 280.1 MB, free: 9.797 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.724e-05/0.01481, allocations: 7.984 kB / 280.1 MB, free: 9.789 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003558/0.01517, allocations: 205.2 kB / 280.3 MB, free: 9.555 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.543e-06/0.01517, allocations: 0 / 280.3 MB, free: 9.555 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.00116/0.01633, allocations: 317.5 kB / 280.7 MB, free: 9.238 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001007/0.01643, allocations: 110.8 kB / 280.8 MB, free: 9.105 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002433/0.01667, allocations: 203.8 kB / 281 MB, free: 8.898 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.22e-05/0.0167, allocations: 29.7 kB / 281 MB, free: 8.863 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001687/0.01687, allocations: 184.4 kB / 281.2 MB, free: 8.68 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.168e-05/0.01695, allocations: 79.34 kB / 281.2 MB, free: 8.602 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001224/0.01708, allocations: 65.52 kB / 281.3 MB, free: 8.531 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002024/0.01728, allocations: 330.8 kB / 281.6 MB, free: 8.199 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001452/0.01742, allocations: 63.98 kB / 281.7 MB, free: 8.137 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002642/0.01769, allocations: 192.8 kB / 281.9 MB, free: 7.902 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003197/0.01801, allocations: 184.2 kB / 282.1 MB, free: 7.699 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.255e-06/0.01801, allocations: 0 / 282.1 MB, free: 7.699 MB / 266.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005382/0.01855, allocations: 296.4 kB / 282.4 MB, free: 7.402 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.881e-05/0.01857, allocations: 8 kB / 282.4 MB, free: 7.395 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.651e-06/0.01857, allocations: 0 / 282.4 MB, free: 7.395 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002848/0.01886, allocations: 57.03 kB / 282.4 MB, free: 7.336 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000243/0.0191, allocations: 51.92 kB / 282.5 MB, free: 7.285 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001807/0.02091, allocations: 1.438 MB / 283.9 MB, free: 5.746 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002419/0.02115, allocations: 40.02 kB / 283.9 MB, free: 5.707 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.468e-05/0.02117, allocations: 12 kB / 284 MB, free: 5.695 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 0.0001723/0.02135, allocations: 141.8 kB / 284.1 MB, free: 5.547 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.074e-05/0.0214, allocations: 23.91 kB / 284.1 MB, free: 5.523 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.34e-05/0.02145, allocations: 25.95 kB / 284.1 MB, free: 5.496 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.308e-06/0.02145, allocations: 7.938 kB / 284.2 MB, free: 5.488 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.956e-06/0.02146, allocations: 0 / 284.2 MB, free: 5.488 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.02146, allocations: 0 / 284.2 MB, free: 5.488 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003037/0.02176, allocations: 229.1 kB / 284.4 MB, free: 5.234 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.02177, allocations: 4 kB / 284.4 MB, free: 5.23 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001878/0.02195, allocations: 31.92 kB / 284.4 MB, free: 5.199 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000204/0.02216, allocations: 52.81 kB / 284.5 MB, free: 5.145 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.866e-05/0.02218, allocations: 4 kB / 284.5 MB, free: 5.141 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00145/0.02363, allocations: 1.299 MB / 285.8 MB, free: 3.738 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.02363, allocations: 0 / 285.8 MB, free: 3.738 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007441/0.02437, allocations: 333.6 kB / 286.1 MB, free: 3.391 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.858e-05/0.02446, allocations: 35.84 kB / 286.1 MB, free: 3.355 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.573e-05/0.0245, allocations: 12.22 kB / 286.1 MB, free: 3.344 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001759/0.02467, allocations: 19.98 kB / 286.2 MB, free: 3.324 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001007/0.02477, allocations: 31.94 kB / 286.2 MB, free: 3.293 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.46e-05/0.02479, allocations: 4 kB / 286.2 MB, free: 3.289 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001621/0.02495, allocations: 153.4 kB / 286.3 MB, free: 3.141 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02495, allocations: 0 / 286.3 MB, free: 3.141 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003822/0.02533, allocations: 79.84 kB / 286.4 MB, free: 3.062 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 0.0001471/0.02548, allocations: 111.2 kB / 286.5 MB, free: 2.945 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0006049/0.02608, allocations: 284.5 kB / 286.8 MB, free: 2.66 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.02609, allocations: 0 / 286.8 MB, free: 2.66 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003225/0.02641, allocations: 190.5 kB / 287 MB, free: 2.461 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002899/0.0267, allocations: 35.84 kB / 287 MB, free: 2.426 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001691/0.02839, allocations: 0.6029 MB / 287.6 MB, free: 1.793 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000161/0.02855, allocations: 150.9 kB / 287.8 MB, free: 1.625 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 9.119e-05/0.02864, allocations: 21.95 kB / 287.8 MB, free: 1.605 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.235e-05/0.0287, allocations: 20.5 kB / 287.8 MB, free: 1.586 MB / 266.7 MB Notification: Performance of SimCode: time 8.41e-07/0.02871, allocations: 0 / 287.8 MB, free: 1.586 MB / 266.7 MB Notification: Performance of Templates: time 0.007861/0.03657, allocations: 2.904 MB / 290.7 MB, free: 14.73 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=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.467254502000287]