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.001331/0.001331, allocations: 81.05 kB / 10.02 MB, free: 0.6719 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00266/0.003991, allocations: 453.8 kB / 10.46 MB, free: 236 kB / 10.45 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.001538/0.001538, allocations: 165.1 kB / 11.36 MB, free: 2.812 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.002039/0.003577, allocations: 483.5 kB / 11.83 MB, free: 2.336 MB / 13.93 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.039/1.039, allocations: 158.6 MB / 171.2 MB, free: 2.508 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1708/1.21, allocations: 49.49 MB / 220.7 MB, free: 1.359 MB / 218.7 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.282e-06/1.282e-06, allocations: 0 / 222 MB, free: 60 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.285e-05/2.414e-05, allocations: 6.312 kB / 222 MB, free: 52 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004325/0.004349, allocations: 3.114 MB / 225.1 MB, free: 12.91 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001674/0.006023, allocations: 0.8028 MB / 225.9 MB, free: 12.1 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002069/0.00623, allocations: 7.938 kB / 225.9 MB, free: 12.09 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001523/0.006382, allocations: 59.44 kB / 226 MB, free: 12.03 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002026/0.006585, allocations: 111 kB / 226.1 MB, free: 11.92 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002913/0.006876, allocations: 111.7 kB / 226.2 MB, free: 11.81 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003816/0.007258, allocations: 433.9 kB / 226.6 MB, free: 11.39 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001644/0.007422, allocations: 99 kB / 226.7 MB, free: 11.29 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003171/0.007739, allocations: 268.1 kB / 227 MB, free: 11.03 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001683/0.007907, allocations: 127.6 kB / 227.1 MB, free: 10.9 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 4.664e-05/0.007954, allocations: 40 kB / 227.1 MB, free: 10.86 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.987e-05/0.007994, allocations: 32 kB / 227.2 MB, free: 10.83 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 5.009e-05/0.008044, allocations: 63.75 kB / 227.2 MB, free: 10.77 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 8.887e-05/0.008133, allocations: 107.8 kB / 227.3 MB, free: 10.66 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002509/0.008384, allocations: 259 kB / 227.6 MB, free: 10.41 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.197e-05/0.008396, allocations: 0 / 227.6 MB, free: 10.41 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.008397, allocations: 0 / 227.6 MB, free: 10.41 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.044e-05/0.008408, allocations: 0 / 227.6 MB, free: 10.41 MB / 234.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.0007474/0.009155, allocations: 0.6322 MB / 228.2 MB, free: 9.754 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.731e-05/0.009193, allocations: 12.03 kB / 228.2 MB, free: 9.742 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.062e-05/0.009273, allocations: 56.89 kB / 228.3 MB, free: 9.688 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002628/0.009536, allocations: 186.2 kB / 228.5 MB, free: 9.477 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001005/0.009636, allocations: 128 kB / 228.6 MB, free: 9.328 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.374e-05/0.00968, allocations: 32.38 kB / 228.6 MB, free: 9.297 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003312/0.01001, allocations: 327.3 kB / 229 MB, free: 8.941 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.18e-05/0.01002, allocations: 4.188 kB / 229 MB, free: 8.938 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.22e-05/0.01005, allocations: 16.12 kB / 229 MB, free: 8.922 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.428e-06/0.01005, allocations: 8 kB / 229 MB, free: 8.914 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001237/0.01018, allocations: 96.47 kB / 229.1 MB, free: 8.824 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001025/0.0112, allocations: 1.068 MB / 230.1 MB, free: 7.684 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001854/0.01139, allocations: 106.5 kB / 230.2 MB, free: 7.57 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.888e-05/0.01144, allocations: 44.81 kB / 230.3 MB, free: 7.523 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.854e-05/0.01146, allocations: 4 kB / 230.3 MB, free: 7.52 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001719/0.01163, allocations: 181.2 kB / 230.5 MB, free: 7.309 MB / 234.7 MB Notification: Performance of pre-optimization done (n=21): time 1.182e-06/0.01163, allocations: 4 kB / 230.5 MB, free: 7.305 MB / 234.7 MB Notification: Performance of matching and sorting (n=21): time 0.0004183/0.01205, allocations: 186.3 kB / 230.7 MB, free: 7.113 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.685e-05/0.01207, allocations: 51.41 kB / 230.7 MB, free: 7.051 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001162/0.01219, allocations: 229.2 kB / 230.9 MB, free: 6.816 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 1.679e-05/0.01221, allocations: 33.7 kB / 231 MB, free: 6.777 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.065e-05/0.01228, allocations: 196.2 kB / 231.2 MB, free: 6.582 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.158e-05/0.01232, allocations: 83.36 kB / 231.2 MB, free: 6.5 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.584e-05/0.01238, allocations: 58 kB / 231.3 MB, free: 6.438 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 7.405e-05/0.01245, allocations: 338.8 kB / 231.6 MB, free: 6.098 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.965e-05/0.01249, allocations: 28.64 kB / 231.7 MB, free: 6.07 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.942e-05/0.01259, allocations: 184.9 kB / 231.8 MB, free: 5.836 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000143/0.01273, allocations: 183.4 kB / 232 MB, free: 5.621 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.01273, allocations: 0 / 232 MB, free: 5.621 MB / 234.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0002381/0.01297, allocations: 215.9 kB / 232.2 MB, free: 5.402 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.336e-05/0.01299, allocations: 11.98 kB / 232.2 MB, free: 5.391 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.01299, allocations: 7.938 kB / 232.2 MB, free: 5.383 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001166/0.01311, allocations: 36.83 kB / 232.3 MB, free: 5.344 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001658/0.01327, allocations: 83.98 kB / 232.4 MB, free: 5.262 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006987/0.01397, allocations: 1.316 MB / 233.7 MB, free: 3.863 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001184/0.01409, allocations: 39.77 kB / 233.7 MB, free: 3.824 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.408e-05/0.0141, allocations: 12.12 kB / 233.7 MB, free: 3.812 MB / 234.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 8.722e-05/0.01419, allocations: 133.8 kB / 233.9 MB, free: 3.672 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.585e-05/0.01422, allocations: 27.97 kB / 233.9 MB, free: 3.645 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.768e-05/0.01425, allocations: 26.22 kB / 233.9 MB, free: 3.617 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.455e-06/0.01425, allocations: 4 kB / 233.9 MB, free: 3.613 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.938e-06/0.01425, allocations: 3.984 kB / 233.9 MB, free: 3.609 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.446e-06/0.01426, allocations: 0 / 233.9 MB, free: 3.609 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001329/0.01439, allocations: 161.7 kB / 234.1 MB, free: 3.434 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.01439, allocations: 0 / 234.1 MB, free: 3.434 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001474/0.01454, allocations: 53.88 kB / 234.1 MB, free: 3.383 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.073e-05/0.01459, allocations: 35.77 kB / 234.2 MB, free: 3.348 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.628e-05/0.01467, allocations: 40.77 kB / 234.2 MB, free: 3.305 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.108e-05/0.01469, allocations: 4 kB / 234.2 MB, free: 3.301 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005489/0.01523, allocations: 1.17 MB / 235.4 MB, free: 2.047 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.01524, allocations: 0 / 235.4 MB, free: 2.047 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002229/0.01546, allocations: 213.5 kB / 235.6 MB, free: 1.816 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.07e-05/0.01548, allocations: 4 kB / 235.6 MB, free: 1.812 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.416e-05/0.01554, allocations: 20.11 kB / 235.6 MB, free: 1.793 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.826e-05/0.0156, allocations: 35.88 kB / 235.6 MB, free: 1.758 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.045e-06/0.01561, allocations: 4 kB / 235.7 MB, free: 1.754 MB / 234.7 MB Notification: Performance of sorting global known variables: time 5.567e-05/0.01567, allocations: 74.77 kB / 235.7 MB, free: 1.676 MB / 234.7 MB Notification: Performance of sort global known variables: time 3e-08/0.01567, allocations: 0 / 235.7 MB, free: 1.676 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.0002103/0.01588, allocations: 91.84 kB / 235.8 MB, free: 1.586 MB / 234.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 9.68e-05/0.01597, allocations: 80.42 kB / 235.9 MB, free: 1.496 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.0002636/0.01624, allocations: 254.7 kB / 236.1 MB, free: 1.234 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 1.011e-05/0.01625, allocations: 4 kB / 236.1 MB, free: 1.23 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001362/0.01638, allocations: 180.2 kB / 236.3 MB, free: 1.039 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002356/0.01662, allocations: 349.3 kB / 236.7 MB, free: 0.6367 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002524/0.01914, allocations: 0.6205 MB / 237.3 MB, free: 15.98 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.873e-05/0.01919, allocations: 96.3 kB / 237.4 MB, free: 15.87 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 7.102e-05/0.01926, allocations: 22.3 kB / 237.4 MB, free: 15.85 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001096/0.01937, allocations: 103.3 kB / 237.5 MB, free: 15.75 MB / 250.7 MB Notification: Performance of SimCode: time 9.32e-07/0.01937, allocations: 0 / 237.5 MB, free: 15.75 MB / 250.7 MB Notification: Performance of Templates: time 0.005378/0.02475, allocations: 3.254 MB / 240.8 MB, free: 12.52 MB / 250.7 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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.0297722294926643]