Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.001291/0.001291, allocations: 180 kB / 8.479 MB, free: 1.891 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.265/1.265, allocations: 205.2 MB / 214.1 MB, free: 5.098 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008778/0.000878, allocations: 87.67 kB / 262.1 MB, free: 5.133 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.733e-06/6.743e-06, allocations: 4 kB / 315 MB, free: 41.48 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07557/0.07559, allocations: 47.57 MB / 362.5 MB, free: 9.949 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2444/0.32, allocations: 77.92 MB / 440.5 MB, free: 10.82 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002023/0.3203, allocations: 63.61 kB / 440.5 MB, free: 10.82 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.0151/0.3354, allocations: 5.777 MB / 446.3 MB, free: 10.23 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.474e-05/0.3354, allocations: 7.781 kB / 446.3 MB, free: 10.23 MB / 314.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.0007336/0.3362, allocations: 0.5774 MB / 446.9 MB, free: 9.754 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.404e-05/0.3362, allocations: 11.69 kB / 446.9 MB, free: 9.75 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.667e-05/0.3363, allocations: 46.7 kB / 446.9 MB, free: 9.727 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002767/0.3366, allocations: 262.8 kB / 447.2 MB, free: 9.48 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.234e-05/0.3366, allocations: 70.59 kB / 447.3 MB, free: 9.414 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.067e-05/0.3367, allocations: 19.12 kB / 447.3 MB, free: 9.414 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003214/0.337, allocations: 183.4 kB / 447.5 MB, free: 9.402 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003777/0.3374, allocations: 269.5 kB / 447.7 MB, free: 9.301 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.297e-05/0.3374, allocations: 7.984 kB / 447.7 MB, free: 9.293 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.718e-05/0.3375, allocations: 0 / 447.7 MB, free: 9.293 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.436e-06/0.3375, allocations: 7.688 kB / 447.7 MB, free: 9.293 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001525/0.339, allocations: 1.323 MB / 449.1 MB, free: 8.34 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001531/0.3392, allocations: 97.39 kB / 449.2 MB, free: 8.316 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001059/0.3393, allocations: 72.95 kB / 449.2 MB, free: 8.305 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.272e-05/0.3393, allocations: 10.89 kB / 449.2 MB, free: 8.305 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001506/0.3395, allocations: 135 kB / 449.4 MB, free: 8.215 MB / 314.7 MB Notification: Performance of pre-optimization done (n=21): time 1.273e-06/0.3395, allocations: 0 / 449.4 MB, free: 8.215 MB / 314.7 MB Notification: Performance of matching and sorting (n=21): time 0.000494/0.34, allocations: 216.5 kB / 449.6 MB, free: 8.129 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.058e-05/0.34, allocations: 106.1 kB / 449.7 MB, free: 8.004 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001461/0.3402, allocations: 198.9 kB / 449.9 MB, free: 7.891 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.905e-05/0.3402, allocations: 25.7 kB / 449.9 MB, free: 7.859 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.681e-05/0.3403, allocations: 190 kB / 450.1 MB, free: 7.699 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.73e-05/0.3403, allocations: 61.45 kB / 450.2 MB, free: 7.656 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.164e-05/0.3403, allocations: 0 / 450.2 MB, free: 7.656 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.193e-05/0.3404, allocations: 337.4 kB / 450.5 MB, free: 7.332 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.976e-05/0.3405, allocations: 66.73 kB / 450.6 MB, free: 7.328 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001244/0.3406, allocations: 140.8 kB / 450.7 MB, free: 7.223 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001118/0.3408, allocations: 75.45 kB / 450.8 MB, free: 7.207 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.3408, allocations: 3.938 kB / 450.8 MB, free: 7.203 MB / 314.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0005083/0.3413, allocations: 289.4 kB / 451 MB, free: 7.105 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.259e-05/0.3413, allocations: 3.844 kB / 451.1 MB, free: 7.105 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.3413, allocations: 12 kB / 451.1 MB, free: 7.098 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002376/0.3416, allocations: 54.31 kB / 451.1 MB, free: 7.078 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002474/0.3418, allocations: 65.66 kB / 451.2 MB, free: 7.062 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008267/0.3426, allocations: 1.249 MB / 452.4 MB, free: 5.832 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002608/0.3429, allocations: 42.73 kB / 452.5 MB, free: 5.812 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.093e-05/0.343, allocations: 11.12 kB / 452.5 MB, free: 5.812 MB / 314.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.0001204/0.3431, allocations: 126.1 kB / 452.6 MB, free: 5.691 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.354e-05/0.3431, allocations: 26.56 kB / 452.6 MB, free: 5.68 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.225e-05/0.3432, allocations: 20.72 kB / 452.7 MB, free: 5.676 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.987e-06/0.3432, allocations: 7.844 kB / 452.7 MB, free: 5.672 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.3432, allocations: 7.922 kB / 452.7 MB, free: 5.664 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.3432, allocations: 0 / 452.7 MB, free: 5.664 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002256/0.3434, allocations: 285.5 kB / 452.9 MB, free: 5.457 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.955e-06/0.3434, allocations: 7.969 kB / 453 MB, free: 5.449 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002028/0.3436, allocations: 42.45 kB / 453 MB, free: 5.441 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001729/0.3438, allocations: 48.25 kB / 453 MB, free: 5.422 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.874e-05/0.3439, allocations: 3.875 kB / 453 MB, free: 5.422 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006792/0.3445, allocations: 1.25 MB / 454.3 MB, free: 4.184 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.3446, allocations: 0 / 454.3 MB, free: 4.184 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005089/0.3451, allocations: 313.7 kB / 454.6 MB, free: 4.066 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.312e-05/0.3452, allocations: 115.6 kB / 454.7 MB, free: 3.949 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.081e-05/0.3452, allocations: 3.844 kB / 454.7 MB, free: 3.949 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001819/0.3454, allocations: 19.64 kB / 454.7 MB, free: 3.945 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.707e-05/0.3455, allocations: 26.72 kB / 454.8 MB, free: 3.93 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.697e-05/0.3455, allocations: 11.64 kB / 454.8 MB, free: 3.926 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.887e-05/0.3456, allocations: 148.2 kB / 454.9 MB, free: 3.836 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003247/0.3459, allocations: 77.19 kB / 455 MB, free: 3.824 MB / 314.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.0001212/0.3461, allocations: 113.8 kB / 455.1 MB, free: 3.727 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004514/0.3465, allocations: 263.5 kB / 455.4 MB, free: 19.61 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.3465, allocations: 4.062 kB / 455.4 MB, free: 19.61 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002284/0.3468, allocations: 177.3 kB / 455.5 MB, free: 19.5 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002157/0.347, allocations: 31.12 kB / 455.6 MB, free: 19.48 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001047/0.348, allocations: 453.1 kB / 456 MB, free: 19.21 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003477/0.3484, allocations: 0.798 MB / 456.8 MB, free: 18.46 MB / 330.7 MB Notification: Performance of SimCode: time 2.8e-07/0.3484, allocations: 0 / 456.8 MB, free: 18.46 MB / 330.7 MB Notification: Performance of Templates: time 0.005135/0.3536, allocations: 2.652 MB / 459.5 MB, free: 17.16 MB / 330.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_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_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches