Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001626/0.001626, allocations: 200.6 kB / 17.43 MB, free: 4.277 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.681/1.681, allocations: 229.5 MB / 247.7 MB, free: 6.332 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000754/0.0007541, allocations: 96.25 kB / 299.8 MB, free: 5.359 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002414/0.0002415, allocations: 4 kB / 360.6 MB, free: 8.492 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2598/0.2601, allocations: 51.42 MB / 412.1 MB, free: 25.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.002876/0.263, allocations: 2.696 MB / 414.8 MB, free: 23.2 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001161/0.2642, allocations: 0.9798 MB / 415.7 MB, free: 22.17 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001399/0.2644, allocations: 9.219 kB / 415.7 MB, free: 22.16 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001592/0.2645, allocations: 43.67 kB / 415.8 MB, free: 22.12 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001701/0.2647, allocations: 92.5 kB / 415.9 MB, free: 22.03 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00037/0.2651, allocations: 99.91 kB / 416 MB, free: 21.93 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003428/0.2654, allocations: 397.9 kB / 416.4 MB, free: 21.54 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002486/0.2657, allocations: 112.3 kB / 416.5 MB, free: 21.42 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002346/0.2659, allocations: 147.4 kB / 416.6 MB, free: 21.28 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001794/0.2661, allocations: 151.3 kB / 416.8 MB, free: 21.13 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.766e-05/0.2662, allocations: 20 kB / 416.8 MB, free: 21.11 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.483e-05/0.2663, allocations: 24 kB / 416.8 MB, free: 21.09 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.979e-05/0.2663, allocations: 59.69 kB / 416.9 MB, free: 21.03 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001445/0.2665, allocations: 200.8 kB / 417.1 MB, free: 20.82 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002908/0.2668, allocations: 400 kB / 417.5 MB, free: 20.43 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.043e-05/0.2668, allocations: 0 / 417.5 MB, free: 20.43 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.214e-06/0.2668, allocations: 0 / 417.5 MB, free: 20.43 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.252e-06/0.2668, allocations: 0 / 417.5 MB, free: 20.43 MB / 298.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.0008592/0.2677, allocations: 0.6004 MB / 418.1 MB, free: 19.78 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.481e-05/0.2677, allocations: 12.03 kB / 418.1 MB, free: 19.77 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001702/0.2679, allocations: 48.47 kB / 418.1 MB, free: 19.72 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002815/0.2682, allocations: 285.2 kB / 418.4 MB, free: 19.4 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.934e-05/0.2683, allocations: 80.62 kB / 418.5 MB, free: 19.31 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.954e-05/0.2683, allocations: 28.38 kB / 418.5 MB, free: 19.29 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000488/0.2688, allocations: 346.9 kB / 418.8 MB, free: 18.93 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.167e-05/0.2689, allocations: 3.938 kB / 418.8 MB, free: 18.93 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.005e-05/0.2689, allocations: 16 kB / 418.9 MB, free: 18.91 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.656e-06/0.2689, allocations: 8 kB / 418.9 MB, free: 18.91 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003543/0.2693, allocations: 218.5 kB / 419.1 MB, free: 18.69 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001427/0.2707, allocations: 1.376 MB / 420.5 MB, free: 17.21 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003018/0.271, allocations: 174.5 kB / 420.6 MB, free: 17.04 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001401/0.2712, allocations: 92.77 kB / 420.7 MB, free: 16.94 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.907e-05/0.2712, allocations: 3.938 kB / 420.7 MB, free: 16.94 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002997/0.2715, allocations: 164.4 kB / 420.9 MB, free: 16.76 MB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 2.094e-06/0.2715, allocations: 0 / 420.9 MB, free: 16.76 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.0009999/0.2725, allocations: 419.1 kB / 421.3 MB, free: 16.32 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.754e-05/0.2726, allocations: 114.8 kB / 421.4 MB, free: 16.18 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002091/0.2728, allocations: 258.6 kB / 421.6 MB, free: 15.92 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.722e-05/0.2728, allocations: 33.7 kB / 421.7 MB, free: 15.88 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.124e-05/0.2729, allocations: 207.8 kB / 421.9 MB, free: 15.68 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.874e-05/0.273, allocations: 67.09 kB / 422 MB, free: 15.61 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.179e-05/0.273, allocations: 8 kB / 422 MB, free: 15.6 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.833e-05/0.2731, allocations: 334.8 kB / 422.3 MB, free: 15.27 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001324/0.2732, allocations: 80.61 kB / 422.4 MB, free: 15.19 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001676/0.2734, allocations: 177.5 kB / 422.5 MB, free: 14.97 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002673/0.2736, allocations: 245 kB / 422.8 MB, free: 14.7 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.2737, allocations: 0 / 422.8 MB, free: 14.7 MB / 298.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005526/0.2742, allocations: 356.2 kB / 423.1 MB, free: 14.34 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.532e-05/0.2742, allocations: 8 kB / 423.1 MB, free: 14.34 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.192e-06/0.2742, allocations: 0 / 423.1 MB, free: 14.34 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002503/0.2745, allocations: 60.97 kB / 423.2 MB, free: 14.27 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002361/0.2748, allocations: 67.91 kB / 423.3 MB, free: 14.21 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009144/0.2757, allocations: 1.404 MB / 424.7 MB, free: 12.67 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002195/0.2759, allocations: 51.77 kB / 424.7 MB, free: 12.62 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.062e-05/0.2759, allocations: 12 kB / 424.7 MB, free: 12.61 MB / 298.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 ($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 (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.0001186/0.2761, allocations: 149.8 kB / 424.9 MB, free: 12.45 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.783e-05/0.2761, allocations: 23.72 kB / 424.9 MB, free: 12.43 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.793e-05/0.2761, allocations: 30.17 kB / 424.9 MB, free: 12.4 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.724e-06/0.2761, allocations: 4 kB / 424.9 MB, free: 12.39 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.2762, allocations: 3.938 kB / 424.9 MB, free: 12.39 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.2762, allocations: 4 kB / 424.9 MB, free: 12.39 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002411/0.2764, allocations: 341.3 kB / 425.3 MB, free: 12 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.814e-06/0.2764, allocations: 3.938 kB / 425.3 MB, free: 12 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001714/0.2766, allocations: 35.98 kB / 425.3 MB, free: 11.96 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001574/0.2768, allocations: 56.81 kB / 425.4 MB, free: 11.91 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.715e-05/0.2768, allocations: 3.984 kB / 425.4 MB, free: 11.9 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007672/0.2776, allocations: 1.339 MB / 426.7 MB, free: 10.43 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.2776, allocations: 0 / 426.7 MB, free: 10.43 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005896/0.2782, allocations: 355.2 kB / 427.1 MB, free: 10.07 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.712e-05/0.2783, allocations: 124.8 kB / 427.2 MB, free: 9.926 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.498e-05/0.2783, allocations: 4 kB / 427.2 MB, free: 9.922 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001631/0.2785, allocations: 23.98 kB / 427.2 MB, free: 9.898 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.672e-05/0.2786, allocations: 32.02 kB / 427.2 MB, free: 9.867 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.349e-05/0.2786, allocations: 7.984 kB / 427.2 MB, free: 9.859 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001279/0.2787, allocations: 178 kB / 427.4 MB, free: 9.684 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.11e-07/0.2787, allocations: 0 / 427.4 MB, free: 9.684 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003514/0.2791, allocations: 87.75 kB / 427.5 MB, free: 9.598 MB / 298.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 0.000131/0.2792, allocations: 111.2 kB / 427.6 MB, free: 9.477 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004994/0.2797, allocations: 320.1 kB / 427.9 MB, free: 9.152 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.2797, allocations: 0 / 427.9 MB, free: 9.152 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002386/0.28, allocations: 202.6 kB / 428.1 MB, free: 8.941 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00026/0.2803, allocations: 29.17 kB / 428.1 MB, free: 8.914 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001262/0.2815, allocations: 0.8635 MB / 429 MB, free: 8.023 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002091/0.2817, allocations: 0.7716 MB / 429.8 MB, free: 7.227 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001129/0.2819, allocations: 26.28 kB / 429.8 MB, free: 7.203 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.861e-05/0.2819, allocations: 19.44 kB / 429.8 MB, free: 7.184 MB / 298.7 MB Notification: Performance of SimCode: time 3.2e-07/0.2819, allocations: 0 / 429.8 MB, free: 7.184 MB / 298.7 MB Notification: Performance of Templates: time 0.005393/0.2873, allocations: 2.79 MB / 432.6 MB, free: 4.398 MB / 298.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches