Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.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.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001749/0.001749, allocations: 109.3 kB / 17.73 MB, free: 5.316 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.002131/0.002131, allocations: 188.2 kB / 18.66 MB, free: 4.395 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.464/1.464, allocations: 205.1 MB / 224.5 MB, free: 12.21 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.001345/0.001345, allocations: 51.92 kB / 328.5 MB, free: 3.273 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09388/0.09524, allocations: 46.61 MB / 375.1 MB, free: 4.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.003642/0.09891, allocations: 2.824 MB / 378 MB, free: 1.715 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001534/0.1005, allocations: 0.7795 MB / 378.7 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000176/0.1007, allocations: 4 kB / 378.8 MB, free: 0.9219 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001732/0.1009, allocations: 51.5 kB / 378.8 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001755/0.1011, allocations: 91.19 kB / 378.9 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003386/0.1014, allocations: 103.7 kB / 379 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003675/0.1018, allocations: 370.3 kB / 379.4 MB, free: 324 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002276/0.102, allocations: 123.2 kB / 379.5 MB, free: 196 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001378/0.1022, allocations: 131.6 kB / 379.6 MB, free: 64 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2601/0.3623, allocations: 155.8 kB / 379.8 MB, free: 9.984 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00017/0.3626, allocations: 30.06 kB / 379.8 MB, free: 9.984 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001494/0.3627, allocations: 29.88 kB / 379.8 MB, free: 9.984 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.79e-05/0.3628, allocations: 68.22 kB / 379.9 MB, free: 9.984 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002894/0.3631, allocations: 167.9 kB / 380 MB, free: 9.984 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007022/0.3638, allocations: 366.1 kB / 380.4 MB, free: 9.945 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.032e-06/0.3638, allocations: 0 / 380.4 MB, free: 9.945 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.835e-06/0.3639, allocations: 2.5 kB / 380.4 MB, free: 9.945 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.406e-06/0.3639, allocations: 0 / 380.4 MB, free: 9.945 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: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.001157/0.365, allocations: 0.6159 MB / 381 MB, free: 9.5 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.173e-05/0.3651, allocations: 10.28 kB / 381 MB, free: 9.5 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001056/0.3652, allocations: 34.44 kB / 381.1 MB, free: 9.484 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004165/0.3656, allocations: 260.2 kB / 381.3 MB, free: 9.266 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.744e-05/0.3657, allocations: 81.7 kB / 381.4 MB, free: 9.203 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.855e-05/0.3658, allocations: 26.09 kB / 381.4 MB, free: 9.203 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006512/0.3665, allocations: 303.5 kB / 381.7 MB, free: 9.133 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.643e-05/0.3665, allocations: 0 / 381.7 MB, free: 9.133 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.317e-05/0.3665, allocations: 12.66 kB / 381.7 MB, free: 9.133 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.215e-05/0.3666, allocations: 6.875 kB / 381.7 MB, free: 9.133 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004128/0.367, allocations: 194.8 kB / 381.9 MB, free: 9.129 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002115/0.3691, allocations: 1.122 MB / 383.1 MB, free: 8.516 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005143/0.3696, allocations: 156.5 kB / 383.2 MB, free: 8.492 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002303/0.3699, allocations: 78.2 kB / 383.3 MB, free: 8.484 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.282e-05/0.3699, allocations: 5.812 kB / 383.3 MB, free: 8.484 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003204/0.3702, allocations: 159.1 kB / 383.4 MB, free: 8.406 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 1.643e-06/0.3703, allocations: 4 kB / 383.4 MB, free: 8.402 MB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.00112/0.3714, allocations: 377.6 kB / 383.8 MB, free: 8.258 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.344e-05/0.3715, allocations: 105.4 kB / 383.9 MB, free: 8.133 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002807/0.3717, allocations: 231.3 kB / 384.1 MB, free: 8.023 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.473e-05/0.3718, allocations: 31.95 kB / 384.2 MB, free: 7.992 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001342/0.3719, allocations: 187.2 kB / 384.4 MB, free: 7.863 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.264e-05/0.372, allocations: 60.48 kB / 384.4 MB, free: 7.828 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.965e-05/0.3721, allocations: 62.88 kB / 384.5 MB, free: 7.809 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.491e-05/0.3722, allocations: 334.8 kB / 384.8 MB, free: 7.492 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001278/0.3723, allocations: 66.28 kB / 384.9 MB, free: 7.492 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001707/0.3725, allocations: 148.5 kB / 385 MB, free: 7.406 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000284/0.3728, allocations: 190 kB / 385.2 MB, free: 7.336 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.561e-06/0.3728, allocations: 3.547 kB / 385.2 MB, free: 7.336 MB / 318.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004552/0.3732, allocations: 269 kB / 385.5 MB, free: 7.281 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.91e-05/0.3733, allocations: 6.375 kB / 385.5 MB, free: 7.281 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.057e-06/0.3733, allocations: 6.312 kB / 385.5 MB, free: 7.277 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002913/0.3736, allocations: 54.97 kB / 385.5 MB, free: 7.27 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002287/0.3738, allocations: 53.62 kB / 385.6 MB, free: 7.27 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001145/0.375, allocations: 1.573 MB / 387.2 MB, free: 5.699 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002552/0.3752, allocations: 37.94 kB / 387.2 MB, free: 5.68 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.682e-05/0.3753, allocations: 13.22 kB / 387.2 MB, free: 5.676 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,switch2.tSwitch,$PRE.switch2.tSwitch,switch2.quenched,$PRE.switch2.quenched,switch2.off,$PRE.switch2.off,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 33 * 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.0001425/0.3754, allocations: 152 kB / 387.4 MB, free: 5.539 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.786e-05/0.3755, allocations: 23.59 kB / 387.4 MB, free: 5.527 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.86e-05/0.3755, allocations: 26.5 kB / 387.4 MB, free: 5.508 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.3755, allocations: 5.875 kB / 387.4 MB, free: 5.504 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.3755, allocations: 1.781 kB / 387.4 MB, free: 5.504 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.202e-06/0.3756, allocations: 5.109 kB / 387.4 MB, free: 5.5 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003445/0.3759, allocations: 327.4 kB / 387.7 MB, free: 5.246 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.794e-06/0.3759, allocations: 0 / 387.7 MB, free: 5.246 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000174/0.3761, allocations: 33.8 kB / 387.8 MB, free: 5.246 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001961/0.3763, allocations: 56.31 kB / 387.8 MB, free: 5.223 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.149e-05/0.3763, allocations: 3.031 kB / 387.8 MB, free: 5.223 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009461/0.3773, allocations: 1.421 MB / 389.2 MB, free: 3.809 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.3773, allocations: 3.938 kB / 389.3 MB, free: 3.805 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006519/0.378, allocations: 328.7 kB / 389.6 MB, free: 3.633 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.703e-05/0.3781, allocations: 108.5 kB / 389.7 MB, free: 3.523 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.824e-05/0.3781, allocations: 10.86 kB / 389.7 MB, free: 3.516 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001682/0.3783, allocations: 18.03 kB / 389.7 MB, free: 3.512 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001215/0.3784, allocations: 28.52 kB / 389.7 MB, free: 3.508 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.719e-05/0.3784, allocations: 4.766 kB / 389.7 MB, free: 3.508 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001923/0.3786, allocations: 162.4 kB / 389.9 MB, free: 3.402 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.3787, allocations: 2.906 kB / 389.9 MB, free: 3.402 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004425/0.3791, allocations: 91 kB / 390 MB, free: 3.375 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: 6 ($whenCondition2,$whenCondition1,booleanPulse.pulseStart,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): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001696/0.3793, allocations: 103.3 kB / 390.1 MB, free: 3.285 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0006754/0.38, allocations: 293.6 kB / 390.4 MB, free: 3.121 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.38, allocations: 0 / 390.4 MB, free: 3.121 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003086/0.3803, allocations: 192.4 kB / 390.6 MB, free: 2.988 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003742/0.3807, allocations: 44.23 kB / 390.6 MB, free: 2.973 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002054/0.3827, allocations: 0.6484 MB / 391.3 MB, free: 2.602 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003618/0.3831, allocations: 0.7586 MB / 392 MB, free: 1.902 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001831/0.3833, allocations: 28.42 kB / 392 MB, free: 1.887 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.672e-05/0.3834, allocations: 21.56 kB / 392.1 MB, free: 1.879 MB / 318.1 MB Notification: Performance of SimCode: time 6.21e-07/0.3834, allocations: 0 / 392.1 MB, free: 1.879 MB / 318.1 MB Notification: Performance of Templates: time 0.009957/0.3934, allocations: 3.09 MB / 395.2 MB, free: 1.664 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches