Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001394/0.001394, allocations: 81.81 kB / 21.42 MB, free: 3.07 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001831/0.001831, allocations: 164.5 kB / 24.82 MB, free: 9.324 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9811/0.9811, allocations: 177 MB / 205.1 MB, free: 5.441 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.262e-06/1.262e-06, allocations: 0 / 273.3 MB, free: 1.18 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.231e-05/2.357e-05, allocations: 5.266 kB / 273.4 MB, free: 1.176 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.01015/0.01018, allocations: 3.119 MB / 276.5 MB, free: 14.04 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001534/0.01171, allocations: 0.8022 MB / 277.3 MB, free: 13.23 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001967/0.01191, allocations: 7.938 kB / 277.3 MB, free: 13.22 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001762/0.01208, allocations: 63.36 kB / 277.3 MB, free: 13.16 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002075/0.01229, allocations: 111 kB / 277.5 MB, free: 13.05 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003857/0.01268, allocations: 123.6 kB / 277.6 MB, free: 12.93 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003461/0.01614, allocations: 433.9 kB / 278 MB, free: 12.5 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002153/0.01635, allocations: 100.3 kB / 278.1 MB, free: 12.4 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003922/0.01675, allocations: 255.5 kB / 278.3 MB, free: 12.15 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001816/0.01693, allocations: 127.6 kB / 278.5 MB, free: 12.02 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.033e-05/0.01698, allocations: 36 kB / 278.5 MB, free: 11.99 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.922e-05/0.01706, allocations: 36 kB / 278.5 MB, free: 11.95 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.415e-05/0.01711, allocations: 83.72 kB / 278.6 MB, free: 11.87 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001139/0.01722, allocations: 139.7 kB / 278.8 MB, free: 11.73 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000324/0.01755, allocations: 279 kB / 279 MB, free: 11.46 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.01755, allocations: 0 / 279 MB, free: 11.46 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.022e-06/0.01755, allocations: 0 / 279 MB, free: 11.46 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.981e-06/0.01756, allocations: 4 kB / 279 MB, free: 11.46 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.0007501/0.01831, allocations: 0.6829 MB / 279.7 MB, free: 10.74 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.196e-05/0.01835, allocations: 19.98 kB / 279.7 MB, free: 10.72 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001668/0.01852, allocations: 84.53 kB / 279.8 MB, free: 10.64 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002474/0.01877, allocations: 228.9 kB / 280 MB, free: 10.38 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.927e-05/0.01884, allocations: 128 kB / 280.2 MB, free: 10.23 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.153e-05/0.01889, allocations: 32.38 kB / 280.2 MB, free: 10.2 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003367/0.02225, allocations: 326.7 kB / 280.5 MB, free: 9.848 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.088e-05/0.02226, allocations: 192 / 280.5 MB, free: 9.848 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.493e-05/0.02229, allocations: 16.12 kB / 280.5 MB, free: 9.832 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.067e-06/0.0223, allocations: 12 kB / 280.5 MB, free: 9.82 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001581/0.02246, allocations: 100.4 kB / 280.6 MB, free: 9.719 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001279/0.02374, allocations: 1.358 MB / 282 MB, free: 8.27 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001965/0.02393, allocations: 119 kB / 282.1 MB, free: 8.141 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.443e-05/0.024, allocations: 51.64 kB / 282.2 MB, free: 8.086 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.631e-05/0.02401, allocations: 4 kB / 282.2 MB, free: 8.082 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001782/0.02419, allocations: 191.4 kB / 282.4 MB, free: 7.855 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.653e-06/0.02419, allocations: 0 / 282.4 MB, free: 7.855 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0005326/0.02472, allocations: 240.6 kB / 282.6 MB, free: 7.613 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.466e-05/0.02477, allocations: 106.8 kB / 282.7 MB, free: 7.484 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003215/0.02798, allocations: 288.1 kB / 283 MB, free: 7.188 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.546e-05/0.02801, allocations: 29.7 kB / 283 MB, free: 7.152 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001221/0.02813, allocations: 258.9 kB / 283.3 MB, free: 6.895 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.84e-05/0.02819, allocations: 71.41 kB / 283.3 MB, free: 6.824 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.939e-05/0.02828, allocations: 75.61 kB / 283.4 MB, free: 6.742 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001363/0.02842, allocations: 0.5078 MB / 283.9 MB, free: 6.223 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.029e-05/0.02848, allocations: 32.62 kB / 283.9 MB, free: 6.191 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001503/0.02863, allocations: 232.4 kB / 284.2 MB, free: 5.891 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001788/0.02881, allocations: 197.5 kB / 284.4 MB, free: 5.648 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.02881, allocations: 0 / 284.4 MB, free: 5.648 MB / 266.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004174/0.02923, allocations: 267.5 kB / 284.6 MB, free: 5.379 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.791e-05/0.02924, allocations: 4 kB / 284.6 MB, free: 5.375 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.03e-05/0.02925, allocations: 4 kB / 284.6 MB, free: 5.371 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001575/0.02941, allocations: 51.52 kB / 284.7 MB, free: 5.316 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001819/0.02959, allocations: 59.92 kB / 284.7 MB, free: 5.258 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001185/0.03078, allocations: 1.966 MB / 286.7 MB, free: 3.18 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001692/0.03095, allocations: 39.77 kB / 286.7 MB, free: 3.141 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.782e-05/0.03097, allocations: 8 kB / 286.8 MB, free: 3.133 MB / 266.7 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.0001282/0.03109, allocations: 188.5 kB / 286.9 MB, free: 2.938 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.883e-05/0.03113, allocations: 27.86 kB / 287 MB, free: 2.91 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.976e-05/0.03117, allocations: 34.27 kB / 287 MB, free: 2.875 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.03118, allocations: 0 / 287 MB, free: 2.875 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.504e-06/0.03118, allocations: 0 / 287 MB, free: 2.875 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.292e-06/0.03118, allocations: 7.984 kB / 287 MB, free: 2.867 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003596/0.03154, allocations: 200.9 kB / 287.2 MB, free: 2.645 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.03155, allocations: 0 / 287.2 MB, free: 2.645 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001283/0.03167, allocations: 31.98 kB / 287.2 MB, free: 2.613 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001259/0.0318, allocations: 47.62 kB / 287.3 MB, free: 2.562 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.661e-05/0.03182, allocations: 8 kB / 287.3 MB, free: 2.555 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009987/0.03282, allocations: 1.717 MB / 289 MB, free: 0.7227 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.03282, allocations: 4.125 kB / 289 MB, free: 0.7188 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003611/0.03318, allocations: 251.7 kB / 289.3 MB, free: 456 kB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.306e-05/0.03325, allocations: 35.83 kB / 289.3 MB, free: 420 kB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.677e-05/0.03328, allocations: 4 kB / 289.3 MB, free: 416 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.888e-05/0.03338, allocations: 27.92 kB / 289.3 MB, free: 388 kB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.989e-05/0.03345, allocations: 27.94 kB / 289.3 MB, free: 360 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.227e-05/0.03346, allocations: 8 kB / 289.4 MB, free: 352 kB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001169/0.03358, allocations: 185.1 kB / 289.5 MB, free: 164 kB / 266.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.03358, allocations: 4 kB / 289.5 MB, free: 160 kB / 266.7 MB Notification: Performance of remove unused functions: time 0.000391/0.03397, allocations: 91.78 kB / 289.6 MB, free: 68 kB / 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: 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.0001455/0.03411, allocations: 107.2 kB / 289.7 MB, free: 15.95 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0004022/0.03451, allocations: 308.3 kB / 290 MB, free: 15.63 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.03452, allocations: 0.6875 kB / 290 MB, free: 15.63 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002075/0.03472, allocations: 238.4 kB / 290.3 MB, free: 15.38 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002446/0.03497, allocations: 39.84 kB / 290.3 MB, free: 15.34 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001407/0.03638, allocations: 0.6157 MB / 290.9 MB, free: 14.7 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.272e-05/0.03644, allocations: 92.5 kB / 291 MB, free: 14.59 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 9.974e-05/0.03654, allocations: 30.27 kB / 291 MB, free: 14.56 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001448/0.03668, allocations: 118.2 kB / 291.2 MB, free: 14.44 MB / 282.7 MB Notification: Performance of SimCode: time 6.51e-07/0.03668, allocations: 0 / 291.2 MB, free: 14.44 MB / 282.7 MB Notification: Performance of Templates: time 0.00735/0.04403, allocations: 3.147 MB / 294.3 MB, free: 11.34 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.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.8989338539540768]