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.001139/0.001139, allocations: 68.19 kB / 9.935 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001964/0.003103, allocations: 445.7 kB / 10.37 MB, free: 328 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.001026/0.001026, allocations: 161.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001048/0.002075, allocations: 463.6 kB / 11.71 MB, free: 2.453 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 0.8415/0.8415, allocations: 158.6 MB / 171.1 MB, free: 2.578 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1297/0.9713, allocations: 49.48 MB / 220.6 MB, free: 1.445 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.733e-06/1.733e-06, allocations: 0 / 221.9 MB, free: 156 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.047e-06/1.078e-05, allocations: 2.312 kB / 221.9 MB, free: 152 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.003048/0.003059, allocations: 3.094 MB / 224.9 MB, free: 13.03 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001048/0.004107, allocations: 0.8145 MB / 225.8 MB, free: 12.21 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001288/0.004236, allocations: 4 kB / 225.8 MB, free: 12.2 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001183/0.004354, allocations: 59.44 kB / 225.8 MB, free: 12.14 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000131/0.004485, allocations: 118.9 kB / 225.9 MB, free: 12.03 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001905/0.004675, allocations: 107.7 kB / 226 MB, free: 11.92 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002777/0.004953, allocations: 429.9 kB / 226.5 MB, free: 11.5 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001603/0.005113, allocations: 99 kB / 226.6 MB, free: 11.41 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002379/0.005351, allocations: 268.1 kB / 226.8 MB, free: 11.14 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001691/0.00552, allocations: 131.6 kB / 227 MB, free: 11.02 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 5.436e-05/0.005575, allocations: 36 kB / 227 MB, free: 10.98 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.062e-05/0.005615, allocations: 32 kB / 227 MB, free: 10.95 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 5.631e-05/0.005672, allocations: 63.8 kB / 227.1 MB, free: 10.89 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001037/0.005775, allocations: 111.8 kB / 227.2 MB, free: 10.78 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002835/0.006059, allocations: 251.1 kB / 227.4 MB, free: 10.53 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.501e-05/0.006074, allocations: 0 / 227.4 MB, free: 10.53 MB / 234.7 MB Notification: Performance of FrontEnd: time 6.12e-07/0.006074, allocations: 0 / 227.4 MB, free: 10.53 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.886e-05/0.006093, allocations: 0 / 227.4 MB, free: 10.53 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.0006791/0.006772, allocations: 0.6283 MB / 228.1 MB, free: 9.879 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.763e-05/0.0068, allocations: 12.03 kB / 228.1 MB, free: 9.867 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.735e-05/0.006867, allocations: 56.89 kB / 228.1 MB, free: 9.812 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002444/0.007112, allocations: 194.1 kB / 228.3 MB, free: 9.594 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.567e-05/0.007197, allocations: 128 kB / 228.4 MB, free: 9.445 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.612e-05/0.007233, allocations: 36.38 kB / 228.5 MB, free: 9.41 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002691/0.007503, allocations: 323.3 kB / 228.8 MB, free: 9.059 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.809e-06/0.007512, allocations: 192 / 228.8 MB, free: 9.059 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.976e-05/0.007532, allocations: 20.12 kB / 228.8 MB, free: 9.039 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.856e-06/0.007541, allocations: 8 kB / 228.8 MB, free: 9.031 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000109/0.00765, allocations: 92.47 kB / 228.9 MB, free: 8.941 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000937/0.008587, allocations: 1.068 MB / 230 MB, free: 7.801 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001703/0.008757, allocations: 106.5 kB / 230.1 MB, free: 7.688 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.509e-05/0.008812, allocations: 36.84 kB / 230.1 MB, free: 7.648 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.74e-05/0.00883, allocations: 4 kB / 230.1 MB, free: 7.645 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002102/0.00904, allocations: 189.1 kB / 230.3 MB, free: 7.426 MB / 234.7 MB Notification: Performance of pre-optimization done (n=21): time 1.463e-06/0.009041, allocations: 0 / 230.3 MB, free: 7.426 MB / 234.7 MB Notification: Performance of matching and sorting (n=21): time 0.000423/0.009464, allocations: 194.3 kB / 230.5 MB, free: 7.227 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.819e-05/0.009493, allocations: 55.34 kB / 230.6 MB, free: 7.16 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001191/0.009612, allocations: 229.2 kB / 230.8 MB, free: 6.922 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 1.513e-05/0.009627, allocations: 29.7 kB / 230.8 MB, free: 6.887 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.982e-05/0.009707, allocations: 200.2 kB / 231 MB, free: 6.688 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.156e-05/0.009758, allocations: 79.36 kB / 231.1 MB, free: 6.609 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.91e-05/0.009817, allocations: 61.98 kB / 231.1 MB, free: 6.543 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 7.86e-05/0.009896, allocations: 338.8 kB / 231.5 MB, free: 6.203 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.588e-05/0.009932, allocations: 28.64 kB / 231.5 MB, free: 6.176 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.21e-05/0.01002, allocations: 176.9 kB / 231.7 MB, free: 5.949 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001293/0.01015, allocations: 175.4 kB / 231.8 MB, free: 5.742 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.01016, allocations: 0 / 231.8 MB, free: 5.742 MB / 234.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0002169/0.01037, allocations: 215.9 kB / 232.1 MB, free: 5.523 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.327e-05/0.01039, allocations: 8 kB / 232.1 MB, free: 5.516 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.825e-06/0.01039, allocations: 7.984 kB / 232.1 MB, free: 5.508 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001245/0.01052, allocations: 37.02 kB / 232.1 MB, free: 5.469 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001709/0.01069, allocations: 87.83 kB / 232.2 MB, free: 5.383 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000781/0.01147, allocations: 1.312 MB / 233.5 MB, free: 3.988 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001085/0.01158, allocations: 51.89 kB / 233.6 MB, free: 3.938 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.363e-05/0.01159, allocations: 4 kB / 233.6 MB, free: 3.934 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 7.594e-05/0.01167, allocations: 125.8 kB / 233.7 MB, free: 3.801 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.793e-05/0.0117, allocations: 31.91 kB / 233.7 MB, free: 3.77 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.618e-05/0.01172, allocations: 34.2 kB / 233.7 MB, free: 3.734 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.554e-06/0.01172, allocations: 7.984 kB / 233.8 MB, free: 3.727 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.72e-07/0.01173, allocations: 0 / 233.8 MB, free: 3.727 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.01173, allocations: 0 / 233.8 MB, free: 3.727 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001167/0.01184, allocations: 161.6 kB / 233.9 MB, free: 3.551 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.01185, allocations: 0 / 233.9 MB, free: 3.551 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001249/0.01197, allocations: 55.84 kB / 234 MB, free: 3.496 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.414e-05/0.01202, allocations: 31.78 kB / 234 MB, free: 3.465 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.144e-05/0.0121, allocations: 36.83 kB / 234 MB, free: 3.426 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.899e-06/0.01211, allocations: 4 kB / 234 MB, free: 3.422 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006226/0.01273, allocations: 1.17 MB / 235.2 MB, free: 2.168 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.01273, allocations: 3.984 kB / 235.2 MB, free: 2.164 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002139/0.01295, allocations: 205.6 kB / 235.4 MB, free: 1.941 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.927e-05/0.01296, allocations: 4 kB / 235.4 MB, free: 1.938 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.293e-05/0.01303, allocations: 24.14 kB / 235.4 MB, free: 1.914 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.192e-05/0.01308, allocations: 27.94 kB / 235.5 MB, free: 1.887 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.462e-06/0.01309, allocations: 0 / 235.5 MB, free: 1.887 MB / 234.7 MB Notification: Performance of sorting global known variables: time 4.902e-05/0.01314, allocations: 74.78 kB / 235.5 MB, free: 1.812 MB / 234.7 MB Notification: Performance of sort global known variables: time 3e-08/0.01314, allocations: 0 / 235.5 MB, free: 1.812 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.0001971/0.01333, allocations: 87.84 kB / 235.6 MB, free: 1.727 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 7.791e-05/0.01341, allocations: 84.42 kB / 235.7 MB, free: 1.633 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.0002553/0.01367, allocations: 254.4 kB / 236 MB, free: 1.371 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 1.001e-05/0.01368, allocations: 8 kB / 236 MB, free: 1.363 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001114/0.01379, allocations: 172.3 kB / 236.1 MB, free: 1.18 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001249/0.01391, allocations: 52.44 kB / 236.2 MB, free: 1.129 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002446/0.01636, allocations: 0.6437 MB / 236.8 MB, free: 468 kB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.296e-05/0.01641, allocations: 96.3 kB / 236.9 MB, free: 352 kB / 234.7 MB Notification: Performance of simCode: alias equations: time 6.522e-05/0.01648, allocations: 26.27 kB / 236.9 MB, free: 328 kB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.437e-05/0.01657, allocations: 99.36 kB / 237 MB, free: 228 kB / 234.7 MB Notification: Performance of SimCode: time 7.81e-07/0.01657, allocations: 0 / 237 MB, free: 228 kB / 234.7 MB Notification: Performance of Templates: time 0.005115/0.02169, allocations: 3.362 MB / 240.4 MB, free: 12.89 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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.655170182697475]