Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.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.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc") [: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 trunk/package.mo): time 0.001422/0.001422, allocations: 192.1 kB / 8.534 MB, free: 1.844 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.211/1.211, allocations: 225.5 MB / 234.4 MB, free: 3.406 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008713/0.0008714, allocations: 89.86 kB / 286.3 MB, free: 5.277 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 5.861e-06/5.951e-06, allocations: 0 / 343.1 MB, free: 8.711 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08043/0.08045, allocations: 51.48 MB / 394.6 MB, free: 5.184 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.227/0.3075, allocations: 79.44 MB / 474.1 MB, free: 12.53 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001669/0.3077, allocations: 66.97 kB / 474.1 MB, free: 12.5 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.01273/0.3205, allocations: 5.32 MB / 479.4 MB, free: 9.305 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.246e-05/0.3205, allocations: 4 kB / 479.5 MB, free: 9.301 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: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.0006712/0.3212, allocations: 0.5518 MB / 480 MB, free: 8.727 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.341e-05/0.3212, allocations: 8.031 kB / 480 MB, free: 8.719 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.08e-05/0.3213, allocations: 35.62 kB / 480 MB, free: 8.684 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002337/0.3216, allocations: 250.6 kB / 480.3 MB, free: 8.418 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.714e-05/0.3216, allocations: 72.05 kB / 480.4 MB, free: 8.336 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.974e-05/0.3217, allocations: 16 kB / 480.4 MB, free: 8.32 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002793/0.322, allocations: 168 kB / 480.5 MB, free: 8.219 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003273/0.3223, allocations: 252 kB / 480.8 MB, free: 8.016 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.199e-05/0.3223, allocations: 0 / 480.8 MB, free: 8.016 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.567e-05/0.3223, allocations: 0 / 480.8 MB, free: 8.016 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.495e-06/0.3224, allocations: 8 kB / 480.8 MB, free: 8.008 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001292/0.3237, allocations: 1.073 MB / 481.9 MB, free: 7.02 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001718/0.3238, allocations: 92.52 kB / 482 MB, free: 6.949 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.816e-05/0.324, allocations: 75.5 kB / 482 MB, free: 6.902 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.009e-05/0.324, allocations: 4 kB / 482 MB, free: 6.898 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001478/0.3241, allocations: 137.9 kB / 482.2 MB, free: 6.766 MB / 346.7 MB Notification: Performance of pre-optimization done (n=21): time 1.342e-06/0.3241, allocations: 3.938 kB / 482.2 MB, free: 6.762 MB / 346.7 MB Notification: Performance of matching and sorting (n=21): time 0.0004863/0.3246, allocations: 200.9 kB / 482.4 MB, free: 6.594 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.537e-05/0.3247, allocations: 110.7 kB / 482.5 MB, free: 6.461 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001099/0.3248, allocations: 164.9 kB / 482.6 MB, free: 6.312 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.943e-05/0.3248, allocations: 29.64 kB / 482.7 MB, free: 6.281 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.493e-05/0.3249, allocations: 167.4 kB / 482.8 MB, free: 6.125 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.473e-05/0.3249, allocations: 63.55 kB / 482.9 MB, free: 6.07 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.078e-05/0.3249, allocations: 0 / 482.9 MB, free: 6.07 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.322e-05/0.325, allocations: 334.5 kB / 483.2 MB, free: 5.742 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.783e-05/0.3251, allocations: 59.56 kB / 483.3 MB, free: 5.699 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001056/0.3252, allocations: 116 kB / 483.4 MB, free: 5.594 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.696e-05/0.3253, allocations: 68.67 kB / 483.5 MB, free: 5.547 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.3253, allocations: 0 / 483.5 MB, free: 5.547 MB / 346.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003014/0.3256, allocations: 230.1 kB / 483.7 MB, free: 5.363 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.175e-05/0.3256, allocations: 11.09 kB / 483.7 MB, free: 5.355 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.3256, allocations: 0 / 483.7 MB, free: 5.355 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000231/0.3259, allocations: 60.66 kB / 483.8 MB, free: 5.301 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000196/0.3261, allocations: 51.73 kB / 483.8 MB, free: 5.254 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007446/0.3268, allocations: 1.244 MB / 485 MB, free: 3.945 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002064/0.3271, allocations: 39.89 kB / 485.1 MB, free: 3.906 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.716e-05/0.3271, allocations: 7.875 kB / 485.1 MB, free: 3.902 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: 6 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,$whenCondition1,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,$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 (32): * Single equations (assignments): 31 * 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 9.98e-05/0.3272, allocations: 116.9 kB / 485.2 MB, free: 3.781 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.845e-05/0.3272, allocations: 19.72 kB / 485.2 MB, free: 3.762 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.697e-05/0.3273, allocations: 25.3 kB / 485.3 MB, free: 3.75 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-06/0.3273, allocations: 4 kB / 485.3 MB, free: 3.746 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.734e-06/0.3273, allocations: 4 kB / 485.3 MB, free: 3.742 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-06/0.3273, allocations: 0 / 485.3 MB, free: 3.742 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001939/0.3275, allocations: 269.6 kB / 485.5 MB, free: 3.484 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.3275, allocations: 0 / 485.5 MB, free: 3.484 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001652/0.3277, allocations: 35.92 kB / 485.6 MB, free: 3.449 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000174/0.3279, allocations: 56.31 kB / 485.6 MB, free: 3.402 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.522e-05/0.3279, allocations: 0 / 485.6 MB, free: 3.402 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006344/0.3285, allocations: 1.251 MB / 486.9 MB, free: 2.078 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.796e-06/0.3285, allocations: 4.031 kB / 486.9 MB, free: 2.074 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004794/0.329, allocations: 304 kB / 487.2 MB, free: 1.824 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.924e-05/0.3291, allocations: 115.4 kB / 487.3 MB, free: 1.699 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.626e-05/0.3291, allocations: 0 / 487.3 MB, free: 1.699 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001687/0.3293, allocations: 21.17 kB / 487.3 MB, free: 1.68 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.834e-05/0.3294, allocations: 23.19 kB / 487.3 MB, free: 1.66 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.289e-05/0.3294, allocations: 7.984 kB / 487.3 MB, free: 1.652 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.527e-05/0.3295, allocations: 136.6 kB / 487.5 MB, free: 1.539 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002896/0.3298, allocations: 75.72 kB / 487.5 MB, free: 1.465 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: 6 ($whenCondition2,$whenCondition1,booleanPulse.pulseStart,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): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001172/0.3299, allocations: 110.2 kB / 487.6 MB, free: 1.352 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.000368/0.3303, allocations: 248 kB / 487.9 MB, free: 1.145 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.3303, allocations: 0 / 487.9 MB, free: 1.145 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001973/0.3305, allocations: 174.3 kB / 488.1 MB, free: 0.9883 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002022/0.3307, allocations: 24.58 kB / 488.1 MB, free: 0.9727 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001103/0.3318, allocations: 499.6 kB / 488.6 MB, free: 0.4961 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002489/0.3321, allocations: 0.7781 MB / 489.3 MB, free: 15.69 MB / 362.7 MB Notification: Performance of SimCode: time 2.91e-07/0.3321, allocations: 4 kB / 489.4 MB, free: 15.69 MB / 362.7 MB Notification: Performance of Templates: time 0.005541/0.3376, allocations: 2.596 MB / 491.9 MB, free: 13.16 MB / 362.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches