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.002139/0.002139, allocations: 179.4 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.124/2.124, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001144/0.001144, allocations: 84.45 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.013e-05/2.023e-05, allocations: 4 kB / 314.8 MB, free: 9.145 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.342/0.3421, allocations: 47.56 MB / 362.3 MB, free: 45.81 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1327/0.4748, allocations: 77.99 MB / 440.3 MB, free: 8.293 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002629/0.4751, allocations: 67.03 kB / 440.4 MB, free: 8.23 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.02608/0.5012, allocations: 6.053 MB / 446.4 MB, free: 2.203 MB / 331.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.5013, allocations: 0 / 446.4 MB, free: 2.203 MB / 331.1 MB Notification: Performance of Transformations before backend: time 2.114e-05/0.5013, allocations: 4 kB / 446.4 MB, free: 2.199 MB / 331.1 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.001311/0.5026, allocations: 0.578 MB / 447 MB, free: 1.582 MB / 331.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.899e-05/0.5027, allocations: 15.97 kB / 447 MB, free: 1.566 MB / 331.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001197/0.5028, allocations: 43.53 kB / 447.1 MB, free: 1.523 MB / 331.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004416/0.5033, allocations: 255.8 kB / 447.3 MB, free: 1.23 MB / 331.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001069/0.5034, allocations: 72.19 kB / 447.4 MB, free: 1.148 MB / 331.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.575e-05/0.5035, allocations: 24 kB / 447.4 MB, free: 1.125 MB / 331.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005712/0.5041, allocations: 181.5 kB / 447.6 MB, free: 0.9453 MB / 331.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007053/0.5048, allocations: 271.4 kB / 447.9 MB, free: 0.6641 MB / 331.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.164e-05/0.5048, allocations: 3.938 kB / 447.9 MB, free: 0.6641 MB / 331.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.155e-05/0.5049, allocations: 7.875 kB / 447.9 MB, free: 0.6562 MB / 331.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.003e-05/0.5049, allocations: 11.98 kB / 447.9 MB, free: 0.6445 MB / 331.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002952/0.5079, allocations: 1.318 MB / 449.2 MB, free: 15.24 MB / 347.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004153/0.5083, allocations: 147 kB / 449.4 MB, free: 15.09 MB / 347.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001988/0.5086, allocations: 76.81 kB / 449.4 MB, free: 15.01 MB / 347.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.696e-05/0.5086, allocations: 3.984 kB / 449.4 MB, free: 15 MB / 347.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003547/0.509, allocations: 151.4 kB / 449.6 MB, free: 14.83 MB / 347.1 MB Notification: Performance of pre-optimization done (n=21): time 2.464e-06/0.509, allocations: 0 / 449.6 MB, free: 14.83 MB / 347.1 MB Notification: Performance of matching and sorting (n=21): time 0.0008383/0.5098, allocations: 200.6 kB / 449.8 MB, free: 14.63 MB / 347.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.128e-05/0.5099, allocations: 110.8 kB / 449.9 MB, free: 14.5 MB / 347.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002871/0.5102, allocations: 196.5 kB / 450.1 MB, free: 14.3 MB / 347.1 MB Notification: Performance of collectPreVariables (initialization): time 3.208e-05/0.5103, allocations: 25.7 kB / 450.1 MB, free: 14.27 MB / 347.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001996/0.5105, allocations: 266.5 kB / 450.4 MB, free: 14 MB / 347.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.116e-05/0.5106, allocations: 67 kB / 450.4 MB, free: 13.94 MB / 347.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.617e-05/0.5106, allocations: 2.062 kB / 450.4 MB, free: 13.94 MB / 347.1 MB Notification: Performance of setup shared object (initialization): time 0.0001568/0.5108, allocations: 322.8 kB / 450.7 MB, free: 13.61 MB / 347.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001871/0.511, allocations: 64 kB / 450.8 MB, free: 13.55 MB / 347.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002677/0.5113, allocations: 146.5 kB / 451 MB, free: 13.37 MB / 347.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002196/0.5115, allocations: 70.11 kB / 451 MB, free: 13.3 MB / 347.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.195e-06/0.5115, allocations: 7.953 kB / 451 MB, free: 13.29 MB / 347.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.000912/0.5124, allocations: 272.8 kB / 451.3 MB, free: 13.02 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.274e-05/0.5125, allocations: 8 kB / 451.3 MB, free: 13.01 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.123e-05/0.5125, allocations: 4 kB / 451.3 MB, free: 13.01 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000351/0.5129, allocations: 56.97 kB / 451.4 MB, free: 12.95 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004402/0.5133, allocations: 59.91 kB / 451.4 MB, free: 12.89 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001688/0.515, allocations: 1.366 MB / 452.8 MB, free: 11.41 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004269/0.5155, allocations: 39.7 kB / 452.8 MB, free: 11.37 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.937e-05/0.5155, allocations: 19.89 kB / 452.8 MB, free: 11.35 MB / 347.1 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.0001896/0.5157, allocations: 121.4 kB / 453 MB, free: 11.23 MB / 347.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.771e-05/0.5158, allocations: 23.72 kB / 453 MB, free: 11.21 MB / 347.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.907e-05/0.5159, allocations: 25.95 kB / 453 MB, free: 11.19 MB / 347.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.531e-06/0.5159, allocations: 4 kB / 453 MB, free: 11.18 MB / 347.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.367e-06/0.5159, allocations: 0 / 453 MB, free: 11.18 MB / 347.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.622e-06/0.5159, allocations: 3.984 kB / 453 MB, free: 11.18 MB / 347.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004606/0.5164, allocations: 282 kB / 453.3 MB, free: 10.87 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.487e-06/0.5164, allocations: 2.344 kB / 453.3 MB, free: 10.87 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003555/0.5168, allocations: 47.91 kB / 453.3 MB, free: 10.82 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000286/0.5171, allocations: 48.83 kB / 453.4 MB, free: 10.77 MB / 347.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.493e-05/0.5171, allocations: 5.422 kB / 453.4 MB, free: 10.77 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001488/0.5186, allocations: 1.276 MB / 454.7 MB, free: 9.371 MB / 347.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.5187, allocations: 160 / 454.7 MB, free: 9.371 MB / 347.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009333/0.5196, allocations: 323.8 kB / 455 MB, free: 9.035 MB / 347.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001591/0.5198, allocations: 112.8 kB / 455.1 MB, free: 8.906 MB / 347.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.993e-05/0.5198, allocations: 0 / 455.1 MB, free: 8.906 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003059/0.5202, allocations: 28.03 kB / 455.1 MB, free: 8.879 MB / 347.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001236/0.5203, allocations: 27.95 kB / 455.2 MB, free: 8.852 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.203e-05/0.5203, allocations: 4 kB / 455.2 MB, free: 8.848 MB / 347.1 MB Notification: Performance of sorting global known variables: time 0.0002313/0.5206, allocations: 148.5 kB / 455.3 MB, free: 8.699 MB / 347.1 MB Notification: Performance of sort global known variables: time 6.41e-07/0.5206, allocations: 0 / 455.3 MB, free: 8.699 MB / 347.1 MB Notification: Performance of remove unused functions: time 0.0005993/0.5212, allocations: 83.75 kB / 455.4 MB, free: 8.617 MB / 347.1 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.0001947/0.5214, allocations: 123.7 kB / 455.5 MB, free: 8.488 MB / 347.1 MB Notification: Performance of simCode: created initialization part: time 0.0007053/0.5221, allocations: 266.3 kB / 455.8 MB, free: 8.219 MB / 347.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.5221, allocations: 4 kB / 455.8 MB, free: 8.215 MB / 347.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003732/0.5225, allocations: 173.7 kB / 455.9 MB, free: 8.035 MB / 347.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002976/0.5228, allocations: 30.33 kB / 456 MB, free: 8.008 MB / 347.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002024/0.5249, allocations: 0.5146 MB / 456.5 MB, free: 7.461 MB / 347.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004461/0.5253, allocations: 0.775 MB / 457.3 MB, free: 6.66 MB / 347.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001035/0.5255, allocations: 23.42 kB / 457.3 MB, free: 6.637 MB / 347.1 MB Notification: Performance of SimCode: time 8.92e-07/0.5255, allocations: 3.938 kB / 457.3 MB, free: 6.633 MB / 347.1 MB Notification: Performance of Templates: time 0.01032/0.5358, allocations: 4.281 MB / 461.6 MB, free: 2.383 MB / 347.1 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:_D_whenCondition1,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.useHeatPort,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.useHeatPort,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.off,switch1.p.i,switch1.p.v,switch1.s,switch1.useHeatPort,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.quenched,switch2.tSwitch,switch2.useHeatPort,switch2.v,time