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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002395/0.002395, allocations: 175.3 kB / 8.15 MB, free: 2.191 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.714/1.714, allocations: 205.2 MB / 213.8 MB, free: 13.87 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.001203/0.001203, allocations: 87.25 kB / 261.8 MB, free: 13.63 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 9.397e-06/9.528e-06, allocations: 0 / 314.3 MB, free: 9.047 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2441/0.2441, allocations: 47.55 MB / 361.8 MB, free: 45.67 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1392/0.3834, allocations: 77.93 MB / 439.8 MB, free: 8.117 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000225/0.3837, allocations: 63.97 kB / 439.8 MB, free: 8.055 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.02562/0.4093, allocations: 5.777 MB / 445.6 MB, free: 2.309 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.268e-05/0.4094, allocations: 4 kB / 445.6 MB, free: 2.305 MB / 330.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.001298/0.4107, allocations: 0.5775 MB / 446.2 MB, free: 1.684 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.128e-05/0.4107, allocations: 12.03 kB / 446.2 MB, free: 1.672 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001063/0.4109, allocations: 39.53 kB / 446.2 MB, free: 1.633 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004589/0.4113, allocations: 267.6 kB / 446.5 MB, free: 1.328 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.227e-05/0.4114, allocations: 68.05 kB / 446.6 MB, free: 1.246 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.69e-05/0.4115, allocations: 23.94 kB / 446.6 MB, free: 1.223 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006296/0.4122, allocations: 179.6 kB / 446.8 MB, free: 1.051 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007198/0.4129, allocations: 277.5 kB / 447 MB, free: 0.7617 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.634e-05/0.4129, allocations: 0 / 447 MB, free: 0.7617 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.203e-05/0.413, allocations: 3.984 kB / 447 MB, free: 0.7578 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.298e-05/0.413, allocations: 8 kB / 447 MB, free: 0.75 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002982/0.416, allocations: 1.32 MB / 448.4 MB, free: 15.34 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003206/0.4163, allocations: 97.64 kB / 448.5 MB, free: 15.24 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002126/0.4166, allocations: 72.89 kB / 448.5 MB, free: 15.16 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.665e-05/0.4166, allocations: 11.98 kB / 448.5 MB, free: 15.15 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003007/0.4169, allocations: 132.2 kB / 448.7 MB, free: 15 MB / 346.7 MB Notification: Performance of pre-optimization done (n=21): time 2.094e-06/0.4169, allocations: 0 / 448.7 MB, free: 15 MB / 346.7 MB Notification: Performance of matching and sorting (n=21): time 0.0009101/0.4179, allocations: 220.5 kB / 448.9 MB, free: 14.78 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.884e-05/0.4179, allocations: 106.8 kB / 449 MB, free: 14.65 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002935/0.4183, allocations: 196 kB / 449.2 MB, free: 14.45 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.486e-05/0.4183, allocations: 25.7 kB / 449.2 MB, free: 14.42 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000162/0.4185, allocations: 246.2 kB / 449.5 MB, free: 14.18 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.801e-05/0.4186, allocations: 67.09 kB / 449.5 MB, free: 14.11 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.764e-05/0.4186, allocations: 8 kB / 449.5 MB, free: 14.1 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001217/0.4187, allocations: 318.8 kB / 449.8 MB, free: 13.78 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002008/0.4189, allocations: 63.98 kB / 449.9 MB, free: 13.72 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002754/0.4192, allocations: 138.5 kB / 450 MB, free: 13.54 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002265/0.4195, allocations: 77.11 kB / 450.1 MB, free: 13.47 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.557e-06/0.4195, allocations: 0 / 450.1 MB, free: 13.47 MB / 346.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001002/0.4205, allocations: 278.7 kB / 450.4 MB, free: 13.19 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.863e-05/0.4205, allocations: 12.02 kB / 450.4 MB, free: 13.18 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.055e-05/0.4206, allocations: 4 kB / 450.4 MB, free: 13.18 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003641/0.4209, allocations: 52.83 kB / 450.4 MB, free: 13.12 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004579/0.4214, allocations: 63.91 kB / 450.5 MB, free: 13.06 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001435/0.4229, allocations: 1.246 MB / 451.8 MB, free: 11.7 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003886/0.4233, allocations: 31.83 kB / 451.8 MB, free: 11.67 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.531e-05/0.4233, allocations: 12 kB / 451.8 MB, free: 11.66 MB / 346.7 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.0001616/0.4235, allocations: 49.52 kB / 451.8 MB, free: 11.61 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.388e-05/0.4236, allocations: 23.72 kB / 451.9 MB, free: 11.58 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.48e-05/0.4237, allocations: 30.05 kB / 451.9 MB, free: 11.55 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.567e-06/0.4237, allocations: 3.938 kB / 451.9 MB, free: 11.55 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.4237, allocations: 0.5 kB / 451.9 MB, free: 11.55 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.494e-06/0.4237, allocations: 4 kB / 451.9 MB, free: 11.55 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004721/0.4242, allocations: 285.9 kB / 452.2 MB, free: 11.23 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.469e-06/0.4242, allocations: 4.75 kB / 452.2 MB, free: 11.23 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003702/0.4246, allocations: 35.98 kB / 452.2 MB, free: 11.19 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003112/0.4249, allocations: 60.72 kB / 452.3 MB, free: 11.13 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.259e-05/0.425, allocations: 0.6562 kB / 452.3 MB, free: 11.13 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001367/0.4263, allocations: 1.254 MB / 453.5 MB, free: 9.766 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.851e-06/0.4264, allocations: 8.016 kB / 453.5 MB, free: 9.758 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001009/0.4274, allocations: 315.4 kB / 453.9 MB, free: 9.43 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001718/0.4276, allocations: 116.7 kB / 454 MB, free: 9.297 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.148e-05/0.4277, allocations: 0 / 454 MB, free: 9.297 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003274/0.428, allocations: 24.05 kB / 454 MB, free: 9.273 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001055/0.4281, allocations: 16.53 kB / 454 MB, free: 9.258 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.762e-05/0.4282, allocations: 8 kB / 454 MB, free: 9.25 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0002097/0.4284, allocations: 152.5 kB / 454.2 MB, free: 9.102 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004983/0.4289, allocations: 83.69 kB / 454.2 MB, free: 9.02 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) * 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.0002134/0.4291, allocations: 114.2 kB / 454.4 MB, free: 8.898 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0007446/0.4299, allocations: 268.3 kB / 454.6 MB, free: 8.629 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.4299, allocations: 0 / 454.6 MB, free: 8.629 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003776/0.4303, allocations: 169.8 kB / 454.8 MB, free: 8.453 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000293/0.4306, allocations: 28.41 kB / 454.8 MB, free: 8.422 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001847/0.4325, allocations: 487.9 kB / 455.3 MB, free: 7.914 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004811/0.433, allocations: 0.798 MB / 456.1 MB, free: 7.09 MB / 346.7 MB Notification: Performance of SimCode: time 1.122e-06/0.433, allocations: 0 / 456.1 MB, free: 7.09 MB / 346.7 MB Notification: Performance of Templates: time 0.009731/0.4427, allocations: 4.36 MB / 460.5 MB, free: 2.75 MB / 346.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:_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