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.0009764/0.0009764, allocations: 84.73 kB / 21.5 MB, free: 2.984 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.0009618/0.0009618, allocations: 162.2 kB / 24.91 MB, free: 8.766 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.937/0.937, allocations: 177 MB / 205.2 MB, free: 5.449 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.763e-06/1.763e-06, allocations: 0 / 273.4 MB, free: 1.16 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.319e-05/1.496e-05, allocations: 2.312 kB / 273.4 MB, free: 1.156 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.003079/0.003094, allocations: 3.164 MB / 276.6 MB, free: 13.97 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001272/0.004366, allocations: 0.8408 MB / 277.4 MB, free: 13.12 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001287/0.004495, allocations: 4 kB / 277.4 MB, free: 13.12 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001438/0.004638, allocations: 59.44 kB / 277.5 MB, free: 13.06 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001605/0.004799, allocations: 110.9 kB / 277.6 MB, free: 12.95 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003102/0.005109, allocations: 131.6 kB / 277.7 MB, free: 12.82 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003588/0.005468, allocations: 434 kB / 278.2 MB, free: 12.4 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001642/0.005632, allocations: 98.97 kB / 278.3 MB, free: 12.3 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003111/0.005943, allocations: 255.4 kB / 278.5 MB, free: 12.05 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001682/0.006111, allocations: 127.7 kB / 278.6 MB, free: 11.93 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.792e-05/0.006149, allocations: 32 kB / 278.7 MB, free: 11.9 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.176e-05/0.006221, allocations: 40 kB / 278.7 MB, free: 11.86 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.637e-05/0.006267, allocations: 83.66 kB / 278.8 MB, free: 11.78 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 8.344e-05/0.006351, allocations: 131.7 kB / 278.9 MB, free: 11.65 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002662/0.006617, allocations: 290.9 kB / 279.2 MB, free: 11.36 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.485e-06/0.006619, allocations: 3.984 kB / 279.2 MB, free: 11.36 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.61e-07/0.00662, allocations: 0 / 279.2 MB, free: 11.36 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.047e-06/0.006624, allocations: 0 / 279.2 MB, free: 11.36 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.0005533/0.007177, allocations: 0.5505 MB / 279.8 MB, free: 10.79 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.871e-05/0.007206, allocations: 11.98 kB / 279.8 MB, free: 10.77 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001284/0.007334, allocations: 72.88 kB / 279.8 MB, free: 10.7 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002254/0.00756, allocations: 194.1 kB / 280 MB, free: 10.48 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.322e-05/0.007633, allocations: 132 kB / 280.2 MB, free: 10.33 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.343e-05/0.007667, allocations: 36.38 kB / 280.2 MB, free: 10.3 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002722/0.007939, allocations: 323.3 kB / 280.5 MB, free: 9.945 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.022e-05/0.007949, allocations: 192 / 280.5 MB, free: 9.945 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.934e-05/0.007968, allocations: 16.12 kB / 280.5 MB, free: 9.93 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.516e-06/0.007977, allocations: 8 kB / 280.5 MB, free: 9.922 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001114/0.008088, allocations: 88.48 kB / 280.6 MB, free: 9.836 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009409/0.009029, allocations: 1.06 MB / 281.7 MB, free: 8.699 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000147/0.009176, allocations: 110.5 kB / 281.8 MB, free: 8.582 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.48e-05/0.009221, allocations: 44.78 kB / 281.8 MB, free: 8.535 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.381e-05/0.009235, allocations: 4 kB / 281.8 MB, free: 8.531 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00014/0.009375, allocations: 181.2 kB / 282 MB, free: 8.32 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.323e-06/0.009376, allocations: 0 / 282 MB, free: 8.32 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0003867/0.009763, allocations: 189.7 kB / 282.2 MB, free: 8.129 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.037e-05/0.009803, allocations: 106.8 kB / 282.3 MB, free: 8 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001105/0.009914, allocations: 229.2 kB / 282.5 MB, free: 7.766 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.546e-05/0.009929, allocations: 29.7 kB / 282.6 MB, free: 7.73 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.566e-05/0.01, allocations: 208.1 kB / 282.8 MB, free: 7.523 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.632e-05/0.01004, allocations: 71.41 kB / 282.8 MB, free: 7.453 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.937e-05/0.0101, allocations: 69.89 kB / 282.9 MB, free: 7.379 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.992e-05/0.01017, allocations: 334.8 kB / 283.2 MB, free: 7.043 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.097e-05/0.01021, allocations: 32.64 kB / 283.3 MB, free: 7.012 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.701e-05/0.01031, allocations: 184.9 kB / 283.4 MB, free: 6.773 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001298/0.01044, allocations: 171.4 kB / 283.6 MB, free: 6.57 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.01044, allocations: 0 / 283.6 MB, free: 6.57 MB / 266.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0002261/0.01067, allocations: 216.5 kB / 283.8 MB, free: 6.352 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.215e-05/0.01068, allocations: 8.344 kB / 283.8 MB, free: 6.344 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.01068, allocations: 4 kB / 283.8 MB, free: 6.34 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001148/0.0108, allocations: 44.81 kB / 283.9 MB, free: 6.293 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001511/0.01095, allocations: 70.72 kB / 283.9 MB, free: 6.227 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006804/0.01163, allocations: 1.324 MB / 285.3 MB, free: 4.816 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001025/0.01173, allocations: 39.77 kB / 285.3 MB, free: 4.777 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.211e-05/0.01174, allocations: 8 kB / 285.3 MB, free: 4.77 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 7.921e-05/0.01182, allocations: 133.8 kB / 285.4 MB, free: 4.629 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.197e-05/0.01185, allocations: 19.98 kB / 285.5 MB, free: 4.609 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.377e-05/0.01187, allocations: 38.27 kB / 285.5 MB, free: 4.57 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.323e-06/0.01187, allocations: 0 / 285.5 MB, free: 4.57 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.517e-06/0.01187, allocations: 4 kB / 285.5 MB, free: 4.566 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.575e-06/0.01188, allocations: 0 / 285.5 MB, free: 4.566 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001207/0.012, allocations: 157.7 kB / 285.7 MB, free: 4.395 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.016e-06/0.012, allocations: 3.984 kB / 285.7 MB, free: 4.391 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001157/0.01212, allocations: 51.84 kB / 285.7 MB, free: 4.34 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.552e-05/0.01219, allocations: 40.81 kB / 285.7 MB, free: 4.297 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.206e-05/0.0122, allocations: 8 kB / 285.8 MB, free: 4.289 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005011/0.0127, allocations: 1.17 MB / 286.9 MB, free: 3.035 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.01271, allocations: 3.938 kB / 286.9 MB, free: 3.031 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002153/0.01292, allocations: 209.8 kB / 287.1 MB, free: 2.805 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.249e-05/0.01296, allocations: 23.8 kB / 287.2 MB, free: 2.781 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.865e-05/0.01298, allocations: 3.984 kB / 287.2 MB, free: 2.777 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.038e-05/0.01304, allocations: 16 kB / 287.2 MB, free: 2.762 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.265e-05/0.01309, allocations: 31.88 kB / 287.2 MB, free: 2.73 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.396e-06/0.0131, allocations: 8 kB / 287.2 MB, free: 2.723 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.195e-05/0.01316, allocations: 74.77 kB / 287.3 MB, free: 2.645 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01316, allocations: 4.031 kB / 287.3 MB, free: 2.641 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000203/0.01336, allocations: 91.84 kB / 287.4 MB, free: 2.551 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: 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 7.769e-05/0.01344, allocations: 76.42 kB / 287.5 MB, free: 2.465 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002456/0.01368, allocations: 243.4 kB / 287.7 MB, free: 2.215 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.641e-06/0.01369, allocations: 4.688 kB / 287.7 MB, free: 2.211 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001156/0.0138, allocations: 178.3 kB / 287.9 MB, free: 2.023 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001169/0.01392, allocations: 32.48 kB / 287.9 MB, free: 1.992 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008835/0.0148, allocations: 0.5985 MB / 288.5 MB, free: 1.367 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.105e-05/0.01484, allocations: 92.55 kB / 288.6 MB, free: 1.258 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.306e-05/0.01491, allocations: 22.3 kB / 288.6 MB, free: 1.238 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.732e-05/0.015, allocations: 99.28 kB / 288.7 MB, free: 1.141 MB / 266.7 MB Notification: Performance of SimCode: time 7.42e-07/0.01501, allocations: 0 / 288.7 MB, free: 1.141 MB / 266.7 MB Notification: Performance of Templates: time 0.004922/0.01993, allocations: 3.209 MB / 291.9 MB, free: 13.98 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 -s gbode -gbm=radauIIA3 -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.684709945693612]