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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001726/0.001726, allocations: 106 kB / 21.18 MB, free: 0.6992 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001464/0.001464, allocations: 181.2 kB / 24.46 MB, free: 4.062 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.802/1.802, allocations: 207.6 MB / 235.2 MB, free: 10.02 MB / 190.1 MB " [Timeout remaining time 178] 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001914/0.001914, allocations: 51.92 kB / 347.7 MB, free: 9.559 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4266/0.4285, allocations: 49.16 MB / 396.8 MB, free: 9.52 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.005642/0.4341, allocations: 3.121 MB / 399.9 MB, free: 7.309 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002058/0.4362, allocations: 0.798 MB / 400.7 MB, free: 6.73 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002044/0.4364, allocations: 9 kB / 400.7 MB, free: 6.727 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002151/0.4366, allocations: 60.45 kB / 400.8 MB, free: 6.691 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002154/0.4368, allocations: 101.2 kB / 400.9 MB, free: 6.617 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003951/0.4372, allocations: 114.8 kB / 401 MB, free: 6.551 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005019/0.4377, allocations: 420.9 kB / 401.4 MB, free: 6.34 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002284/0.438, allocations: 104.3 kB / 401.5 MB, free: 6.273 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002222/0.4382, allocations: 174.2 kB / 401.7 MB, free: 6.188 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002575/0.4384, allocations: 171 kB / 401.9 MB, free: 6.102 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.183e-05/0.4385, allocations: 34.22 kB / 401.9 MB, free: 6.102 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.769e-05/0.4386, allocations: 39.78 kB / 401.9 MB, free: 6.098 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.57e-05/0.4387, allocations: 79.7 kB / 402 MB, free: 6.043 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000215/0.4389, allocations: 190.3 kB / 402.2 MB, free: 5.93 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006859/0.4396, allocations: 427.2 kB / 402.6 MB, free: 5.766 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.372e-06/0.4396, allocations: 0 / 402.6 MB, free: 5.766 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.415e-06/0.4396, allocations: 0 / 402.6 MB, free: 5.766 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.085e-05/0.4396, allocations: 1.125 kB / 402.6 MB, free: 5.766 MB / 318.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.001222/0.4409, allocations: 0.5824 MB / 403.2 MB, free: 5.332 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.718e-05/0.4409, allocations: 16.55 kB / 403.2 MB, free: 5.324 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.758e-05/0.441, allocations: 45 kB / 403.3 MB, free: 5.301 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003884/0.4414, allocations: 218.5 kB / 403.5 MB, free: 5.109 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.577e-05/0.4415, allocations: 76.81 kB / 403.5 MB, free: 5.039 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.383e-05/0.4415, allocations: 37.59 kB / 403.6 MB, free: 5.023 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005962/0.4421, allocations: 337.3 kB / 403.9 MB, free: 4.852 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.309e-05/0.4421, allocations: 0 / 403.9 MB, free: 4.852 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.865e-05/0.4422, allocations: 16.22 kB / 403.9 MB, free: 4.84 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.257e-05/0.4422, allocations: 7.062 kB / 403.9 MB, free: 4.84 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004117/0.4426, allocations: 218.5 kB / 404.1 MB, free: 4.77 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001816/0.4444, allocations: 1.317 MB / 405.5 MB, free: 3.781 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003774/0.4448, allocations: 164.6 kB / 405.6 MB, free: 3.699 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000159/0.445, allocations: 92.48 kB / 405.7 MB, free: 3.652 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.371e-05/0.445, allocations: 3.438 kB / 405.7 MB, free: 3.652 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002896/0.4453, allocations: 152.3 kB / 405.9 MB, free: 3.551 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 1.192e-06/0.4453, allocations: 0 / 405.9 MB, free: 3.551 MB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.00117/0.4464, allocations: 326.9 kB / 406.2 MB, free: 3.422 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.378e-05/0.4465, allocations: 115.2 kB / 406.3 MB, free: 3.289 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002765/0.4468, allocations: 257.7 kB / 406.6 MB, free: 3.137 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.218e-05/0.4468, allocations: 31.02 kB / 406.6 MB, free: 3.102 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001245/0.4469, allocations: 209.5 kB / 406.8 MB, free: 2.926 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.773e-05/0.447, allocations: 71.39 kB / 406.9 MB, free: 2.871 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.721e-05/0.4471, allocations: 62.66 kB / 406.9 MB, free: 2.832 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.421e-05/0.4471, allocations: 338.2 kB / 407.2 MB, free: 2.508 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001818/0.4473, allocations: 82.84 kB / 407.3 MB, free: 2.477 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002109/0.4475, allocations: 180.5 kB / 407.5 MB, free: 2.324 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003546/0.4479, allocations: 239.2 kB / 407.7 MB, free: 2.148 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.4479, allocations: 0 / 407.7 MB, free: 2.148 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006635/0.4486, allocations: 342.6 kB / 408.1 MB, free: 1.996 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.274e-05/0.4486, allocations: 10.94 kB / 408.1 MB, free: 1.992 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.808e-06/0.4486, allocations: 2.75 kB / 408.1 MB, free: 1.992 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002935/0.4489, allocations: 54.78 kB / 408.1 MB, free: 1.973 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002661/0.4491, allocations: 63.7 kB / 408.2 MB, free: 1.965 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00117/0.4503, allocations: 1.465 MB / 409.7 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000291/0.4506, allocations: 45.81 kB / 409.7 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.486e-05/0.4506, allocations: 12.5 kB / 409.7 MB, free: 0.5039 MB / 318.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.0001418/0.4508, allocations: 154.2 kB / 409.9 MB, free: 368 kB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.81e-05/0.4508, allocations: 30.55 kB / 409.9 MB, free: 352 kB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.725e-05/0.4509, allocations: 34.78 kB / 409.9 MB, free: 320 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/0.4509, allocations: 2.75 kB / 409.9 MB, free: 320 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.987e-06/0.4509, allocations: 0 / 409.9 MB, free: 320 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/0.4509, allocations: 1.547 kB / 409.9 MB, free: 320 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003241/0.4512, allocations: 314.1 kB / 410.2 MB, free: 88 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.4512, allocations: 1.312 kB / 410.3 MB, free: 88 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001957/0.4514, allocations: 41.62 kB / 410.3 MB, free: 80 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000182/0.4516, allocations: 55.67 kB / 410.3 MB, free: 56 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.83e-05/0.4516, allocations: 6.719 kB / 410.4 MB, free: 52 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001286/0.4529, allocations: 1.324 MB / 411.7 MB, free: 14.75 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.4529, allocations: 0.75 kB / 411.7 MB, free: 14.75 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007549/0.4536, allocations: 347.2 kB / 412 MB, free: 14.57 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001026/0.4537, allocations: 43.86 kB / 412.1 MB, free: 14.54 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.242e-05/0.4538, allocations: 7.75 kB / 412.1 MB, free: 14.54 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001839/0.454, allocations: 18.8 kB / 412.1 MB, free: 14.53 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001064/0.4541, allocations: 36.06 kB / 412.1 MB, free: 14.52 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.639e-05/0.4541, allocations: 11.44 kB / 412.1 MB, free: 14.52 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002037/0.4543, allocations: 183.4 kB / 412.3 MB, free: 14.41 MB / 334.1 MB Notification: Performance of sort global known variables: time 5e-08/0.4543, allocations: 0 / 412.3 MB, free: 14.41 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004233/0.4547, allocations: 89.58 kB / 412.4 MB, free: 14.39 MB / 334.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.0001311/0.4548, allocations: 100.5 kB / 412.5 MB, free: 14.29 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006752/0.4555, allocations: 305.8 kB / 412.8 MB, free: 14.12 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.4555, allocations: 1.438 kB / 412.8 MB, free: 14.12 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003212/0.4558, allocations: 196.3 kB / 413 MB, free: 13.98 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000276/0.4561, allocations: 32.88 kB / 413 MB, free: 13.96 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001658/0.4578, allocations: 0.6876 MB / 413.7 MB, free: 13.53 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004731/0.4583, allocations: 0.7695 MB / 414.5 MB, free: 12.83 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001234/0.4584, allocations: 26.42 kB / 414.5 MB, free: 12.83 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.004e-05/0.4584, allocations: 25.44 kB / 414.5 MB, free: 12.82 MB / 334.1 MB Notification: Performance of SimCode: time 3.3e-07/0.4584, allocations: 4 kB / 414.5 MB, free: 12.81 MB / 334.1 MB Notification: Performance of Templates: time 0.008764/0.4672, allocations: 3.33 MB / 417.9 MB, free: 11.22 MB / 334.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: 5.572319149039686]