Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.conf.json 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: translateModel(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=48000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001013/0.001013, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.467/1.467, allocations: 221.5 MB / 230.3 MB, free: 7.574 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009769/0.0009768, allocations: 97.97 kB / 281.2 MB, free: 5.328 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.045e-05/2.056e-05, allocations: 4 kB / 337 MB, free: 10.05 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1113/0.1113, allocations: 50.43 MB / 387.5 MB, free: 7.578 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3002/0.4116, allocations: 79.64 MB / 467.1 MB, free: 15.23 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003047/0.4119, allocations: 67.95 kB / 467.2 MB, free: 15.17 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01735/0.4293, allocations: 6.274 MB / 473.4 MB, free: 8.863 MB / 346.7 MB Notification: Performance of FrontEnd: time 5.751e-06/0.4293, allocations: 4 kB / 473.5 MB, free: 8.859 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.831e-05/0.4294, allocations: 4 kB / 473.5 MB, free: 8.855 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.0009679/0.4303, allocations: 0.5826 MB / 474 MB, free: 8.23 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.809e-05/0.4304, allocations: 8.031 kB / 474 MB, free: 8.223 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.305e-05/0.4305, allocations: 43.53 kB / 474.1 MB, free: 8.18 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004026/0.431, allocations: 260.3 kB / 474.3 MB, free: 7.883 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001201/0.4311, allocations: 72.19 kB / 474.4 MB, free: 7.797 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.43e-05/0.4311, allocations: 16.34 kB / 474.4 MB, free: 7.781 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004132/0.4316, allocations: 189.5 kB / 474.6 MB, free: 7.598 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005395/0.4321, allocations: 279.1 kB / 474.9 MB, free: 7.305 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.881e-05/0.4322, allocations: 0 / 474.9 MB, free: 7.305 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.543e-05/0.4322, allocations: 0 / 474.9 MB, free: 7.305 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.678e-05/0.4322, allocations: 8 kB / 474.9 MB, free: 7.297 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002063/0.4343, allocations: 1.313 MB / 476.2 MB, free: 5.898 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003205/0.4346, allocations: 147.5 kB / 476.4 MB, free: 5.746 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001455/0.4348, allocations: 72.86 kB / 476.4 MB, free: 5.672 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.686e-05/0.4348, allocations: 3.984 kB / 476.4 MB, free: 5.668 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002559/0.4351, allocations: 147.7 kB / 476.6 MB, free: 5.5 MB / 346.7 MB Notification: Performance of pre-optimization done (n=21): time 2.064e-06/0.4351, allocations: 0 / 476.6 MB, free: 5.5 MB / 346.7 MB Notification: Performance of matching and sorting (n=21): time 0.0005959/0.4357, allocations: 204.6 kB / 476.8 MB, free: 5.293 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.618e-05/0.4358, allocations: 118.8 kB / 476.9 MB, free: 5.152 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002003/0.436, allocations: 188.5 kB / 477.1 MB, free: 4.965 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.64e-05/0.436, allocations: 25.7 kB / 477.1 MB, free: 4.934 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001259/0.4362, allocations: 212 kB / 477.3 MB, free: 4.719 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.873e-05/0.4362, allocations: 67 kB / 477.4 MB, free: 4.652 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.647e-05/0.4363, allocations: 0 / 477.4 MB, free: 4.652 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001693/0.4364, allocations: 334.8 kB / 477.7 MB, free: 4.316 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001678/0.4366, allocations: 60 kB / 477.8 MB, free: 4.258 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002588/0.4369, allocations: 152.5 kB / 477.9 MB, free: 4.07 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002055/0.4371, allocations: 77.11 kB / 478 MB, free: 3.996 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.127e-06/0.4371, allocations: 0 / 478 MB, free: 3.996 MB / 346.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0008733/0.438, allocations: 280.7 kB / 478.3 MB, free: 3.715 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.792e-05/0.438, allocations: 11.95 kB / 478.3 MB, free: 3.703 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.126e-05/0.4381, allocations: 3.984 kB / 478.3 MB, free: 3.699 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003695/0.4384, allocations: 64.91 kB / 478.3 MB, free: 3.633 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004217/0.4389, allocations: 59.91 kB / 478.4 MB, free: 3.574 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001773/0.4407, allocations: 1.372 MB / 479.8 MB, free: 2.09 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003725/0.4411, allocations: 31.83 kB / 479.8 MB, free: 2.059 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.583e-05/0.4411, allocations: 12 kB / 479.8 MB, free: 2.047 MB / 346.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: switch2.v:VARIABLE(unit = "V" ) "Voltage drop of the two pins (= p.v - n.v)" type: Real 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 () * 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.0002194/0.4413, allocations: 122.3 kB / 479.9 MB, free: 1.922 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.936e-05/0.4414, allocations: 23.72 kB / 479.9 MB, free: 1.898 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.871e-05/0.4415, allocations: 29.95 kB / 480 MB, free: 1.871 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.025e-06/0.4415, allocations: 0 / 480 MB, free: 1.871 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.4415, allocations: 4 kB / 480 MB, free: 1.867 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.509e-06/0.4415, allocations: 0 / 480 MB, free: 1.867 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004679/0.442, allocations: 289.9 kB / 480.3 MB, free: 1.547 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.005e-06/0.442, allocations: 0 / 480.3 MB, free: 1.547 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002977/0.4423, allocations: 39.98 kB / 480.3 MB, free: 1.508 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002673/0.4426, allocations: 56.77 kB / 480.4 MB, free: 1.449 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.51e-05/0.4427, allocations: 3.984 kB / 480.4 MB, free: 1.445 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001478/0.4442, allocations: 1.291 MB / 481.7 MB, free: 32 kB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.566e-06/0.4442, allocations: 0 / 481.7 MB, free: 32 kB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008777/0.4451, allocations: 314.8 kB / 482 MB, free: 15.71 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001722/0.4453, allocations: 120.7 kB / 482.1 MB, free: 15.57 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.313e-05/0.4453, allocations: 4 kB / 482.1 MB, free: 15.57 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002627/0.4456, allocations: 20.05 kB / 482.1 MB, free: 15.55 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001126/0.4457, allocations: 35.88 kB / 482.1 MB, free: 15.51 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.44e-05/0.4458, allocations: 8 kB / 482.1 MB, free: 15.5 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002095/0.446, allocations: 152.5 kB / 482.3 MB, free: 15.36 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.446, allocations: 0 / 482.3 MB, free: 15.36 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006794/0.4467, allocations: 87.69 kB / 482.4 MB, free: 15.27 MB / 362.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) * 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.0002173/0.4469, allocations: 116.9 kB / 482.5 MB, free: 15.15 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0007027/0.4476, allocations: 265.9 kB / 482.8 MB, free: 14.88 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.4477, allocations: 0 / 482.8 MB, free: 14.88 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003747/0.448, allocations: 185.7 kB / 482.9 MB, free: 14.69 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002918/0.4483, allocations: 16.98 kB / 483 MB, free: 14.67 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001838/0.4502, allocations: 493.3 kB / 483.4 MB, free: 14.17 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004599/0.4507, allocations: 0.775 MB / 484.2 MB, free: 13.37 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001746/0.4509, allocations: 22.06 kB / 484.2 MB, free: 13.34 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.263e-05/0.4509, allocations: 19.44 kB / 484.2 MB, free: 13.32 MB / 362.7 MB Notification: Performance of SimCode: time 4.91e-07/0.4509, allocations: 0 / 484.2 MB, free: 13.32 MB / 362.7 MB Notification: Performance of Templates: time 0.00794/0.4589, allocations: 2.356 MB / 486.6 MB, free: 10.99 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches