Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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_4.0.0_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_4.0.0_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 4.0.0+maint.om/package.mo): time 0.001598/0.001598, allocations: 178.9 kB / 8.135 MB, free: 0.8672 MB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.152/1.152, allocations: 221.4 MB / 229.9 MB, free: 13.55 MB / 194.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008661/0.0008662, allocations: 106.9 kB / 280.8 MB, free: 10.5 MB / 226.8 MB Notification: Performance of FrontEnd - loaded program: time 8.175e-06/8.215e-06, allocations: 4 kB / 336.5 MB, free: 2.781 MB / 274.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08915/0.08917, allocations: 50.4 MB / 386.9 MB, free: 340 kB / 322.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2145/0.3037, allocations: 79.58 MB / 466.5 MB, free: 2.199 MB / 338.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002076/0.3039, allocations: 71.97 kB / 466.6 MB, free: 2.129 MB / 338.8 MB Notification: Performance of FrontEnd: time 0.01679/0.3207, allocations: 5.981 MB / 472.6 MB, free: 12.25 MB / 354.8 MB Notification: Performance of Transformations before backend: time 1.738e-05/0.3208, allocations: 4 kB / 472.6 MB, free: 12.25 MB / 354.8 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.0008802/0.3216, allocations: 0.5884 MB / 473.1 MB, free: 11.62 MB / 354.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.626e-05/0.3217, allocations: 11.97 kB / 473.2 MB, free: 11.61 MB / 354.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.665e-05/0.3218, allocations: 47.53 kB / 473.2 MB, free: 11.56 MB / 354.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003189/0.3221, allocations: 259.6 kB / 473.5 MB, free: 11.26 MB / 354.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.063e-05/0.3222, allocations: 72.06 kB / 473.5 MB, free: 11.18 MB / 354.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.486e-05/0.3222, allocations: 20.75 kB / 473.6 MB, free: 11.16 MB / 354.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003562/0.3226, allocations: 185.2 kB / 473.7 MB, free: 10.98 MB / 354.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004339/0.3231, allocations: 273.5 kB / 474 MB, free: 10.69 MB / 354.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.172e-05/0.3231, allocations: 0 / 474 MB, free: 10.69 MB / 354.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.838e-05/0.3231, allocations: 6.688 kB / 474 MB, free: 10.69 MB / 354.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.322e-05/0.3231, allocations: 8 kB / 474 MB, free: 10.68 MB / 354.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001909/0.325, allocations: 1.314 MB / 475.3 MB, free: 9.281 MB / 354.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000181/0.3252, allocations: 104.8 kB / 475.4 MB, free: 9.176 MB / 354.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000128/0.3254, allocations: 72.92 kB / 475.5 MB, free: 9.102 MB / 354.8 MB Notification: Performance of preOpt evalFunc (simulation): time 2.194e-05/0.3254, allocations: 4 kB / 475.5 MB, free: 9.098 MB / 354.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001871/0.3256, allocations: 139.4 kB / 475.6 MB, free: 8.938 MB / 354.8 MB Notification: Performance of pre-optimization done (n=21): time 1.403e-06/0.3256, allocations: 0 / 475.6 MB, free: 8.938 MB / 354.8 MB Notification: Performance of matching and sorting (n=21): time 0.0005617/0.3262, allocations: 212.5 kB / 475.8 MB, free: 8.723 MB / 354.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.039e-05/0.3262, allocations: 102.8 kB / 475.9 MB, free: 8.598 MB / 354.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001825/0.3264, allocations: 200 kB / 476.1 MB, free: 8.398 MB / 354.8 MB Notification: Performance of collectPreVariables (initialization): time 2.331e-05/0.3265, allocations: 29.7 kB / 476.2 MB, free: 8.363 MB / 354.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001025/0.3266, allocations: 183.9 kB / 476.4 MB, free: 8.176 MB / 354.8 MB Notification: Performance of collectInitialBindings (initialization): time 5.089e-05/0.3266, allocations: 67 kB / 476.4 MB, free: 8.109 MB / 354.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.131e-05/0.3267, allocations: 0 / 476.4 MB, free: 8.109 MB / 354.8 MB Notification: Performance of setup shared object (initialization): time 0.0001123/0.3268, allocations: 334.8 kB / 476.7 MB, free: 7.773 MB / 354.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001183/0.3269, allocations: 63.98 kB / 476.8 MB, free: 7.711 MB / 354.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001594/0.3271, allocations: 146.3 kB / 477 MB, free: 7.531 MB / 354.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001382/0.3272, allocations: 77.11 kB / 477 MB, free: 7.457 MB / 354.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.023e-06/0.3272, allocations: 3.938 kB / 477 MB, free: 7.453 MB / 354.8 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006017/0.3278, allocations: 289.8 kB / 477.3 MB, free: 7.164 MB / 354.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.274e-05/0.3278, allocations: 7.984 kB / 477.3 MB, free: 7.156 MB / 354.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.574e-06/0.3279, allocations: 4 kB / 477.3 MB, free: 7.152 MB / 354.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002479/0.3281, allocations: 56.98 kB / 477.4 MB, free: 7.094 MB / 354.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002659/0.3284, allocations: 59.91 kB / 477.4 MB, free: 7.035 MB / 354.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001098/0.3295, allocations: 1.259 MB / 478.7 MB, free: 5.664 MB / 354.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002514/0.3298, allocations: 39.67 kB / 478.7 MB, free: 5.625 MB / 354.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.244e-05/0.3298, allocations: 16.92 kB / 478.8 MB, free: 5.609 MB / 354.8 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.0001347/0.33, allocations: 120.9 kB / 478.9 MB, free: 5.484 MB / 354.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.526e-05/0.33, allocations: 23.72 kB / 478.9 MB, free: 5.461 MB / 354.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.039e-05/0.3301, allocations: 32.92 kB / 478.9 MB, free: 5.43 MB / 354.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.3301, allocations: 0 / 478.9 MB, free: 5.43 MB / 354.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.944e-06/0.3301, allocations: 0 / 478.9 MB, free: 5.43 MB / 354.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.3301, allocations: 0 / 478.9 MB, free: 5.43 MB / 354.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002998/0.3304, allocations: 289.9 kB / 479.2 MB, free: 5.109 MB / 354.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.552e-06/0.3304, allocations: 0 / 479.2 MB, free: 5.109 MB / 354.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002086/0.3306, allocations: 40.55 kB / 479.2 MB, free: 5.07 MB / 354.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001854/0.3308, allocations: 52.81 kB / 479.3 MB, free: 5.016 MB / 354.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.652e-05/0.3308, allocations: 0 / 479.3 MB, free: 5.016 MB / 354.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009822/0.3318, allocations: 1.258 MB / 480.6 MB, free: 3.648 MB / 354.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.564e-06/0.3318, allocations: 4.062 kB / 480.6 MB, free: 3.645 MB / 354.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005928/0.3324, allocations: 317 kB / 480.9 MB, free: 3.316 MB / 354.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001184/0.3326, allocations: 117.5 kB / 481 MB, free: 3.184 MB / 354.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.203e-05/0.3326, allocations: 2.25 kB / 481 MB, free: 3.184 MB / 354.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001889/0.3328, allocations: 19.98 kB / 481 MB, free: 3.164 MB / 354.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.798e-05/0.3329, allocations: 27.92 kB / 481 MB, free: 3.137 MB / 354.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.708e-05/0.3329, allocations: 8 kB / 481 MB, free: 3.129 MB / 354.8 MB Notification: Performance of sort global known variables: time 0.0001304/0.333, allocations: 148.5 kB / 481.2 MB, free: 2.984 MB / 354.8 MB Notification: Performance of remove unused functions: time 0.000365/0.3334, allocations: 91.69 kB / 481.3 MB, free: 2.895 MB / 354.8 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.0001681/0.3336, allocations: 108.2 kB / 481.4 MB, free: 2.785 MB / 354.8 MB Notification: Performance of simCode: created initialization part: time 0.0004874/0.3341, allocations: 266.4 kB / 481.6 MB, free: 2.516 MB / 354.8 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.3341, allocations: 3.938 kB / 481.6 MB, free: 2.512 MB / 354.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0002387/0.3344, allocations: 173.8 kB / 481.8 MB, free: 2.332 MB / 354.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002067/0.3346, allocations: 28.53 kB / 481.8 MB, free: 2.305 MB / 354.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001194/0.3358, allocations: 451.9 kB / 482.3 MB, free: 1.844 MB / 354.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004293/0.3362, allocations: 0.798 MB / 483.1 MB, free: 1.02 MB / 354.8 MB Notification: Performance of SimCode: time 3e-07/0.3362, allocations: 0 / 483.1 MB, free: 1.02 MB / 354.8 MB Notification: Performance of Templates: time 0.006192/0.3424, allocations: 2.641 MB / 485.7 MB, free: 14.45 MB / 370.8 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches