Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.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.001284/0.001284, allocations: 85.75 kB / 21.43 MB, free: 296 kB / 14.72 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.00138/0.00138, allocations: 164.3 kB / 24.7 MB, free: 3.547 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.292/1.292, allocations: 158.6 MB / 186.5 MB, free: 6.402 MB / 174.1 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.664e-06/1.664e-06, allocations: 0 / 299 MB, free: 8.723 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.843e-05/4.01e-05, allocations: 2.281 kB / 299 MB, free: 8.719 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.00452/0.00456, allocations: 2.847 MB / 301.8 MB, free: 5.848 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001537/0.006097, allocations: 0.768 MB / 302.6 MB, free: 5.07 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001703/0.006267, allocations: 4 kB / 302.6 MB, free: 5.066 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001951/0.006462, allocations: 63.42 kB / 302.6 MB, free: 5.004 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002248/0.006687, allocations: 107 kB / 302.7 MB, free: 4.898 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003774/0.007065, allocations: 107.7 kB / 302.8 MB, free: 4.793 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005511/0.007616, allocations: 445.9 kB / 303.3 MB, free: 4.355 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000222/0.007838, allocations: 88.39 kB / 303.4 MB, free: 4.27 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003242/0.008162, allocations: 239.5 kB / 303.6 MB, free: 4.035 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002117/0.008374, allocations: 127.6 kB / 303.7 MB, free: 3.91 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.839e-05/0.008432, allocations: 36 kB / 303.8 MB, free: 3.875 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.482e-05/0.008497, allocations: 36 kB / 303.8 MB, free: 3.84 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.577e-05/0.008583, allocations: 83.72 kB / 303.9 MB, free: 3.758 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001582/0.008741, allocations: 135.7 kB / 304 MB, free: 3.625 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005732/0.009314, allocations: 430.6 kB / 304.4 MB, free: 3.203 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.009317, allocations: 0 / 304.4 MB, free: 3.203 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.056e-06/0.00932, allocations: 3.984 kB / 304.4 MB, free: 3.199 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.424e-06/0.009328, allocations: 3.938 kB / 304.4 MB, free: 3.195 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.001077/0.0104, allocations: 0.5867 MB / 305 MB, free: 2.578 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.719e-05/0.01044, allocations: 15.98 kB / 305 MB, free: 2.562 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.869e-05/0.01053, allocations: 44.66 kB / 305.1 MB, free: 2.52 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003939/0.01092, allocations: 218.8 kB / 305.3 MB, free: 2.277 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001306/0.01105, allocations: 136 kB / 305.4 MB, free: 2.121 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.654e-05/0.01111, allocations: 32.38 kB / 305.5 MB, free: 2.09 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006453/0.01176, allocations: 386.8 kB / 305.8 MB, free: 1.68 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.313e-05/0.01177, allocations: 192 / 305.8 MB, free: 1.68 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.762e-05/0.01181, allocations: 20.12 kB / 305.9 MB, free: 1.66 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.614e-05/0.01182, allocations: 8 kB / 305.9 MB, free: 1.652 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004598/0.01228, allocations: 218.5 kB / 306.1 MB, free: 1.441 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001928/0.01421, allocations: 1.191 MB / 307.3 MB, free: 176 kB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000367/0.01458, allocations: 158.5 kB / 307.4 MB, free: 8 kB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001796/0.01476, allocations: 80.83 kB / 307.5 MB, free: 15.93 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.853e-05/0.01478, allocations: 0 / 307.5 MB, free: 15.93 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003428/0.01512, allocations: 213.2 kB / 307.7 MB, free: 15.68 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.332e-06/0.01512, allocations: 0 / 307.7 MB, free: 15.68 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001146/0.01627, allocations: 330.4 kB / 308 MB, free: 15.35 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.069e-05/0.01635, allocations: 110.8 kB / 308.1 MB, free: 15.22 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002681/0.01662, allocations: 245.8 kB / 308.4 MB, free: 14.97 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.636e-05/0.01664, allocations: 25.7 kB / 308.4 MB, free: 14.94 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001707/0.01681, allocations: 216.2 kB / 308.6 MB, free: 14.72 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.47e-05/0.01688, allocations: 67.42 kB / 308.7 MB, free: 14.66 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000111/0.01699, allocations: 69.97 kB / 308.8 MB, free: 14.58 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001771/0.01717, allocations: 334.8 kB / 309.1 MB, free: 14.25 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000166/0.01733, allocations: 80.62 kB / 309.2 MB, free: 14.17 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003025/0.01763, allocations: 232.8 kB / 309.4 MB, free: 13.89 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003909/0.01802, allocations: 235.6 kB / 309.6 MB, free: 13.62 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.539e-06/0.01803, allocations: 4 kB / 309.6 MB, free: 13.62 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007175/0.01875, allocations: 339.7 kB / 310 MB, free: 13.28 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.698e-05/0.01876, allocations: 4 kB / 310 MB, free: 13.27 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.005e-06/0.01877, allocations: 4 kB / 310 MB, free: 13.27 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002763/0.01905, allocations: 65.03 kB / 310 MB, free: 13.2 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002658/0.01931, allocations: 67.84 kB / 310.1 MB, free: 13.14 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001486/0.0208, allocations: 1.434 MB / 311.5 MB, free: 11.6 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002485/0.02105, allocations: 39.77 kB / 311.6 MB, free: 11.56 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.454e-05/0.02108, allocations: 19.94 kB / 311.6 MB, free: 11.54 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 8 (switch2.tSwitch,$PRE.switch2.tSwitch,switch2.quenched,$PRE.switch2.quenched,switch2.off,$PRE.switch2.off,switch1.off,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (38): * Single equations (assignments): 37 * 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.0001811/0.02126, allocations: 152.6 kB / 311.7 MB, free: 11.38 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.279e-05/0.02131, allocations: 27.8 kB / 311.8 MB, free: 11.36 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.546e-05/0.02135, allocations: 22.28 kB / 311.8 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.148e-06/0.02136, allocations: 8.094 kB / 311.8 MB, free: 11.33 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.865e-06/0.02136, allocations: 0 / 311.8 MB, free: 11.33 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.312e-06/0.02137, allocations: 3.984 kB / 311.8 MB, free: 11.33 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003657/0.02173, allocations: 241 kB / 312 MB, free: 11.06 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.462e-06/0.02173, allocations: 0 / 312 MB, free: 11.06 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002003/0.02193, allocations: 39.91 kB / 312.1 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001973/0.02213, allocations: 52.81 kB / 312.1 MB, free: 10.97 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.041e-05/0.02215, allocations: 4 kB / 312.1 MB, free: 10.96 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00128/0.02343, allocations: 1.299 MB / 313.4 MB, free: 9.562 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.02343, allocations: 0 / 313.4 MB, free: 9.562 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007379/0.02417, allocations: 349.8 kB / 313.8 MB, free: 9.199 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.771e-05/0.02426, allocations: 43.73 kB / 313.8 MB, free: 9.156 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.621e-05/0.02429, allocations: 4 kB / 313.8 MB, free: 9.152 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001744/0.02447, allocations: 23.92 kB / 313.8 MB, free: 9.129 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.026e-05/0.02456, allocations: 23.95 kB / 313.9 MB, free: 9.105 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.072e-05/0.02458, allocations: 11.98 kB / 313.9 MB, free: 9.094 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001594/0.02474, allocations: 165.2 kB / 314 MB, free: 8.93 MB / 302.1 MB Notification: Performance of sort global known variables: time 8e-08/0.02474, allocations: 64 / 314 MB, free: 8.93 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003813/0.02512, allocations: 95.84 kB / 314.1 MB, free: 8.836 MB / 302.1 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: 5 ($whenCondition1,switch1.off,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): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001307/0.02525, allocations: 99.25 kB / 314.2 MB, free: 8.73 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006072/0.02586, allocations: 306.4 kB / 314.5 MB, free: 8.418 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.02586, allocations: 0.6875 kB / 314.5 MB, free: 8.418 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003092/0.02617, allocations: 191.5 kB / 314.7 MB, free: 8.219 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002542/0.02642, allocations: 40.41 kB / 314.8 MB, free: 8.18 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001432/0.02786, allocations: 0.6201 MB / 315.4 MB, free: 7.531 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001591/0.02802, allocations: 164.8 kB / 315.5 MB, free: 7.348 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.374e-05/0.02811, allocations: 26.22 kB / 315.6 MB, free: 7.324 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.766e-05/0.02817, allocations: 24.5 kB / 315.6 MB, free: 7.301 MB / 302.1 MB Notification: Performance of SimCode: time 3.01e-07/0.02817, allocations: 0 / 315.6 MB, free: 7.301 MB / 302.1 MB Notification: Performance of Templates: time 0.007619/0.03579, allocations: 2.888 MB / 318.5 MB, free: 4.418 MB / 302.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.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.4870556108653545]