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.003575/0.003583, allocations: 188.9 kB / 16.4 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.68/3.68, allocations: 205.4 MB / 222.5 MB, free: 9.141 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.001722/0.001722, allocations: 97.42 kB / 270.9 MB, free: 8.387 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006517/0.000652, allocations: 8 kB / 327 MB, free: 236 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5573/0.558, allocations: 47.57 MB / 374.5 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.006249/0.5643, allocations: 2.496 MB / 377 MB, free: 43.51 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002934/0.5673, allocations: 0.7756 MB / 377.8 MB, free: 42.88 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005015/0.5679, allocations: 5.531 kB / 377.8 MB, free: 42.88 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001858/0.5681, allocations: 41.27 kB / 377.8 MB, free: 42.84 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006265/0.5688, allocations: 118.2 kB / 378 MB, free: 42.74 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007039/0.5695, allocations: 89.47 kB / 378 MB, free: 42.67 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001053/0.5706, allocations: 285.2 kB / 378.3 MB, free: 42.49 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004374/0.571, allocations: 115.3 kB / 378.4 MB, free: 42.43 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005254/0.5716, allocations: 125.9 kB / 378.6 MB, free: 42.36 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004402/0.5721, allocations: 152.5 kB / 378.7 MB, free: 42.26 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.812e-05/0.5722, allocations: 18.81 kB / 378.7 MB, free: 42.26 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001318/0.5723, allocations: 18.72 kB / 378.7 MB, free: 42.26 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001112/0.5725, allocations: 58.23 kB / 378.8 MB, free: 42.21 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001768/0.5727, allocations: 95.78 kB / 378.9 MB, free: 42.15 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006605/0.5734, allocations: 303.8 kB / 379.2 MB, free: 41.92 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.5734, allocations: 1.125 kB / 379.2 MB, free: 41.92 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.595e-06/0.5734, allocations: 0 / 379.2 MB, free: 41.92 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.149e-05/0.5734, allocations: 0 / 379.2 MB, free: 41.92 MB / 298.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.002014/0.5755, allocations: 0.5924 MB / 379.8 MB, free: 41.41 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.935e-05/0.5756, allocations: 13.72 kB / 379.8 MB, free: 41.4 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002338/0.5758, allocations: 39.5 kB / 379.8 MB, free: 41.38 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007148/0.5766, allocations: 276.2 kB / 380.1 MB, free: 41.1 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001522/0.5767, allocations: 83.56 kB / 380.2 MB, free: 41.02 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000127/0.5769, allocations: 33.02 kB / 380.2 MB, free: 41.01 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001362/0.5783, allocations: 327.4 kB / 380.5 MB, free: 40.8 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.796e-05/0.5783, allocations: 0 / 380.5 MB, free: 40.8 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.448e-05/0.5784, allocations: 16.5 kB / 380.6 MB, free: 40.79 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.07e-05/0.5785, allocations: 7.844 kB / 380.6 MB, free: 40.79 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001086/0.5796, allocations: 227.4 kB / 380.8 MB, free: 40.68 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004563/0.5842, allocations: 1.388 MB / 382.2 MB, free: 39.47 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008003/0.5851, allocations: 183.6 kB / 382.4 MB, free: 39.36 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.036e-05/0.5851, allocations: 1.812 kB / 382.4 MB, free: 39.36 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007219/0.5859, allocations: 151.6 kB / 382.5 MB, free: 39.24 MB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 4.117e-06/0.5859, allocations: 0 / 382.5 MB, free: 39.24 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.002585/0.5885, allocations: 422.6 kB / 382.9 MB, free: 38.97 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.633e-05/0.5886, allocations: 109.1 kB / 383 MB, free: 38.84 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000644/0.5893, allocations: 265.1 kB / 383.3 MB, free: 38.65 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.443e-05/0.5894, allocations: 30.73 kB / 383.3 MB, free: 38.62 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000202/0.5896, allocations: 260.7 kB / 383.6 MB, free: 38.38 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000124/0.5898, allocations: 67.88 kB / 383.6 MB, free: 38.32 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.612e-05/0.5898, allocations: 10.19 kB / 383.6 MB, free: 38.31 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.836e-05/0.5899, allocations: 325.4 kB / 384 MB, free: 37.98 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004638/0.5904, allocations: 82.64 kB / 384 MB, free: 37.95 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005419/0.591, allocations: 178.6 kB / 384.2 MB, free: 37.78 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004958/0.5915, allocations: 100.1 kB / 384.3 MB, free: 37.73 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.325e-06/0.5916, allocations: 0 / 384.3 MB, free: 37.73 MB / 298.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001857/0.5934, allocations: 324.6 kB / 384.6 MB, free: 37.56 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.841e-05/0.5935, allocations: 6.656 kB / 384.6 MB, free: 37.56 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.827e-05/0.5936, allocations: 2.969 kB / 384.6 MB, free: 37.56 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005693/0.5942, allocations: 65.25 kB / 384.7 MB, free: 37.52 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006929/0.5949, allocations: 61.72 kB / 384.8 MB, free: 37.51 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002391/0.5973, allocations: 1.408 MB / 386.2 MB, free: 36.07 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008048/0.5982, allocations: 49.64 kB / 386.2 MB, free: 36.04 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.725e-05/0.5983, allocations: 10.88 kB / 386.2 MB, free: 36.04 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (38): * Single equations (assignments): 37 * 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.0003586/0.5986, allocations: 150 kB / 386.4 MB, free: 35.9 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000131/0.5988, allocations: 32.64 kB / 386.4 MB, free: 35.88 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001026/0.5989, allocations: 29.25 kB / 386.4 MB, free: 35.86 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.758e-06/0.5989, allocations: 2.25 kB / 386.4 MB, free: 35.86 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.011e-05/0.599, allocations: 3.984 kB / 386.4 MB, free: 35.86 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.138e-06/0.599, allocations: 3.953 kB / 386.5 MB, free: 35.85 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000759/0.5998, allocations: 344.4 kB / 386.8 MB, free: 35.54 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.889e-06/0.5998, allocations: 0.9688 kB / 386.8 MB, free: 35.54 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005331/0.6003, allocations: 45 kB / 386.8 MB, free: 35.52 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004653/0.6008, allocations: 54.03 kB / 386.9 MB, free: 35.49 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.899e-05/0.6009, allocations: 2.375 kB / 386.9 MB, free: 35.49 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002173/0.6031, allocations: 1.335 MB / 388.2 MB, free: 34.11 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.751e-06/0.6032, allocations: 1.531 kB / 388.2 MB, free: 34.11 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001893/0.6051, allocations: 370.7 kB / 388.6 MB, free: 33.89 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000346/0.6055, allocations: 117.3 kB / 388.7 MB, free: 33.76 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000115/0.6056, allocations: 10.3 kB / 388.7 MB, free: 33.75 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004789/0.6061, allocations: 20.05 kB / 388.7 MB, free: 33.75 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002133/0.6064, allocations: 30.84 kB / 388.8 MB, free: 33.73 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.32e-05/0.6064, allocations: 11.86 kB / 388.8 MB, free: 33.72 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0004188/0.6069, allocations: 178.8 kB / 388.9 MB, free: 33.6 MB / 298.7 MB Notification: Performance of sort global known variables: time 6.61e-07/0.6069, allocations: 4 kB / 388.9 MB, free: 33.59 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001278/0.6082, allocations: 84.75 kB / 389 MB, free: 33.58 MB / 298.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.0002597/0.6085, allocations: 102.2 kB / 389.1 MB, free: 33.49 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001454/0.61, allocations: 325.1 kB / 389.4 MB, free: 33.18 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 6.652e-06/0.61, allocations: 4.062 kB / 389.5 MB, free: 33.18 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006482/0.6107, allocations: 194.6 kB / 389.6 MB, free: 32.97 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006092/0.6113, allocations: 24.55 kB / 389.7 MB, free: 32.95 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003545/0.6149, allocations: 0.8644 MB / 390.5 MB, free: 32.05 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003605/0.6153, allocations: 0.7755 MB / 391.3 MB, free: 31.25 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001809/0.6155, allocations: 23.44 kB / 391.3 MB, free: 31.23 MB / 298.7 MB Notification: Performance of SimCode: time 1.403e-06/0.6155, allocations: 7.938 kB / 391.3 MB, free: 31.22 MB / 298.7 MB Notification: Performance of Templates: time 0.01447/0.63, allocations: 4.467 MB / 395.8 MB, free: 26.77 MB / 298.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