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.002229/0.002229, allocations: 186.1 kB / 16.41 MB, free: 5.723 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.953/1.953, allocations: 205.4 MB / 222.5 MB, free: 9.117 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.001146/0.001145, allocations: 89.67 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003867/0.0003866, allocations: 8 kB / 327 MB, free: 208 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3362/0.3366, allocations: 47.57 MB / 374.5 MB, free: 45.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.128/0.4647, allocations: 78.75 MB / 453.3 MB, free: 2.023 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002906/0.465, allocations: 75.97 kB / 453.4 MB, free: 1.949 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02655/0.4916, allocations: 6.108 MB / 459.5 MB, free: 11.81 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.364e-06/0.4916, allocations: 0 / 459.5 MB, free: 11.81 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.333e-05/0.4917, allocations: 4 kB / 459.5 MB, free: 11.81 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.001407/0.4931, allocations: 0.6053 MB / 460.1 MB, free: 11.15 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.798e-05/0.4932, allocations: 8.031 kB / 460.1 MB, free: 11.14 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001233/0.4933, allocations: 47.53 kB / 460.1 MB, free: 11.1 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004318/0.4937, allocations: 267.8 kB / 460.4 MB, free: 10.79 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001037/0.4939, allocations: 80.06 kB / 460.5 MB, free: 10.7 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.574e-05/0.4939, allocations: 28 kB / 460.5 MB, free: 10.68 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000869/0.4948, allocations: 330.8 kB / 460.8 MB, free: 10.34 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.897e-05/0.4949, allocations: 7.938 kB / 460.8 MB, free: 10.33 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.61e-05/0.4949, allocations: 20 kB / 460.8 MB, free: 10.31 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.383e-05/0.495, allocations: 8 kB / 460.8 MB, free: 10.3 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007082/0.4957, allocations: 218.5 kB / 461.1 MB, free: 10.09 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002922/0.4986, allocations: 1.387 MB / 462.4 MB, free: 8.598 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005107/0.4992, allocations: 170.5 kB / 462.6 MB, free: 8.422 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.84e-05/0.4992, allocations: 4 kB / 462.6 MB, free: 8.418 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004797/0.4997, allocations: 163.6 kB / 462.8 MB, free: 8.238 MB / 346.7 MB Notification: Performance of pre-optimization done (n=21): time 3.075e-06/0.4997, allocations: 4 kB / 462.8 MB, free: 8.234 MB / 346.7 MB Notification: Performance of matching and sorting (n=21): time 0.001826/0.5016, allocations: 413.4 kB / 463.2 MB, free: 7.805 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.15e-05/0.5017, allocations: 110.8 kB / 463.3 MB, free: 7.672 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000369/0.5021, allocations: 233.8 kB / 463.5 MB, free: 7.441 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.832e-05/0.5021, allocations: 33.7 kB / 463.6 MB, free: 7.402 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001799/0.5023, allocations: 250.4 kB / 463.8 MB, free: 7.156 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.977e-05/0.5024, allocations: 74.98 kB / 463.9 MB, free: 7.082 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.542e-05/0.5024, allocations: 8 kB / 463.9 MB, free: 7.074 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001419/0.5026, allocations: 327.1 kB / 464.2 MB, free: 6.746 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002653/0.5029, allocations: 75.91 kB / 464.3 MB, free: 6.672 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000362/0.5033, allocations: 170.6 kB / 464.4 MB, free: 6.465 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003244/0.5036, allocations: 93.94 kB / 464.5 MB, free: 6.375 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.338e-06/0.5036, allocations: 3.938 kB / 464.5 MB, free: 6.371 MB / 346.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001087/0.5047, allocations: 308.8 kB / 464.8 MB, free: 6.062 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.449e-05/0.5047, allocations: 8 kB / 464.8 MB, free: 6.055 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.007e-06/0.5048, allocations: 0 / 464.8 MB, free: 6.055 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003819/0.5052, allocations: 60.97 kB / 464.9 MB, free: 5.992 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004459/0.5056, allocations: 63.91 kB / 465 MB, free: 5.93 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001812/0.5074, allocations: 1.412 MB / 466.4 MB, free: 4.379 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004712/0.508, allocations: 43.67 kB / 466.4 MB, free: 4.336 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.496e-05/0.508, allocations: 12.19 kB / 466.4 MB, free: 4.324 MB / 346.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 () * Number of clocked 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.0002541/0.5083, allocations: 158.6 kB / 466.6 MB, free: 4.16 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.035e-05/0.5083, allocations: 27.62 kB / 466.6 MB, free: 4.133 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.766e-05/0.5084, allocations: 30.17 kB / 466.6 MB, free: 4.102 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.38e-06/0.5084, allocations: 4 kB / 466.7 MB, free: 4.098 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.5084, allocations: 0 / 466.7 MB, free: 4.098 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.843e-06/0.5085, allocations: 3.953 kB / 466.7 MB, free: 4.094 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004898/0.509, allocations: 341.3 kB / 467 MB, free: 3.711 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.467e-06/0.509, allocations: 0 / 467 MB, free: 3.711 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003636/0.5094, allocations: 35.98 kB / 467 MB, free: 3.676 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003094/0.5097, allocations: 56.81 kB / 467.1 MB, free: 3.617 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.557e-05/0.5097, allocations: 4 kB / 467.1 MB, free: 3.613 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001747/0.5115, allocations: 1.327 MB / 468.4 MB, free: 2.152 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.5115, allocations: 256 / 468.4 MB, free: 2.152 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001241/0.5128, allocations: 367.8 kB / 468.8 MB, free: 1.773 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001737/0.513, allocations: 120.8 kB / 468.9 MB, free: 1.637 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.264e-05/0.513, allocations: 4 kB / 468.9 MB, free: 1.633 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003114/0.5134, allocations: 23.98 kB / 468.9 MB, free: 1.609 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001296/0.5135, allocations: 31.89 kB / 468.9 MB, free: 1.578 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.144e-05/0.5135, allocations: 8 kB / 469 MB, free: 1.57 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002632/0.5138, allocations: 182 kB / 469.1 MB, free: 1.395 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.5138, allocations: 4 kB / 469.1 MB, free: 1.391 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005575/0.5144, allocations: 87.83 kB / 469.2 MB, free: 1.305 MB / 346.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 (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.0001972/0.5146, allocations: 119.1 kB / 469.3 MB, free: 1.18 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.000903/0.5155, allocations: 312.4 kB / 469.6 MB, free: 0.8633 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.5155, allocations: 4.062 kB / 469.6 MB, free: 0.8594 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004544/0.516, allocations: 206.5 kB / 469.8 MB, free: 0.6445 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003298/0.5163, allocations: 33.03 kB / 469.9 MB, free: 0.6172 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002459/0.5188, allocations: 0.8557 MB / 470.7 MB, free: 15.73 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004005/0.5193, allocations: 0.7794 MB / 471.5 MB, free: 14.93 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001155/0.5194, allocations: 19.44 kB / 471.5 MB, free: 14.91 MB / 362.7 MB Notification: Performance of SimCode: time 1.543e-06/0.5194, allocations: 4 kB / 471.5 MB, free: 14.9 MB / 362.7 MB Notification: Performance of Templates: time 0.009967/0.5294, allocations: 4.489 MB / 476 MB, free: 10.42 MB / 362.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