Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001893/0.001893, allocations: 181.2 kB / 17.41 MB, free: 4.289 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.724/3.724, allocations: 205.4 MB / 223.6 MB, free: 9.016 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001236/0.001236, allocations: 86.42 kB / 271.9 MB, free: 8.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006972/0.0006973, allocations: 19.98 kB / 328.2 MB, free: 15.93 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.647/0.6478, allocations: 47.57 MB / 375.7 MB, free: 45.4 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1894/0.8373, allocations: 78.79 MB / 454.5 MB, free: 1.828 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003322/0.8378, allocations: 67.97 kB / 454.6 MB, free: 1.762 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02541/0.8632, allocations: 6.116 MB / 460.7 MB, free: 11.61 MB / 346.7 MB Notification: Performance of FrontEnd: time 5.27e-06/0.8633, allocations: 0 / 460.7 MB, free: 11.61 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.944e-05/0.8633, allocations: 4 kB / 460.7 MB, free: 11.61 MB / 346.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.001558/0.8649, allocations: 0.6055 MB / 461.3 MB, free: 10.95 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.894e-05/0.865, allocations: 12.03 kB / 461.3 MB, free: 10.94 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001518/0.8651, allocations: 40.47 kB / 461.4 MB, free: 10.9 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005939/0.8657, allocations: 272.8 kB / 461.6 MB, free: 10.59 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001741/0.8659, allocations: 88.56 kB / 461.7 MB, free: 10.49 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.173e-05/0.866, allocations: 32.36 kB / 461.7 MB, free: 10.46 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009605/0.867, allocations: 331.3 kB / 462.1 MB, free: 10.12 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.433e-05/0.867, allocations: 3.938 kB / 462.1 MB, free: 10.12 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.777e-05/0.8671, allocations: 19.98 kB / 462.1 MB, free: 10.1 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.137e-05/0.8672, allocations: 8 kB / 462.1 MB, free: 10.09 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006992/0.8679, allocations: 222.5 kB / 462.3 MB, free: 9.871 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00309/0.871, allocations: 1.38 MB / 463.7 MB, free: 8.391 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005063/0.8715, allocations: 174.5 kB / 463.9 MB, free: 8.211 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002644/0.8718, allocations: 88.83 kB / 463.9 MB, free: 8.121 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.052e-05/0.8719, allocations: 0 / 463.9 MB, free: 8.121 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005953/0.8725, allocations: 162 kB / 464.1 MB, free: 7.945 MB / 346.7 MB Notification: Performance of pre-optimization done (n=21): time 2.424e-06/0.8725, allocations: 0 / 464.1 MB, free: 7.945 MB / 346.7 MB Notification: Performance of matching and sorting (n=21): time 0.002837/0.8753, allocations: 423 kB / 464.5 MB, free: 7.504 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001344/0.8755, allocations: 106.8 kB / 464.6 MB, free: 7.375 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005276/0.876, allocations: 258.7 kB / 464.9 MB, free: 7.117 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.766e-05/0.8761, allocations: 37.69 kB / 464.9 MB, free: 7.074 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002591/0.8764, allocations: 195.9 kB / 465.1 MB, free: 6.879 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001259/0.8765, allocations: 71.08 kB / 465.2 MB, free: 6.809 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.291e-05/0.8766, allocations: 12 kB / 465.2 MB, free: 6.797 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002124/0.8768, allocations: 334.8 kB / 465.5 MB, free: 6.461 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002543/0.8771, allocations: 71.97 kB / 465.6 MB, free: 6.391 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004422/0.8775, allocations: 178.5 kB / 465.8 MB, free: 6.176 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006115/0.8781, allocations: 222.6 kB / 466 MB, free: 5.93 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.581e-06/0.8782, allocations: 4 kB / 466 MB, free: 5.926 MB / 346.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001059/0.8792, allocations: 328.2 kB / 466.3 MB, free: 5.598 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.967e-05/0.8793, allocations: 12.97 kB / 466.3 MB, free: 5.586 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.776e-05/0.8793, allocations: 4 kB / 466.3 MB, free: 5.582 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004406/0.8798, allocations: 65.03 kB / 466.4 MB, free: 5.516 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004131/0.8802, allocations: 63.91 kB / 466.4 MB, free: 5.453 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002326/0.8826, allocations: 1.404 MB / 467.8 MB, free: 3.914 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004502/0.883, allocations: 51.77 kB / 467.9 MB, free: 3.863 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.202e-05/0.8831, allocations: 16 kB / 467.9 MB, free: 3.848 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,switch1.off,$PRE.switch2.off,switch2.off,$PRE.switch2.quenched,switch2.quenched,$PRE.switch2.tSwitch,switch2.tSwitch) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0004037/0.8835, allocations: 145.8 kB / 468.1 MB, free: 3.695 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.754e-05/0.8836, allocations: 23.72 kB / 468.1 MB, free: 3.672 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.979e-05/0.8837, allocations: 34.17 kB / 468.1 MB, free: 3.637 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.907e-06/0.8837, allocations: 4 kB / 468.1 MB, free: 3.633 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.097e-06/0.8837, allocations: 4 kB / 468.1 MB, free: 3.629 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.172e-05/0.8838, allocations: 3.938 kB / 468.1 MB, free: 3.625 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000647/0.8844, allocations: 345.2 kB / 468.5 MB, free: 3.238 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.537e-06/0.8844, allocations: 0 / 468.5 MB, free: 3.238 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002991/0.8847, allocations: 35.98 kB / 468.5 MB, free: 3.203 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002986/0.8851, allocations: 56.75 kB / 468.5 MB, free: 3.145 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.79e-05/0.8851, allocations: 7.984 kB / 468.6 MB, free: 3.137 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002299/0.8874, allocations: 1.319 MB / 469.9 MB, free: 1.688 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.55e-06/0.8875, allocations: 0 / 469.9 MB, free: 1.688 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001214/0.8887, allocations: 356 kB / 470.2 MB, free: 1.32 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003213/0.8891, allocations: 124.7 kB / 470.3 MB, free: 1.18 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.218e-05/0.8891, allocations: 0 / 470.3 MB, free: 1.18 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002686/0.8894, allocations: 28.05 kB / 470.4 MB, free: 1.152 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001625/0.8896, allocations: 35.92 kB / 470.4 MB, free: 1.117 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.544e-05/0.8896, allocations: 4 kB / 470.4 MB, free: 1.113 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003218/0.89, allocations: 186 kB / 470.6 MB, free: 0.9336 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.6e-07/0.89, allocations: 0 / 470.6 MB, free: 0.9336 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006978/0.8907, allocations: 91.75 kB / 470.7 MB, free: 0.8438 MB / 346.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002824/0.891, allocations: 111.2 kB / 470.8 MB, free: 0.7227 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001057/0.892, allocations: 315.9 kB / 471.1 MB, free: 412 kB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.872e-06/0.8921, allocations: 0 / 471.1 MB, free: 412 kB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004938/0.8926, allocations: 194.6 kB / 471.3 MB, free: 204 kB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005982/0.8932, allocations: 41.05 kB / 471.3 MB, free: 164 kB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002876/0.8961, allocations: 0.8714 MB / 472.2 MB, free: 15.26 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000745/0.8969, allocations: 0.7677 MB / 473 MB, free: 14.46 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001211/0.897, allocations: 23.44 kB / 473 MB, free: 14.44 MB / 362.7 MB Notification: Performance of SimCode: time 1.553e-06/0.897, allocations: 0 / 473 MB, free: 14.44 MB / 362.7 MB Notification: Performance of Templates: time 0.01391/0.9109, allocations: 4.598 MB / 477.6 MB, free: 9.855 MB / 362.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches