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.001531/0.001531, allocations: 181.4 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.976/1.976, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001684/0.001683, allocations: 78.72 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.951e-05/2.962e-05, allocations: 8 kB / 321.5 MB, free: 17.83 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09107/0.09112, allocations: 47.58 MB / 369.1 MB, free: 2.188 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4308/0.522, allocations: 78.64 MB / 447.7 MB, free: 14.52 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003889/0.5224, allocations: 73.88 kB / 447.8 MB, free: 14.48 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03819/0.5606, allocations: 6.111 MB / 453.9 MB, free: 9.297 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.773e-06/0.5607, allocations: 0 / 453.9 MB, free: 9.297 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.644e-05/0.5607, allocations: 8 kB / 453.9 MB, free: 9.289 MB / 330.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.001337/0.5621, allocations: 0.5779 MB / 454.5 MB, free: 8.691 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.268e-05/0.5621, allocations: 8.031 kB / 454.5 MB, free: 8.684 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001179/0.5623, allocations: 39.53 kB / 454.6 MB, free: 8.645 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004377/0.5627, allocations: 270.9 kB / 454.8 MB, free: 8.359 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000108/0.5628, allocations: 78.12 kB / 454.9 MB, free: 8.277 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.557e-05/0.5629, allocations: 29.44 kB / 454.9 MB, free: 8.258 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007798/0.5637, allocations: 323.6 kB / 455.2 MB, free: 8.02 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.921e-05/0.5638, allocations: 0 / 455.2 MB, free: 8.02 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.22e-05/0.5638, allocations: 15.59 kB / 455.3 MB, free: 8.012 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.676e-05/0.5638, allocations: 8 kB / 455.3 MB, free: 8.004 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006008/0.5645, allocations: 209.3 kB / 455.5 MB, free: 7.867 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003038/0.5675, allocations: 1.383 MB / 456.8 MB, free: 6.586 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004558/0.568, allocations: 169.4 kB / 457 MB, free: 6.461 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000209/0.5683, allocations: 81.55 kB / 457.1 MB, free: 6.41 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.202e-05/0.5683, allocations: 4 kB / 457.1 MB, free: 6.406 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003733/0.5687, allocations: 156.5 kB / 457.2 MB, free: 6.258 MB / 330.7 MB Notification: Performance of pre-optimization done (n=21): time 3.106e-06/0.5687, allocations: 4 kB / 457.3 MB, free: 6.254 MB / 330.7 MB Notification: Performance of matching and sorting (n=21): time 0.0009229/0.5696, allocations: 218.7 kB / 457.5 MB, free: 6.074 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.285e-05/0.5697, allocations: 106.8 kB / 457.6 MB, free: 5.945 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003657/0.5701, allocations: 230.5 kB / 457.8 MB, free: 5.754 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.024e-05/0.5702, allocations: 32.89 kB / 457.8 MB, free: 5.719 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001836/0.5704, allocations: 255.9 kB / 458.1 MB, free: 5.496 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.214e-05/0.5705, allocations: 68.31 kB / 458.1 MB, free: 5.438 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.148e-05/0.5705, allocations: 7.438 kB / 458.2 MB, free: 5.434 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001353/0.5707, allocations: 324.4 kB / 458.5 MB, free: 5.113 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001974/0.5709, allocations: 68.81 kB / 458.5 MB, free: 5.07 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002852/0.5712, allocations: 157.6 kB / 458.7 MB, free: 4.91 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002346/0.5714, allocations: 80.28 kB / 458.8 MB, free: 4.855 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.439e-06/0.5714, allocations: 4 kB / 458.8 MB, free: 4.852 MB / 330.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0009504/0.5724, allocations: 300.7 kB / 459.1 MB, free: 4.613 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.379e-05/0.5724, allocations: 11.94 kB / 459.1 MB, free: 4.602 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.217e-06/0.5725, allocations: 0 / 459.1 MB, free: 4.602 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003601/0.5728, allocations: 59.91 kB / 459.1 MB, free: 4.551 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004473/0.5733, allocations: 62.91 kB / 459.2 MB, free: 4.492 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001752/0.5751, allocations: 1.409 MB / 460.6 MB, free: 3.004 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000493/0.5756, allocations: 47.17 kB / 460.7 MB, free: 2.961 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.697e-05/0.5756, allocations: 11.5 kB / 460.7 MB, free: 2.953 MB / 330.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 () * 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.0001456/0.5758, allocations: 127.1 kB / 460.8 MB, free: 2.832 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.913e-05/0.5759, allocations: 23.72 kB / 460.8 MB, free: 2.809 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.677e-05/0.576, allocations: 31.64 kB / 460.8 MB, free: 2.785 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.31e-06/0.576, allocations: 7.891 kB / 460.8 MB, free: 2.777 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.316e-06/0.576, allocations: 4 kB / 460.9 MB, free: 2.773 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.741e-06/0.576, allocations: 4 kB / 460.9 MB, free: 2.77 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004942/0.5765, allocations: 341.6 kB / 461.2 MB, free: 2.445 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.536e-06/0.5765, allocations: 0 / 461.2 MB, free: 2.445 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003582/0.5769, allocations: 35.98 kB / 461.2 MB, free: 2.41 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000297/0.5772, allocations: 57.69 kB / 461.3 MB, free: 2.363 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.703e-05/0.5773, allocations: 4 kB / 461.3 MB, free: 2.359 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001542/0.5788, allocations: 1.326 MB / 462.6 MB, free: 0.9609 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/0.5788, allocations: 0 / 462.6 MB, free: 0.9609 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001033/0.5799, allocations: 330.1 kB / 462.9 MB, free: 0.6211 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001734/0.5801, allocations: 120.7 kB / 463.1 MB, free: 496 kB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.488e-05/0.5802, allocations: 8 kB / 463.1 MB, free: 488 kB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003223/0.5805, allocations: 27.94 kB / 463.1 MB, free: 460 kB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000133/0.5806, allocations: 31.94 kB / 463.1 MB, free: 428 kB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.363e-05/0.5807, allocations: 4 kB / 463.1 MB, free: 424 kB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002735/0.581, allocations: 183.2 kB / 463.3 MB, free: 244 kB / 330.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.581, allocations: 4 kB / 463.3 MB, free: 240 kB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006056/0.5816, allocations: 87.78 kB / 463.4 MB, free: 152 kB / 330.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.000214/0.5818, allocations: 111.2 kB / 463.5 MB, free: 32 kB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0008682/0.5827, allocations: 294.5 kB / 463.8 MB, free: 15.73 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.488e-06/0.5827, allocations: 0.5625 kB / 463.8 MB, free: 15.73 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004247/0.5832, allocations: 206.8 kB / 464 MB, free: 15.51 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003845/0.5836, allocations: 29.36 kB / 464 MB, free: 15.48 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002139/0.5857, allocations: 0.5143 MB / 464.5 MB, free: 14.95 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003941/0.5862, allocations: 0.7794 MB / 465.3 MB, free: 14.14 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001214/0.5863, allocations: 23.44 kB / 465.3 MB, free: 14.11 MB / 346.7 MB Notification: Performance of SimCode: time 1.433e-06/0.5863, allocations: 0 / 465.3 MB, free: 14.11 MB / 346.7 MB Notification: Performance of Templates: time 0.01095/0.5973, allocations: 4.486 MB / 469.8 MB, free: 9.625 MB / 346.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) "" Variables in the reference:time,inductor1.i,inductor2.i Variables in the result:constantVoltage1.V,constantVoltage1.i,constantVoltage1.n.i,constantVoltage1.n.v,constantVoltage1.p.i,constantVoltage1.p.v,constantVoltage1.v,constantVoltage2.V,constantVoltage2.i,constantVoltage2.n.i,constantVoltage2.n.v,constantVoltage2.p.i,constantVoltage2.p.v,constantVoltage2.v,ground.p.i,ground.p.v,ground1.p.i,ground1.p.v,ground2.p.i,ground2.p.v,inductor1.L,der(inductor1.i),inductor1.i,inductor1.n.i,inductor1.n.v,inductor1.p.i,inductor1.p.v,inductor1.v,inductor2.L,der(inductor2.i),inductor2.i,inductor2.n.i,inductor2.n.v,inductor2.p.i,inductor2.p.v,inductor2.v,resistor1.LossPower,resistor1.R,resistor1.R_actual,resistor1.T,resistor1.T_heatPort,resistor1.T_ref,resistor1.alpha,resistor1.i,resistor1.n.i,resistor1.n.v,resistor1.p.i,resistor1.p.v,resistor1.v,resistor2.LossPower,resistor2.R,resistor2.R_actual,resistor2.T,resistor2.T_heatPort,resistor2.T_ref,resistor2.alpha,resistor2.i,resistor2.n.i,resistor2.n.v,resistor2.p.i,resistor2.p.v,resistor2.v,sineVoltage.V,sineVoltage.freqHz,sineVoltage.i,sineVoltage.n.i,sineVoltage.n.v,sineVoltage.offset,sineVoltage.p.i,sineVoltage.p.v,sineVoltage.phase,sineVoltage.signalSource.amplitude,sineVoltage.signalSource.freqHz,sineVoltage.signalSource.offset,sineVoltage.signalSource.phase,sineVoltage.signalSource.startTime,sineVoltage.signalSource.y,sineVoltage.startTime,sineVoltage.v,switch1.Goff,switch1.LossPower,switch1.Ron,switch1.T,switch1.T_heatPort,switch1.control.i,switch1.control.v,switch1.i,switch1.level,switch1.n.i,switch1.n.v,switch1.p.i,switch1.p.v,switch1.v,switch2.Goff,switch2.LossPower,switch2.Ron,switch2.T,switch2.T_heatPort,switch2.V0,switch2.Vmax,switch2.control.i,switch2.control.v,switch2.dVdt,switch2.i,switch2.level,switch2.n.i,switch2.n.v,switch2.off,switch2.p.i,switch2.p.v,switch2.v,time