Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_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_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_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 trunk/package.mo): time 0.001039/0.001039, allocations: 203.3 kB / 8.539 MB, free: 1.797 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.239/1.239, allocations: 225.5 MB / 234.4 MB, free: 3.328 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008711/0.0008712, allocations: 92.52 kB / 286.3 MB, free: 5.336 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 6.933e-06/6.943e-06, allocations: 0 / 343.1 MB, free: 8.664 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09229/0.09231, allocations: 51.49 MB / 394.6 MB, free: 5.129 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2478/0.3402, allocations: 80.39 MB / 475 MB, free: 11.75 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001797/0.3404, allocations: 67.89 kB / 475.1 MB, free: 11.73 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.01496/0.3554, allocations: 6.085 MB / 481.2 MB, free: 7.656 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.8e-05/0.3554, allocations: 8 kB / 481.2 MB, free: 7.648 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.0007986/0.3562, allocations: 0.5834 MB / 481.8 MB, free: 7.047 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.186e-05/0.3563, allocations: 8.031 kB / 481.8 MB, free: 7.039 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001831/0.3565, allocations: 55.53 kB / 481.8 MB, free: 6.984 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000297/0.3568, allocations: 270.2 kB / 482.1 MB, free: 6.699 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.526e-05/0.3568, allocations: 68.05 kB / 482.1 MB, free: 6.617 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.058e-05/0.3569, allocations: 27.03 kB / 482.2 MB, free: 6.598 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003125/0.3572, allocations: 174.7 kB / 482.3 MB, free: 6.492 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003723/0.3576, allocations: 282.1 kB / 482.6 MB, free: 6.266 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.315e-05/0.3576, allocations: 0 / 482.6 MB, free: 6.266 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.759e-05/0.3576, allocations: 0 / 482.6 MB, free: 6.266 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.505e-06/0.3577, allocations: 8 kB / 482.6 MB, free: 6.258 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001535/0.3592, allocations: 1.321 MB / 483.9 MB, free: 5.035 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001467/0.3594, allocations: 96.39 kB / 484 MB, free: 4.965 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001054/0.3595, allocations: 75.44 kB / 484.1 MB, free: 4.918 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.464e-05/0.3595, allocations: 8 kB / 484.1 MB, free: 4.91 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001534/0.3597, allocations: 137.7 kB / 484.3 MB, free: 4.781 MB / 346.7 MB Notification: Performance of pre-optimization done (n=21): time 2.404e-06/0.3597, allocations: 3.984 kB / 484.3 MB, free: 4.777 MB / 346.7 MB Notification: Performance of matching and sorting (n=21): time 0.0005079/0.3602, allocations: 215.1 kB / 484.5 MB, free: 4.598 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.465e-05/0.3602, allocations: 106.8 kB / 484.6 MB, free: 4.469 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001457/0.3604, allocations: 196.9 kB / 484.8 MB, free: 4.297 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.813e-05/0.3604, allocations: 25.7 kB / 484.8 MB, free: 4.266 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.718e-05/0.3605, allocations: 188.2 kB / 485 MB, free: 4.09 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.723e-05/0.3605, allocations: 64.31 kB / 485 MB, free: 4.035 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.154e-05/0.3605, allocations: 4 kB / 485 MB, free: 4.031 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.227e-05/0.3606, allocations: 340.9 kB / 485.4 MB, free: 3.699 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.79e-05/0.3607, allocations: 56.56 kB / 485.4 MB, free: 3.668 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001274/0.3608, allocations: 156.5 kB / 485.6 MB, free: 3.512 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000112/0.361, allocations: 73.64 kB / 485.7 MB, free: 3.465 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.361, allocations: 0 / 485.7 MB, free: 3.465 MB / 346.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0005037/0.3615, allocations: 290.9 kB / 485.9 MB, free: 3.223 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.188e-05/0.3615, allocations: 8 kB / 485.9 MB, free: 3.215 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.652e-06/0.3615, allocations: 4 kB / 486 MB, free: 3.211 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00024/0.3618, allocations: 57 kB / 486 MB, free: 3.164 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000245/0.362, allocations: 63.91 kB / 486.1 MB, free: 3.102 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008031/0.3628, allocations: 1.258 MB / 487.3 MB, free: 1.781 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002366/0.3631, allocations: 35.77 kB / 487.4 MB, free: 1.746 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.037e-05/0.3631, allocations: 16.75 kB / 487.4 MB, free: 1.734 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.0001137/0.3632, allocations: 120.8 kB / 487.5 MB, free: 1.609 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.093e-05/0.3633, allocations: 23.72 kB / 487.5 MB, free: 1.586 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.935e-05/0.3633, allocations: 23.44 kB / 487.5 MB, free: 1.578 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.013e-06/0.3633, allocations: 0 / 487.5 MB, free: 1.578 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.513e-06/0.3633, allocations: 4 kB / 487.5 MB, free: 1.574 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-06/0.3633, allocations: 3.984 kB / 487.6 MB, free: 1.57 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002116/0.3636, allocations: 281.2 kB / 487.8 MB, free: 1.305 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.083e-06/0.3636, allocations: 5.438 kB / 487.8 MB, free: 1.301 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002039/0.3638, allocations: 43.91 kB / 487.9 MB, free: 1.258 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001717/0.364, allocations: 50.89 kB / 487.9 MB, free: 1.215 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.775e-05/0.364, allocations: 3.984 kB / 487.9 MB, free: 1.211 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007096/0.3647, allocations: 1.254 MB / 489.2 MB, free: 15.89 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.3647, allocations: 0 / 489.2 MB, free: 15.89 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005824/0.3653, allocations: 316.9 kB / 489.5 MB, free: 15.63 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001037/0.3654, allocations: 114.5 kB / 489.6 MB, free: 15.51 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.122e-05/0.3655, allocations: 0 / 489.6 MB, free: 15.51 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001928/0.3657, allocations: 24.05 kB / 489.6 MB, free: 15.48 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.003e-05/0.3658, allocations: 23.75 kB / 489.7 MB, free: 15.46 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.728e-05/0.3658, allocations: 11.92 kB / 489.7 MB, free: 15.45 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001167/0.3659, allocations: 148.4 kB / 489.8 MB, free: 15.33 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003498/0.3663, allocations: 87.67 kB / 489.9 MB, free: 15.25 MB / 362.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.0001587/0.3664, allocations: 107.2 kB / 490 MB, free: 15.13 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000513/0.3669, allocations: 270.3 kB / 490.3 MB, free: 14.91 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.367, allocations: 0 / 490.3 MB, free: 14.91 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002451/0.3672, allocations: 179.2 kB / 490.4 MB, free: 14.75 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001892/0.3674, allocations: 17.16 kB / 490.5 MB, free: 14.74 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001103/0.3685, allocations: 455 kB / 490.9 MB, free: 14.31 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003582/0.3689, allocations: 0.798 MB / 491.7 MB, free: 13.49 MB / 362.7 MB Notification: Performance of SimCode: time 2.91e-07/0.3689, allocations: 0 / 491.7 MB, free: 13.49 MB / 362.7 MB Notification: Performance of Templates: time 0.005955/0.3749, allocations: 2.663 MB / 494.4 MB, free: 10.91 MB / 362.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches