Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009914/0.0009915, allocations: 195.9 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.312/1.312, allocations: 226.6 MB / 244.3 MB, free: 8.23 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007082/0.0007081, allocations: 98.47 kB / 296.4 MB, free: 7.012 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002476/0.0002477, allocations: 8 kB / 356.2 MB, free: 11.22 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2439/0.2442, allocations: 51.29 MB / 407.5 MB, free: 27.86 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.002462/0.2467, allocations: 2.684 MB / 410.2 MB, free: 25.16 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001089/0.2478, allocations: 0.758 MB / 410.9 MB, free: 24.41 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001537/0.248, allocations: 7.938 kB / 410.9 MB, free: 24.4 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001378/0.2481, allocations: 47.67 kB / 411 MB, free: 24.35 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001472/0.2483, allocations: 85.62 kB / 411.1 MB, free: 24.27 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003479/0.2486, allocations: 77.16 kB / 411.1 MB, free: 24.2 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002648/0.2489, allocations: 393.9 kB / 411.5 MB, free: 23.81 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001866/0.2491, allocations: 106.6 kB / 411.6 MB, free: 23.71 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001936/0.2493, allocations: 139.5 kB / 411.8 MB, free: 23.57 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001481/0.2495, allocations: 147.3 kB / 411.9 MB, free: 23.43 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.586e-05/0.2495, allocations: 16 kB / 411.9 MB, free: 23.41 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.344e-05/0.2496, allocations: 24 kB / 412 MB, free: 23.39 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.94e-05/0.2496, allocations: 63.73 kB / 412 MB, free: 23.32 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.5e-05/0.2497, allocations: 93.52 kB / 412.1 MB, free: 23.23 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002175/0.2499, allocations: 304.1 kB / 412.4 MB, free: 22.93 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.57e-06/0.2499, allocations: 0 / 412.4 MB, free: 22.93 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.475e-06/0.25, allocations: 4 kB / 412.4 MB, free: 22.93 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.552e-06/0.25, allocations: 0 / 412.4 MB, free: 22.93 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.0008325/0.2508, allocations: 0.6079 MB / 413 MB, free: 22.27 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.826e-05/0.2509, allocations: 12.03 kB / 413 MB, free: 22.25 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001845/0.251, allocations: 51.52 kB / 413.1 MB, free: 22.2 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002813/0.2513, allocations: 268.1 kB / 413.3 MB, free: 21.9 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.964e-05/0.2514, allocations: 84 kB / 413.4 MB, free: 21.8 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.433e-05/0.2515, allocations: 32 kB / 413.5 MB, free: 21.77 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000481/0.252, allocations: 338.7 kB / 413.8 MB, free: 21.43 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.3e-05/0.252, allocations: 0 / 413.8 MB, free: 21.43 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.023e-05/0.252, allocations: 12 kB / 413.8 MB, free: 21.41 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.496e-06/0.252, allocations: 8 kB / 413.8 MB, free: 21.41 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003661/0.2524, allocations: 226.5 kB / 414 MB, free: 21.18 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001529/0.2539, allocations: 1.383 MB / 415.4 MB, free: 19.7 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002803/0.2542, allocations: 166.9 kB / 415.6 MB, free: 19.53 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001416/0.2544, allocations: 92.77 kB / 415.7 MB, free: 19.43 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.822e-05/0.2544, allocations: 8 kB / 415.7 MB, free: 19.43 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002797/0.2547, allocations: 162.3 kB / 415.8 MB, free: 19.25 MB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 1.392e-06/0.2547, allocations: 0 / 415.8 MB, free: 19.25 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.001015/0.2557, allocations: 424.8 kB / 416.2 MB, free: 18.81 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.944e-05/0.2558, allocations: 102.8 kB / 416.3 MB, free: 18.68 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002113/0.256, allocations: 266.6 kB / 416.6 MB, free: 18.42 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.046e-05/0.256, allocations: 25.7 kB / 416.6 MB, free: 18.39 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.09e-05/0.2561, allocations: 207.9 kB / 416.8 MB, free: 18.18 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.083e-05/0.2562, allocations: 74.98 kB / 416.9 MB, free: 18.11 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.216e-05/0.2562, allocations: 4 kB / 416.9 MB, free: 18.1 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.072e-05/0.2563, allocations: 342.8 kB / 417.2 MB, free: 17.76 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001354/0.2564, allocations: 76.62 kB / 417.3 MB, free: 17.68 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001958/0.2566, allocations: 181.5 kB / 417.5 MB, free: 17.46 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001538/0.2568, allocations: 93.06 kB / 417.6 MB, free: 17.37 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.135e-06/0.2568, allocations: 8 kB / 417.6 MB, free: 17.36 MB / 298.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005837/0.2574, allocations: 348.6 kB / 417.9 MB, free: 17.02 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.713e-05/0.2574, allocations: 7.938 kB / 417.9 MB, free: 17.01 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.795e-06/0.2574, allocations: 4 kB / 417.9 MB, free: 17 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002601/0.2577, allocations: 56.97 kB / 418 MB, free: 16.95 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002473/0.2579, allocations: 63.91 kB / 418.1 MB, free: 16.88 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001068/0.259, allocations: 1.408 MB / 419.5 MB, free: 15.34 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002656/0.2593, allocations: 47.67 kB / 419.5 MB, free: 15.29 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.23e-05/0.2593, allocations: 8 kB / 419.5 MB, free: 15.29 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.0001535/0.2595, allocations: 157.8 kB / 419.7 MB, free: 15.12 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.518e-05/0.2595, allocations: 31.62 kB / 419.7 MB, free: 15.09 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.812e-05/0.2596, allocations: 26.17 kB / 419.7 MB, free: 15.06 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.435e-06/0.2596, allocations: 4 kB / 419.7 MB, free: 15.06 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.545e-06/0.2596, allocations: 0 / 419.7 MB, free: 15.06 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.538e-06/0.2596, allocations: 3.953 kB / 419.7 MB, free: 15.05 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002556/0.2599, allocations: 341.4 kB / 420.1 MB, free: 14.67 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.2599, allocations: 0 / 420.1 MB, free: 14.67 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000183/0.26, allocations: 39.98 kB / 420.1 MB, free: 14.63 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001764/0.2602, allocations: 48.81 kB / 420.2 MB, free: 14.58 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.954e-05/0.2603, allocations: 11.98 kB / 420.2 MB, free: 14.57 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007784/0.261, allocations: 1.331 MB / 421.5 MB, free: 13.11 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.2611, allocations: 0 / 421.5 MB, free: 13.11 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006019/0.2617, allocations: 369.8 kB / 421.9 MB, free: 12.73 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.207e-05/0.2618, allocations: 116.8 kB / 422 MB, free: 12.6 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.389e-05/0.2618, allocations: 8 kB / 422 MB, free: 12.59 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001728/0.262, allocations: 23.98 kB / 422 MB, free: 12.57 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.08e-05/0.2621, allocations: 31.89 kB / 422 MB, free: 12.54 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.398e-05/0.2621, allocations: 4 kB / 422 MB, free: 12.53 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001295/0.2622, allocations: 186 kB / 422.2 MB, free: 12.35 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2622, allocations: 8 kB / 422.2 MB, free: 12.34 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003492/0.2626, allocations: 83.84 kB / 422.3 MB, free: 12.26 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.0001237/0.2627, allocations: 103.2 kB / 422.4 MB, free: 12.15 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000513/0.2632, allocations: 319 kB / 422.7 MB, free: 11.82 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.2633, allocations: 4.062 kB / 422.7 MB, free: 11.82 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002383/0.2635, allocations: 194.5 kB / 422.9 MB, free: 11.62 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002693/0.2638, allocations: 42.72 kB / 423 MB, free: 11.58 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001326/0.2651, allocations: 0.8555 MB / 423.8 MB, free: 10.69 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001642/0.2653, allocations: 0.7716 MB / 424.6 MB, free: 9.895 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.085e-05/0.2654, allocations: 23.44 kB / 424.6 MB, free: 9.871 MB / 298.7 MB Notification: Performance of SimCode: time 4.41e-07/0.2654, allocations: 0 / 424.6 MB, free: 9.871 MB / 298.7 MB Notification: Performance of Templates: time 0.005202/0.2706, allocations: 4.59 MB / 429.2 MB, free: 5.289 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","../files/Modelica_trunk_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.f,sineVoltage.i,sineVoltage.n.i,sineVoltage.n.v,sineVoltage.offset,sineVoltage.p.i,sineVoltage.p.v,sineVoltage.phase,sineVoltage.signalSource.amplitude,sineVoltage.signalSource.f,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