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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) [: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.001006/0.001005, allocations: 176.1 kB / 8.476 MB, free: 1.883 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.122/1.122, allocations: 205.2 MB / 214.1 MB, free: 5.074 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.0008736/0.0008737, allocations: 86.27 kB / 262.1 MB, free: 5.137 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1592/0.1601, allocations: 52.98 MB / 315.1 MB, free: 41.38 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06794/0.2281, allocations: 47.57 MB / 362.6 MB, free: 9.859 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.207/0.4351, allocations: 77.91 MB / 440.5 MB, free: 10.68 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001728/0.4353, allocations: 68.64 kB / 440.6 MB, free: 10.68 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.01553/0.4509, allocations: 6.363 MB / 447 MB, free: 9.629 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.447e-05/0.4509, allocations: 11.84 kB / 447 MB, free: 9.625 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001098/0.451, allocations: 38.81 kB / 447 MB, free: 9.605 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003321/0.4514, allocations: 267.2 kB / 447.3 MB, free: 9.359 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.62e-05/0.4515, allocations: 67.16 kB / 447.4 MB, free: 9.293 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.07e-05/0.4515, allocations: 19.28 kB / 447.4 MB, free: 9.293 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00037/0.4519, allocations: 187.2 kB / 447.6 MB, free: 9.281 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003937/0.4523, allocations: 272.1 kB / 447.8 MB, free: 9.176 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.32e-05/0.4523, allocations: 4 kB / 447.8 MB, free: 9.172 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.992e-05/0.4524, allocations: 7.781 kB / 447.8 MB, free: 9.168 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.057e-06/0.4524, allocations: 7.656 kB / 447.8 MB, free: 9.168 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00162/0.454, allocations: 1.328 MB / 449.2 MB, free: 8.211 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001522/0.4542, allocations: 97.8 kB / 449.3 MB, free: 8.188 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001012/0.4543, allocations: 79.27 kB / 449.3 MB, free: 8.176 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.994e-05/0.4543, allocations: 3.812 kB / 449.3 MB, free: 8.176 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001587/0.4545, allocations: 139.2 kB / 449.5 MB, free: 8.082 MB / 314.7 MB Notification: Performance of pre-optimization done (n=21): time 1.443e-06/0.4545, allocations: 0 / 449.5 MB, free: 8.082 MB / 314.7 MB Notification: Performance of matching and sorting (n=21): time 0.0005086/0.455, allocations: 207.3 kB / 449.7 MB, free: 8.004 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.63e-05/0.455, allocations: 110.5 kB / 449.8 MB, free: 7.875 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001418/0.4552, allocations: 196.7 kB / 450 MB, free: 7.762 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.932e-05/0.4552, allocations: 33.11 kB / 450 MB, free: 7.73 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.069e-05/0.4553, allocations: 185.1 kB / 450.2 MB, free: 7.57 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.618e-05/0.4553, allocations: 65.09 kB / 450.3 MB, free: 7.523 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.059e-05/0.4553, allocations: 0 / 450.3 MB, free: 7.523 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.683e-05/0.4554, allocations: 340.8 kB / 450.6 MB, free: 7.199 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.291e-05/0.4555, allocations: 58.59 kB / 450.6 MB, free: 7.199 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001197/0.4556, allocations: 143.9 kB / 450.8 MB, free: 7.094 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001241/0.4557, allocations: 77.66 kB / 450.9 MB, free: 7.074 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.4558, allocations: 0 / 450.9 MB, free: 7.074 MB / 314.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.000517/0.4563, allocations: 288.7 kB / 451.1 MB, free: 6.977 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.371e-05/0.4563, allocations: 9.875 kB / 451.2 MB, free: 6.977 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.474e-06/0.4563, allocations: 4 kB / 451.2 MB, free: 6.973 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002258/0.4565, allocations: 57.45 kB / 451.2 MB, free: 6.953 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002309/0.4568, allocations: 62.12 kB / 451.3 MB, free: 6.938 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007769/0.4576, allocations: 1.257 MB / 452.5 MB, free: 5.703 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000238/0.4578, allocations: 34.98 kB / 452.6 MB, free: 5.688 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.083e-05/0.4579, allocations: 19.17 kB / 452.6 MB, free: 5.684 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.0001121/0.458, allocations: 116.8 kB / 452.7 MB, free: 5.566 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.328e-05/0.458, allocations: 27.2 kB / 452.7 MB, free: 5.551 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.912e-05/0.4581, allocations: 24.83 kB / 452.8 MB, free: 5.543 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.336e-06/0.4581, allocations: 3.906 kB / 452.8 MB, free: 5.543 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.625e-06/0.4581, allocations: 3.938 kB / 452.8 MB, free: 5.539 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/0.4581, allocations: 0 / 452.8 MB, free: 5.539 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002165/0.4583, allocations: 294.8 kB / 453 MB, free: 5.324 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.4583, allocations: 0 / 453 MB, free: 5.324 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001891/0.4585, allocations: 41.48 kB / 453.1 MB, free: 5.316 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000164/0.4587, allocations: 53.03 kB / 453.1 MB, free: 5.297 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.705e-05/0.4587, allocations: 4 kB / 453.1 MB, free: 5.293 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006412/0.4594, allocations: 1.255 MB / 454.4 MB, free: 4.055 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.4594, allocations: 0 / 454.4 MB, free: 4.055 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004929/0.4599, allocations: 308.9 kB / 454.7 MB, free: 3.938 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0006658/0.4606, allocations: 0.7567 MB / 455.5 MB, free: 19.45 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000112/0.4607, allocations: 119 kB / 455.6 MB, free: 19.32 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.241e-05/0.4607, allocations: 4 kB / 455.6 MB, free: 19.32 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001792/0.4609, allocations: 27.17 kB / 455.6 MB, free: 19.31 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.359e-05/0.461, allocations: 19.16 kB / 455.6 MB, free: 19.3 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.432e-05/0.461, allocations: 7.828 kB / 455.6 MB, free: 19.3 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0001136/0.4611, allocations: 148.7 kB / 455.8 MB, free: 19.21 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0008821/0.462, allocations: 84.3 kB / 455.9 MB, free: 19.2 MB / 330.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.0001489/0.4622, allocations: 106.1 kB / 456 MB, free: 19.1 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004247/0.4626, allocations: 269.4 kB / 456.2 MB, free: 18.98 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.4626, allocations: 0 / 456.2 MB, free: 18.98 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000213/0.4628, allocations: 179 kB / 456.4 MB, free: 18.87 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001882/0.463, allocations: 25.86 kB / 456.4 MB, free: 18.86 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001027/0.4641, allocations: 452.5 kB / 456.9 MB, free: 18.59 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000328/0.4644, allocations: 0.8012 MB / 457.7 MB, free: 17.84 MB / 330.7 MB Notification: Performance of SimCode: time 2.71e-07/0.4644, allocations: 0 / 457.7 MB, free: 17.84 MB / 330.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc_fmu --startTime=0 --stopTime=6 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat does not exist to compare? outputFormat=mat