Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001287/0.001287, allocations: 202.1 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.402/1.402, allocations: 225.6 MB / 234.8 MB, free: 3.285 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008564/0.0008566, allocations: 95.08 kB / 286.7 MB, free: 5.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.714e-05/1.724e-05, allocations: 4 kB / 343.7 MB, free: 8.316 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09977/0.0998, allocations: 51.47 MB / 395.2 MB, free: 4.805 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.323/0.4229, allocations: 80.47 MB / 475.6 MB, free: 11.79 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001888/0.4231, allocations: 70.11 kB / 475.7 MB, free: 11.76 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01414/0.4373, allocations: 6.363 MB / 482.1 MB, free: 7.398 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.4373, allocations: 416 / 482.1 MB, free: 7.398 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.479e-05/0.4373, allocations: 5.781 kB / 482.1 MB, free: 7.395 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.0006741/0.438, allocations: 0.5813 MB / 482.6 MB, free: 6.797 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.804e-05/0.438, allocations: 12.03 kB / 482.7 MB, free: 6.785 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00018/0.4382, allocations: 56.38 kB / 482.7 MB, free: 6.73 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002445/0.4385, allocations: 267.9 kB / 483 MB, free: 6.453 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.442e-05/0.4385, allocations: 64.19 kB / 483 MB, free: 6.375 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.858e-05/0.4386, allocations: 23.98 kB / 483.1 MB, free: 6.352 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002998/0.4389, allocations: 179.3 kB / 483.2 MB, free: 6.246 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003741/0.4393, allocations: 279 kB / 483.5 MB, free: 6.02 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.176e-05/0.4393, allocations: 4 kB / 483.5 MB, free: 6.016 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.767e-05/0.4393, allocations: 0 / 483.5 MB, free: 6.016 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.756e-06/0.4393, allocations: 8 kB / 483.5 MB, free: 6.008 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001396/0.4407, allocations: 1.314 MB / 484.8 MB, free: 4.793 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002178/0.441, allocations: 147.6 kB / 485 MB, free: 4.691 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.412e-05/0.4411, allocations: 83.73 kB / 485.1 MB, free: 4.633 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.473e-05/0.4411, allocations: 4 kB / 485.1 MB, free: 4.629 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001972/0.4413, allocations: 141.8 kB / 485.2 MB, free: 4.496 MB / 346.7 MB Notification: Performance of pre-optimization done (n=21): time 1.313e-06/0.4413, allocations: 2.156 kB / 485.2 MB, free: 4.496 MB / 346.7 MB Notification: Performance of matching and sorting (n=21): time 0.000464/0.4418, allocations: 205.3 kB / 485.4 MB, free: 4.324 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.292e-05/0.4419, allocations: 110.8 kB / 485.5 MB, free: 4.191 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001308/0.442, allocations: 192.4 kB / 485.7 MB, free: 4.027 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.72e-05/0.442, allocations: 25.7 kB / 485.7 MB, free: 3.996 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.266e-05/0.4421, allocations: 205.5 kB / 485.9 MB, free: 3.816 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.585e-05/0.4421, allocations: 69.56 kB / 486 MB, free: 3.758 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.145e-05/0.4422, allocations: 0 / 486 MB, free: 3.758 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.394e-05/0.4422, allocations: 340.6 kB / 486.3 MB, free: 3.426 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.548e-05/0.4423, allocations: 60 kB / 486.4 MB, free: 3.391 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001131/0.4424, allocations: 147.9 kB / 486.5 MB, free: 3.242 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000103/0.4425, allocations: 84.75 kB / 486.6 MB, free: 3.184 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.4425, allocations: 0 / 486.6 MB, free: 3.184 MB / 346.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004374/0.443, allocations: 291.1 kB / 486.9 MB, free: 2.945 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.324e-05/0.443, allocations: 4 kB / 486.9 MB, free: 2.941 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.432e-06/0.443, allocations: 4 kB / 486.9 MB, free: 2.938 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002107/0.4432, allocations: 59.12 kB / 487 MB, free: 2.887 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002163/0.4435, allocations: 59.84 kB / 487 MB, free: 2.828 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000825/0.4443, allocations: 1.36 MB / 488.4 MB, free: 1.418 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002048/0.4445, allocations: 47.78 kB / 488.4 MB, free: 1.371 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.888e-05/0.4445, allocations: 11.69 kB / 488.4 MB, free: 1.363 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.0001146/0.4447, allocations: 124.4 kB / 488.6 MB, free: 1.238 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.934e-05/0.4447, allocations: 20.75 kB / 488.6 MB, free: 1.219 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.357e-05/0.4448, allocations: 24.2 kB / 488.6 MB, free: 1.203 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.484e-06/0.4448, allocations: 4 kB / 488.6 MB, free: 1.199 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.473e-06/0.4448, allocations: 0 / 488.6 MB, free: 1.199 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.035e-06/0.4448, allocations: 4 kB / 488.6 MB, free: 1.195 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001968/0.445, allocations: 294.5 kB / 488.9 MB, free: 0.918 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.445, allocations: 0 / 488.9 MB, free: 0.918 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001732/0.4452, allocations: 39.42 kB / 488.9 MB, free: 0.8828 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000145/0.4453, allocations: 54.56 kB / 489 MB, free: 0.8359 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.459e-05/0.4453, allocations: 3.984 kB / 489 MB, free: 0.832 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007995/0.4461, allocations: 1.284 MB / 490.3 MB, free: 15.49 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/0.4462, allocations: 0 / 490.3 MB, free: 15.49 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005323/0.4467, allocations: 314 kB / 490.6 MB, free: 15.24 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.976e-05/0.4468, allocations: 116.5 kB / 490.7 MB, free: 15.12 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.272e-05/0.4469, allocations: 0 / 490.7 MB, free: 15.12 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001648/0.447, allocations: 19.98 kB / 490.7 MB, free: 15.1 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.911e-05/0.4471, allocations: 35.31 kB / 490.8 MB, free: 15.07 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.332e-05/0.4471, allocations: 4 kB / 490.8 MB, free: 15.06 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001106/0.4473, allocations: 150.4 kB / 490.9 MB, free: 14.94 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4473, allocations: 7.938 kB / 490.9 MB, free: 14.93 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000353/0.4476, allocations: 87.69 kB / 491 MB, free: 14.85 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.000161/0.4478, allocations: 114.4 kB / 491.1 MB, free: 14.73 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004275/0.4482, allocations: 265.7 kB / 491.4 MB, free: 14.51 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.786e-06/0.4482, allocations: 3.812 kB / 491.4 MB, free: 14.51 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000237/0.4485, allocations: 184 kB / 491.6 MB, free: 14.35 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001876/0.4487, allocations: 28.59 kB / 491.6 MB, free: 14.33 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001123/0.4498, allocations: 487.9 kB / 492.1 MB, free: 13.88 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000326/0.4502, allocations: 0.775 MB / 492.8 MB, free: 13.07 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001049/0.4503, allocations: 30.05 kB / 492.9 MB, free: 13.04 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.447e-05/0.4503, allocations: 19.44 kB / 492.9 MB, free: 13.02 MB / 362.7 MB Notification: Performance of SimCode: time 3.41e-07/0.4503, allocations: 0 / 492.9 MB, free: 13.02 MB / 362.7 MB Notification: Performance of Templates: time 0.005305/0.4556, allocations: 2.355 MB / 495.2 MB, free: 10.73 MB / 362.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