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.0009906/0.0009906, allocations: 79.59 kB / 21.18 MB, free: 3.387 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.0009448/0.0009448, allocations: 165 kB / 24.56 MB, free: 16 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 0.9989/0.9989, allocations: 177.2 MB / 205 MB, free: 5.297 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.964e-06/1.964e-06, allocations: 0 / 273 MB, free: 1.395 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.234e-05/2.431e-05, allocations: 2.312 kB / 273 MB, free: 1.391 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004194/0.004218, allocations: 2.898 MB / 275.9 MB, free: 14.48 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001531/0.00575, allocations: 0.7516 MB / 276.6 MB, free: 13.72 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001643/0.005914, allocations: 7.938 kB / 276.7 MB, free: 13.71 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001794/0.006094, allocations: 51.5 kB / 276.7 MB, free: 13.66 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002095/0.006303, allocations: 91.12 kB / 276.8 MB, free: 13.57 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004055/0.006709, allocations: 115.6 kB / 276.9 MB, free: 13.46 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003404/0.007049, allocations: 382.2 kB / 277.3 MB, free: 13.08 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000182/0.007231, allocations: 87.66 kB / 277.4 MB, free: 12.99 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002481/0.007479, allocations: 211.5 kB / 277.6 MB, free: 12.79 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001471/0.007626, allocations: 111.7 kB / 277.7 MB, free: 12.68 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.632e-05/0.007673, allocations: 28 kB / 277.7 MB, free: 12.65 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.426e-05/0.007707, allocations: 32 kB / 277.7 MB, free: 12.62 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.164e-05/0.007758, allocations: 75.72 kB / 277.8 MB, free: 12.54 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 8.892e-05/0.007847, allocations: 107.8 kB / 277.9 MB, free: 12.44 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002461/0.008093, allocations: 251 kB / 278.2 MB, free: 12.19 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.008098, allocations: 4 kB / 278.2 MB, free: 12.19 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.032e-06/0.008099, allocations: 4 kB / 278.2 MB, free: 12.18 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.411e-06/0.008104, allocations: 0 / 278.2 MB, free: 12.18 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.0007192/0.008824, allocations: 0.6338 MB / 278.8 MB, free: 11.51 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.657e-05/0.00886, allocations: 12.03 kB / 278.8 MB, free: 11.5 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.86e-05/0.008949, allocations: 60.7 kB / 278.9 MB, free: 11.44 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002371/0.009186, allocations: 216.1 kB / 279.1 MB, free: 11.2 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001875/0.009373, allocations: 128 kB / 279.2 MB, free: 11.05 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.69e-05/0.00942, allocations: 32.38 kB / 279.2 MB, free: 11.02 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003296/0.00975, allocations: 311.1 kB / 279.5 MB, free: 10.69 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.008e-05/0.00976, allocations: 4.125 kB / 279.6 MB, free: 10.68 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.179e-05/0.009782, allocations: 12.12 kB / 279.6 MB, free: 10.67 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.728e-06/0.009791, allocations: 8 kB / 279.6 MB, free: 10.66 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001731/0.009964, allocations: 119.8 kB / 279.7 MB, free: 10.54 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001017/0.01098, allocations: 1.088 MB / 280.8 MB, free: 9.387 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002105/0.01119, allocations: 138.8 kB / 280.9 MB, free: 9.242 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.972e-05/0.01126, allocations: 51.66 kB / 281 MB, free: 9.188 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.843e-05/0.01128, allocations: 4 kB / 281 MB, free: 9.184 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001904/0.01147, allocations: 207.4 kB / 281.2 MB, free: 8.941 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.663e-06/0.01147, allocations: 0 / 281.2 MB, free: 8.941 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0005519/0.01202, allocations: 248.5 kB / 281.4 MB, free: 8.691 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.255e-05/0.01208, allocations: 118.8 kB / 281.5 MB, free: 8.551 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001476/0.01222, allocations: 250.7 kB / 281.8 MB, free: 8.289 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.951e-05/0.01224, allocations: 33.7 kB / 281.8 MB, free: 8.25 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.649e-05/0.01234, allocations: 231.2 kB / 282 MB, free: 8.02 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.414e-05/0.01238, allocations: 75.31 kB / 282.1 MB, free: 7.945 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.94e-05/0.01245, allocations: 67.2 kB / 282.2 MB, free: 7.871 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001429/0.0126, allocations: 0.4962 MB / 282.7 MB, free: 7.363 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002684/0.01286, allocations: 43.97 kB / 282.7 MB, free: 7.32 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001179/0.01298, allocations: 193.1 kB / 282.9 MB, free: 7.074 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001619/0.01314, allocations: 174.8 kB / 283.1 MB, free: 6.871 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.367e-06/0.01315, allocations: 4 kB / 283.1 MB, free: 6.867 MB / 266.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0002651/0.01341, allocations: 243.2 kB / 283.3 MB, free: 6.621 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.51e-05/0.01343, allocations: 8.219 kB / 283.3 MB, free: 6.613 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.242e-06/0.01343, allocations: 4 kB / 283.3 MB, free: 6.609 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001921/0.01363, allocations: 43.64 kB / 283.4 MB, free: 6.562 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001397/0.01377, allocations: 51.92 kB / 283.4 MB, free: 6.512 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009561/0.01472, allocations: 1.981 MB / 285.4 MB, free: 4.41 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001146/0.01484, allocations: 35.83 kB / 285.4 MB, free: 4.375 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.427e-05/0.01485, allocations: 12 kB / 285.4 MB, free: 4.363 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.961e-05/0.01495, allocations: 176.5 kB / 285.6 MB, free: 4.18 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.966e-05/0.01498, allocations: 28 kB / 285.6 MB, free: 4.152 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.77e-05/0.01501, allocations: 29.95 kB / 285.7 MB, free: 4.121 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.135e-06/0.01501, allocations: 3.938 kB / 285.7 MB, free: 4.117 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.144e-06/0.01501, allocations: 0 / 285.7 MB, free: 4.117 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.01502, allocations: 0 / 285.7 MB, free: 4.117 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001636/0.01518, allocations: 220.4 kB / 285.9 MB, free: 3.867 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.806e-06/0.01518, allocations: 4 kB / 285.9 MB, free: 3.863 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.394e-05/0.01528, allocations: 31.98 kB / 285.9 MB, free: 3.832 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000105/0.01538, allocations: 43.64 kB / 286 MB, free: 3.785 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.486e-05/0.0154, allocations: 8 kB / 286 MB, free: 3.777 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007453/0.01614, allocations: 1.759 MB / 287.7 MB, free: 1.898 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.01614, allocations: 0 / 287.7 MB, free: 1.898 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003281/0.01647, allocations: 276.6 kB / 288 MB, free: 1.602 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.155e-05/0.01652, allocations: 35.78 kB / 288 MB, free: 1.566 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.163e-05/0.01654, allocations: 11.98 kB / 288.1 MB, free: 1.555 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.324e-05/0.01661, allocations: 8 kB / 288.1 MB, free: 1.547 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.245e-05/0.01668, allocations: 35.94 kB / 288.1 MB, free: 1.512 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.417e-06/0.01669, allocations: 4 kB / 288.1 MB, free: 1.508 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.978e-05/0.01677, allocations: 181.3 kB / 288.3 MB, free: 1.332 MB / 266.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.01677, allocations: 4 kB / 288.3 MB, free: 1.328 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002345/0.017, allocations: 79.88 kB / 288.4 MB, free: 1.25 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.000116/0.01712, allocations: 115.1 kB / 288.5 MB, free: 1.129 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000367/0.01749, allocations: 305.1 kB / 288.8 MB, free: 0.8125 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.053e-06/0.01749, allocations: 4 kB / 288.8 MB, free: 0.8086 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001654/0.01765, allocations: 244.6 kB / 289 MB, free: 0.5508 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001952/0.01785, allocations: 36.3 kB / 289 MB, free: 0.5156 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09399/0.1118, allocations: 0.5725 MB / 289.6 MB, free: 25.74 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.756e-05/0.1119, allocations: 89.83 kB / 289.7 MB, free: 25.67 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001045/0.112, allocations: 18.45 kB / 289.7 MB, free: 25.67 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.647e-05/0.112, allocations: 21.22 kB / 289.7 MB, free: 25.66 MB / 266.7 MB Notification: Performance of SimCode: time 1.342e-06/0.112, allocations: 0 / 289.7 MB, free: 25.66 MB / 266.7 MB Notification: Performance of Templates: time 0.006181/0.1182, allocations: 3.054 MB / 292.8 MB, free: 25.49 MB / 266.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.6575530930422246]