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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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=48000,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=48000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001115/0.001115, allocations: 113.2 kB / 17.73 MB, free: 5.297 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001484/0.001484, allocations: 188.2 kB / 18.67 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.701/1.701, allocations: 205.1 MB / 224.5 MB, free: 12.22 MB / 190.1 MB 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.001775/0.001775, allocations: 47.94 kB / 328.5 MB, free: 3.281 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1541/0.1559, allocations: 46.61 MB / 375.2 MB, free: 4.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.006399/0.1624, allocations: 3.088 MB / 378.2 MB, free: 1.453 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002057/0.1645, allocations: 0.8029 MB / 379 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004293/0.165, allocations: 4 kB / 379 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003018/0.1653, allocations: 55.42 kB / 379.1 MB, free: 0.582 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003934/0.1657, allocations: 103 kB / 379.2 MB, free: 492 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005183/0.1663, allocations: 111.7 kB / 379.3 MB, free: 380 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.2837/0.45, allocations: 418.5 kB / 379.7 MB, free: 9.781 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005347/0.4506, allocations: 138.6 kB / 379.9 MB, free: 9.766 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004874/0.4511, allocations: 163.1 kB / 380 MB, free: 9.766 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002951/0.4514, allocations: 174.4 kB / 380.2 MB, free: 9.727 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.07e-05/0.4515, allocations: 34.19 kB / 380.2 MB, free: 9.727 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.357e-05/0.4515, allocations: 34.38 kB / 380.3 MB, free: 9.727 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.191e-05/0.4516, allocations: 80.86 kB / 380.3 MB, free: 9.715 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002258/0.4519, allocations: 187.7 kB / 380.5 MB, free: 9.664 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007128/0.4526, allocations: 424 kB / 380.9 MB, free: 9.594 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.041e-06/0.4526, allocations: 0 / 380.9 MB, free: 9.594 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.4526, allocations: 1.375 kB / 380.9 MB, free: 9.594 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.104e-05/0.4526, allocations: 0 / 380.9 MB, free: 9.594 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.001204/0.4539, allocations: 0.6569 MB / 381.6 MB, free: 9.125 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.471e-05/0.4539, allocations: 13.48 kB / 381.6 MB, free: 9.121 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001185/0.454, allocations: 46.08 kB / 381.6 MB, free: 9.098 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004992/0.4545, allocations: 283.2 kB / 381.9 MB, free: 8.871 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.346e-05/0.4547, allocations: 78.78 kB / 382 MB, free: 8.809 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.366e-05/0.4547, allocations: 31.59 kB / 382 MB, free: 8.809 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007344/0.4555, allocations: 344.1 kB / 382.4 MB, free: 8.73 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.582e-05/0.4555, allocations: 0.75 kB / 382.4 MB, free: 8.73 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.613e-05/0.4555, allocations: 15.91 kB / 382.4 MB, free: 8.73 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.22e-05/0.4556, allocations: 8.438 kB / 382.4 MB, free: 8.73 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005287/0.4561, allocations: 216.7 kB / 382.6 MB, free: 8.727 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00199/0.4581, allocations: 1.357 MB / 384 MB, free: 7.945 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003943/0.4585, allocations: 177.3 kB / 384.1 MB, free: 7.91 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001818/0.4587, allocations: 86.73 kB / 384.2 MB, free: 7.902 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.558e-05/0.4587, allocations: 5.984 kB / 384.2 MB, free: 7.898 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003127/0.4591, allocations: 156.6 kB / 384.4 MB, free: 7.828 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 2.084e-06/0.4591, allocations: 0 / 384.4 MB, free: 7.828 MB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.001284/0.4604, allocations: 401.8 kB / 384.8 MB, free: 7.676 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.472e-05/0.4604, allocations: 110.2 kB / 384.9 MB, free: 7.547 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003437/0.4608, allocations: 260.3 kB / 385.1 MB, free: 7.441 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.066e-05/0.4608, allocations: 34.61 kB / 385.2 MB, free: 7.406 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001513/0.461, allocations: 210.4 kB / 385.4 MB, free: 7.262 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.415e-05/0.4611, allocations: 76.66 kB / 385.4 MB, free: 7.219 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001232/0.4612, allocations: 63.33 kB / 385.5 MB, free: 7.199 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001088/0.4613, allocations: 337.3 kB / 385.8 MB, free: 6.887 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001803/0.4615, allocations: 77.55 kB / 385.9 MB, free: 6.867 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002464/0.4617, allocations: 182.4 kB / 386.1 MB, free: 6.715 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000364/0.4621, allocations: 240.3 kB / 386.3 MB, free: 6.547 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.145e-06/0.4621, allocations: 0 / 386.3 MB, free: 6.547 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006889/0.4628, allocations: 347.6 kB / 386.7 MB, free: 6.406 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.934e-05/0.4629, allocations: 5.594 kB / 386.7 MB, free: 6.406 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.061e-05/0.4629, allocations: 4.625 kB / 386.7 MB, free: 6.406 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003066/0.4632, allocations: 50.78 kB / 386.7 MB, free: 6.391 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002726/0.4635, allocations: 70.02 kB / 386.8 MB, free: 6.387 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001154/0.4646, allocations: 1.571 MB / 388.4 MB, free: 4.828 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002408/0.4649, allocations: 42.34 kB / 388.4 MB, free: 4.809 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.996e-05/0.4649, allocations: 15.61 kB / 388.4 MB, free: 4.805 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.0001336/0.4651, allocations: 150 kB / 388.6 MB, free: 4.668 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.974e-05/0.4651, allocations: 33.31 kB / 388.6 MB, free: 4.648 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.979e-05/0.4652, allocations: 31.47 kB / 388.6 MB, free: 4.621 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.588e-06/0.4652, allocations: 7.297 kB / 388.6 MB, free: 4.621 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.157e-06/0.4652, allocations: 3.938 kB / 388.6 MB, free: 4.617 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.841e-06/0.4652, allocations: 2.5 kB / 388.6 MB, free: 4.617 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003788/0.4656, allocations: 335.4 kB / 389 MB, free: 4.367 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.285e-06/0.4656, allocations: 0 / 389 MB, free: 4.367 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000191/0.4658, allocations: 38.62 kB / 389 MB, free: 4.363 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001838/0.466, allocations: 51.81 kB / 389.1 MB, free: 4.344 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.272e-05/0.466, allocations: 11.61 kB / 389.1 MB, free: 4.336 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000902/0.4669, allocations: 1.419 MB / 390.5 MB, free: 2.922 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.544e-06/0.4669, allocations: 0 / 390.5 MB, free: 2.922 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007205/0.4677, allocations: 359.6 kB / 390.8 MB, free: 2.738 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001025/0.4678, allocations: 116.5 kB / 391 MB, free: 2.621 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.31e-05/0.4678, allocations: 6.922 kB / 391 MB, free: 2.617 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001734/0.468, allocations: 19.27 kB / 391 MB, free: 2.613 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000107/0.4681, allocations: 31.31 kB / 391 MB, free: 2.605 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.561e-05/0.4681, allocations: 8.938 kB / 391 MB, free: 2.602 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002164/0.4684, allocations: 189.3 kB / 391.2 MB, free: 2.496 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.4684, allocations: 0 / 391.2 MB, free: 2.496 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004292/0.4688, allocations: 89.72 kB / 391.3 MB, free: 2.477 MB / 318.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.0001831/0.469, allocations: 103.3 kB / 391.4 MB, free: 2.383 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0006614/0.4697, allocations: 322.4 kB / 391.7 MB, free: 2.211 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.4697, allocations: 0 / 391.7 MB, free: 2.211 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003142/0.47, allocations: 203.9 kB / 391.9 MB, free: 2.07 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002974/0.4703, allocations: 29.59 kB / 391.9 MB, free: 2.059 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001596/0.4719, allocations: 0.6766 MB / 392.6 MB, free: 1.66 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003157/0.4723, allocations: 0.7705 MB / 393.4 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000122/0.4724, allocations: 28.27 kB / 393.4 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.978e-05/0.4725, allocations: 26.12 kB / 393.4 MB, free: 0.9414 MB / 318.1 MB Notification: Performance of SimCode: time 2.2e-07/0.4725, allocations: 5.344 kB / 393.4 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of Templates: time 0.009061/0.4815, allocations: 3.146 MB / 396.6 MB, free: 0.7109 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile (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) 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) Reference file matches