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.001115/0.001115, allocations: 87.62 kB / 21.43 MB, free: 3.133 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.003734/0.003734, allocations: 163.1 kB / 24.7 MB, free: 8.891 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.836/0.836, allocations: 177.1 MB / 205 MB, free: 5.77 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.292e-06/1.292e-06, allocations: 0 / 325.8 MB, free: 15.44 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.894e-05/2.023e-05, allocations: 6.281 kB / 325.8 MB, free: 15.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.002491/0.002511, allocations: 2.704 MB / 328.5 MB, free: 12.71 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001145/0.003656, allocations: 0.7399 MB / 329.3 MB, free: 11.96 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001145/0.00377, allocations: 8 kB / 329.3 MB, free: 11.95 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001333/0.003904, allocations: 47.5 kB / 329.3 MB, free: 11.91 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001216/0.004025, allocations: 99.06 kB / 329.4 MB, free: 11.81 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002689/0.004294, allocations: 103.7 kB / 329.5 MB, free: 11.71 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002751/0.004569, allocations: 382.2 kB / 329.9 MB, free: 11.33 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001914/0.004761, allocations: 79.66 kB / 330 MB, free: 11.25 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001543/0.004915, allocations: 219.5 kB / 330.2 MB, free: 11.04 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001312/0.005046, allocations: 111.7 kB / 330.3 MB, free: 10.93 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.899e-05/0.005085, allocations: 28 kB / 330.3 MB, free: 10.9 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.837e-05/0.005114, allocations: 32 kB / 330.4 MB, free: 10.87 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.532e-05/0.005159, allocations: 75.72 kB / 330.4 MB, free: 10.8 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.838e-05/0.005237, allocations: 107.8 kB / 330.6 MB, free: 10.69 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002919/0.005529, allocations: 382.8 kB / 330.9 MB, free: 10.32 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.124e-06/0.005531, allocations: 0 / 330.9 MB, free: 10.32 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.005533, allocations: 0 / 330.9 MB, free: 10.32 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.3e-06/0.005538, allocations: 0 / 330.9 MB, free: 10.32 MB / 298.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.0007199/0.006258, allocations: 0.5368 MB / 331.5 MB, free: 9.75 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.06e-05/0.006299, allocations: 8.031 kB / 331.5 MB, free: 9.742 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.584e-05/0.006364, allocations: 40.7 kB / 331.5 MB, free: 9.703 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002868/0.006651, allocations: 201.9 kB / 331.7 MB, free: 9.477 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.673e-05/0.006748, allocations: 136 kB / 331.8 MB, free: 9.32 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.716e-05/0.006785, allocations: 32.38 kB / 331.9 MB, free: 9.289 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003363/0.007121, allocations: 353.8 kB / 332.2 MB, free: 8.918 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.173e-05/0.007133, allocations: 192 / 332.2 MB, free: 8.918 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.563e-05/0.007159, allocations: 16.12 kB / 332.2 MB, free: 8.898 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.422e-06/0.007165, allocations: 4 kB / 332.2 MB, free: 8.895 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000222/0.007387, allocations: 190.5 kB / 332.4 MB, free: 8.707 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000945/0.008332, allocations: 0.9733 MB / 333.4 MB, free: 7.672 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001999/0.008532, allocations: 141.9 kB / 333.5 MB, free: 7.527 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.732e-05/0.008619, allocations: 80.77 kB / 333.6 MB, free: 7.445 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.421e-05/0.008634, allocations: 7.938 kB / 333.6 MB, free: 7.438 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001936/0.008827, allocations: 201.3 kB / 333.8 MB, free: 7.207 MB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 1.212e-06/0.008828, allocations: 0 / 333.8 MB, free: 7.207 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.0005595/0.009388, allocations: 309.4 kB / 334.1 MB, free: 6.898 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.911e-05/0.009437, allocations: 118.8 kB / 334.2 MB, free: 6.758 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001296/0.009567, allocations: 199.8 kB / 334.4 MB, free: 6.555 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.98e-05/0.009587, allocations: 33.64 kB / 334.5 MB, free: 6.516 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.803e-05/0.009665, allocations: 180.4 kB / 334.6 MB, free: 6.336 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.313e-05/0.009708, allocations: 75.41 kB / 334.7 MB, free: 6.262 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.014e-05/0.009768, allocations: 61.66 kB / 334.8 MB, free: 6.195 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.372e-05/0.009852, allocations: 330.8 kB / 335.1 MB, free: 5.863 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.475e-05/0.009936, allocations: 67.97 kB / 335.2 MB, free: 5.797 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000133/0.01007, allocations: 192.8 kB / 335.4 MB, free: 5.562 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001805/0.01025, allocations: 192.2 kB / 335.5 MB, free: 5.352 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.01025, allocations: 0 / 335.5 MB, free: 5.352 MB / 298.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0002746/0.01053, allocations: 276.4 kB / 335.8 MB, free: 5.074 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.465e-05/0.01054, allocations: 8.219 kB / 335.8 MB, free: 5.066 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.749e-06/0.01055, allocations: 4 kB / 335.8 MB, free: 5.062 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001703/0.01072, allocations: 52.81 kB / 335.9 MB, free: 5.008 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001179/0.01083, allocations: 55.91 kB / 335.9 MB, free: 4.953 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007912/0.01162, allocations: 1.442 MB / 337.4 MB, free: 3.41 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.885e-05/0.01172, allocations: 35.86 kB / 337.4 MB, free: 3.375 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.145e-05/0.01174, allocations: 8 kB / 337.4 MB, free: 3.367 MB / 298.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.106e-05/0.01183, allocations: 154.1 kB / 337.6 MB, free: 3.211 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.686e-05/0.01184, allocations: 15.91 kB / 337.6 MB, free: 3.195 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.26e-05/0.01187, allocations: 30.05 kB / 337.6 MB, free: 3.172 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.01187, allocations: 7.938 kB / 337.6 MB, free: 3.164 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.072e-06/0.01187, allocations: 0 / 337.6 MB, free: 3.164 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.01187, allocations: 0 / 337.6 MB, free: 3.164 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001498/0.01202, allocations: 217.2 kB / 337.8 MB, free: 2.922 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.915e-06/0.01203, allocations: 4 kB / 337.8 MB, free: 2.918 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.364e-05/0.01211, allocations: 35.92 kB / 337.9 MB, free: 2.883 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001056/0.01222, allocations: 56.81 kB / 337.9 MB, free: 2.824 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.949e-06/0.01223, allocations: 3.984 kB / 337.9 MB, free: 2.82 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006503/0.01288, allocations: 1.291 MB / 339.2 MB, free: 1.422 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.81e-07/0.01288, allocations: 0 / 339.2 MB, free: 1.422 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003494/0.01323, allocations: 333.7 kB / 339.5 MB, free: 1.074 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.925e-05/0.01327, allocations: 31.84 kB / 339.6 MB, free: 1.043 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.637e-05/0.01329, allocations: 4 kB / 339.6 MB, free: 1.039 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.661e-05/0.01336, allocations: 19.98 kB / 339.6 MB, free: 1.02 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.184e-05/0.01341, allocations: 39.75 kB / 339.6 MB, free: 0.9805 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.707e-06/0.01342, allocations: 4 kB / 339.6 MB, free: 0.9766 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.823e-05/0.0135, allocations: 149.5 kB / 339.8 MB, free: 0.832 MB / 298.7 MB Notification: Performance of sort global known variables: time 4e-08/0.0135, allocations: 64 / 339.8 MB, free: 0.832 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002037/0.0137, allocations: 87.84 kB / 339.9 MB, free: 0.7461 MB / 298.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 8.514e-05/0.01379, allocations: 107.2 kB / 340 MB, free: 0.6328 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003207/0.01411, allocations: 281.8 kB / 340.3 MB, free: 356 kB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.01411, allocations: 0 / 340.3 MB, free: 356 kB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001471/0.01425, allocations: 194.5 kB / 340.4 MB, free: 148 kB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001712/0.01443, allocations: 32.36 kB / 340.5 MB, free: 116 kB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008391/0.01526, allocations: 0.6293 MB / 341.1 MB, free: 15.45 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.498e-05/0.01535, allocations: 146.9 kB / 341.2 MB, free: 15.28 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.124e-05/0.01539, allocations: 24.5 kB / 341.3 MB, free: 15.25 MB / 314.7 MB Notification: Performance of SimCode: time 3.81e-07/0.01539, allocations: 0 / 341.3 MB, free: 15.25 MB / 314.7 MB Notification: Performance of Templates: time 0.003779/0.01917, allocations: 4.206 MB / 345.5 MB, free: 11.05 MB / 314.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.398923859931529]