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.001669/0.001669, allocations: 179.4 kB / 16.41 MB, free: 5.707 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.502/1.502, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.0007712/0.0007711, allocations: 94.58 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003402/0.0003405, allocations: 8 kB / 327 MB, free: 196 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2683/0.2687, allocations: 47.57 MB / 374.6 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.003257/0.272, allocations: 2.637 MB / 377.2 MB, free: 43.35 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001304/0.2734, allocations: 0.7548 MB / 377.9 MB, free: 42.73 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001678/0.2736, allocations: 5.312 kB / 378 MB, free: 42.73 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001381/0.2737, allocations: 46.08 kB / 378 MB, free: 42.69 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001515/0.2739, allocations: 82.47 kB / 378.1 MB, free: 42.62 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003273/0.2742, allocations: 85.97 kB / 378.2 MB, free: 42.55 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003551/0.2746, allocations: 388.5 kB / 378.5 MB, free: 42.32 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001995/0.2748, allocations: 106.9 kB / 378.6 MB, free: 42.26 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000176/0.275, allocations: 130.6 kB / 378.8 MB, free: 42.19 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001712/0.2752, allocations: 149.4 kB / 378.9 MB, free: 42.09 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.091e-05/0.2752, allocations: 19.06 kB / 378.9 MB, free: 42.09 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.86e-05/0.2753, allocations: 18.03 kB / 379 MB, free: 42.09 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.959e-05/0.2753, allocations: 58.2 kB / 379 MB, free: 42.05 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.397e-05/0.2754, allocations: 97.31 kB / 379.1 MB, free: 41.98 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002284/0.2757, allocations: 308.3 kB / 379.4 MB, free: 41.75 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.2757, allocations: 0.9375 kB / 379.4 MB, free: 41.75 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2757, allocations: 0 / 379.4 MB, free: 41.75 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.062e-06/0.2757, allocations: 0 / 379.4 MB, free: 41.75 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.0008971/0.2766, allocations: 0.5977 MB / 380 MB, free: 41.23 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.988e-05/0.2766, allocations: 12.81 kB / 380 MB, free: 41.23 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.384e-05/0.2767, allocations: 44.67 kB / 380.1 MB, free: 41.2 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002906/0.277, allocations: 268.6 kB / 380.3 MB, free: 40.93 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.358e-05/0.2771, allocations: 78.55 kB / 380.4 MB, free: 40.86 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.787e-05/0.2772, allocations: 40.52 kB / 380.4 MB, free: 40.84 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005475/0.2777, allocations: 330.2 kB / 380.8 MB, free: 40.62 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.181e-05/0.2778, allocations: 1.188 kB / 380.8 MB, free: 40.62 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.19e-05/0.2778, allocations: 15.56 kB / 380.8 MB, free: 40.61 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.056e-05/0.2778, allocations: 7.562 kB / 380.8 MB, free: 40.61 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004054/0.2782, allocations: 224 kB / 381 MB, free: 40.5 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0017/0.2799, allocations: 1.388 MB / 382.4 MB, free: 39.3 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003136/0.2803, allocations: 175.9 kB / 382.6 MB, free: 39.2 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001634/0.2804, allocations: 93.83 kB / 382.7 MB, free: 39.14 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.274e-05/0.2805, allocations: 1.406 kB / 382.7 MB, free: 39.14 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003268/0.2808, allocations: 155.7 kB / 382.8 MB, free: 39.02 MB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 2.605e-06/0.2808, allocations: 0 / 382.8 MB, free: 39.02 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.001196/0.282, allocations: 427.9 kB / 383.2 MB, free: 38.75 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.672e-05/0.2821, allocations: 105.2 kB / 383.3 MB, free: 38.62 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002592/0.2823, allocations: 264.8 kB / 383.6 MB, free: 38.44 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.345e-05/0.2824, allocations: 31.05 kB / 383.6 MB, free: 38.4 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.556e-05/0.2825, allocations: 205.7 kB / 383.8 MB, free: 38.21 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.4e-05/0.2825, allocations: 73.19 kB / 383.9 MB, free: 38.15 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.266e-05/0.2825, allocations: 4.938 kB / 383.9 MB, free: 38.15 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.412e-05/0.2826, allocations: 345.5 kB / 384.2 MB, free: 37.81 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001677/0.2828, allocations: 73.12 kB / 384.3 MB, free: 37.78 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002142/0.283, allocations: 191.6 kB / 384.5 MB, free: 37.6 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001914/0.2832, allocations: 89 kB / 384.6 MB, free: 37.56 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.866e-06/0.2832, allocations: 0 / 384.6 MB, free: 37.56 MB / 298.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006681/0.2839, allocations: 344 kB / 384.9 MB, free: 37.38 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.15e-05/0.2839, allocations: 6.25 kB / 384.9 MB, free: 37.38 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.909e-06/0.2839, allocations: 3.594 kB / 384.9 MB, free: 37.38 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002933/0.2842, allocations: 65.66 kB / 385 MB, free: 37.34 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002733/0.2845, allocations: 61.19 kB / 385 MB, free: 37.33 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001053/0.2856, allocations: 1.41 MB / 386.5 MB, free: 35.88 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003007/0.2859, allocations: 46.14 kB / 386.5 MB, free: 35.86 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.004e-05/0.2859, allocations: 18.8 kB / 386.5 MB, free: 35.85 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.0001516/0.2861, allocations: 153.5 kB / 386.7 MB, free: 35.71 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.123e-05/0.2862, allocations: 25.53 kB / 386.7 MB, free: 35.7 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.297e-05/0.2862, allocations: 28.61 kB / 386.7 MB, free: 35.68 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.167e-06/0.2862, allocations: 5.797 kB / 386.7 MB, free: 35.67 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.2862, allocations: 1.062 kB / 386.7 MB, free: 35.67 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.2862, allocations: 0 / 386.7 MB, free: 35.67 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003075/0.2865, allocations: 348.6 kB / 387.1 MB, free: 35.35 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.2866, allocations: 0 / 387.1 MB, free: 35.35 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001948/0.2868, allocations: 42.05 kB / 387.1 MB, free: 35.34 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000196/0.287, allocations: 49 kB / 387.2 MB, free: 35.31 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.953e-05/0.287, allocations: 6.25 kB / 387.2 MB, free: 35.31 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001054/0.2881, allocations: 1.328 MB / 388.5 MB, free: 33.94 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.2881, allocations: 4.156 kB / 388.5 MB, free: 33.93 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007647/0.2888, allocations: 354.8 kB / 388.8 MB, free: 33.72 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001335/0.289, allocations: 122.2 kB / 389 MB, free: 33.59 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.764e-05/0.289, allocations: 5.969 kB / 389 MB, free: 33.59 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001881/0.2892, allocations: 27.38 kB / 389 MB, free: 33.58 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.882e-05/0.2893, allocations: 34.91 kB / 389 MB, free: 33.55 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.619e-05/0.2894, allocations: 3.875 kB / 389 MB, free: 33.55 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001727/0.2895, allocations: 187.7 kB / 389.2 MB, free: 33.42 MB / 298.7 MB Notification: Performance of sort global known variables: time 9e-08/0.2895, allocations: 0 / 389.2 MB, free: 33.42 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004322/0.29, allocations: 83.84 kB / 389.3 MB, free: 33.34 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.0001173/0.2901, allocations: 111.2 kB / 389.4 MB, free: 33.22 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005239/0.2906, allocations: 323.8 kB / 389.7 MB, free: 32.89 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.2906, allocations: 0 / 389.7 MB, free: 32.89 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002418/0.2909, allocations: 202.5 kB / 389.9 MB, free: 32.68 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002809/0.2912, allocations: 24.56 kB / 389.9 MB, free: 32.66 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001299/0.2925, allocations: 0.8638 MB / 390.8 MB, free: 31.76 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001596/0.2927, allocations: 0.7677 MB / 391.6 MB, free: 30.97 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.331e-05/0.2927, allocations: 27.42 kB / 391.6 MB, free: 30.94 MB / 298.7 MB Notification: Performance of SimCode: time 2.5e-07/0.2927, allocations: 4 kB / 391.6 MB, free: 30.94 MB / 298.7 MB Notification: Performance of Templates: time 0.005379/0.2981, allocations: 4.587 MB / 396.2 MB, free: 26.36 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/jenkins/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,der(inductor1.i),der(inductor2.i),ground.p.i,ground.p.v,ground1.p.i,ground1.p.v,ground2.p.i,ground2.p.v,inductor1.L,inductor1.i,inductor1.n.i,inductor1.n.v,inductor1.p.i,inductor1.p.v,inductor1.v,inductor2.L,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