Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.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.SwitchWithArc,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_SwitchWithArc",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.0009674/0.0009674, allocations: 174.7 kB / 8.476 MB, free: 1.863 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.048/1.048, allocations: 205.2 MB / 214.1 MB, free: 5.184 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.0008208/0.0008208, allocations: 98.22 kB / 262.1 MB, free: 5.215 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1459/0.1467, allocations: 52.96 MB / 315.1 MB, free: 41.44 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06184/0.2086, allocations: 47.57 MB / 362.6 MB, free: 9.902 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2045/0.4131, allocations: 77.25 MB / 439.9 MB, free: 10.93 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001707/0.4133, allocations: 64.23 kB / 439.9 MB, free: 10.93 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: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.01456/0.4279, allocations: 5.651 MB / 445.6 MB, free: 10.1 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.877e-05/0.4279, allocations: 7.594 kB / 445.6 MB, free: 10.1 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001132/0.428, allocations: 43.64 kB / 445.6 MB, free: 10.07 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002998/0.4284, allocations: 245.1 kB / 445.9 MB, free: 9.848 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.231e-05/0.4284, allocations: 71.52 kB / 446 MB, free: 9.785 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.379e-05/0.4285, allocations: 16.14 kB / 446 MB, free: 9.785 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003358/0.4288, allocations: 165.7 kB / 446.1 MB, free: 9.785 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004161/0.4292, allocations: 252.2 kB / 446.4 MB, free: 9.715 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.275e-05/0.4293, allocations: 0 / 446.4 MB, free: 9.715 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.967e-05/0.4293, allocations: 0.6562 kB / 446.4 MB, free: 9.715 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.147e-05/0.4293, allocations: 11.84 kB / 446.4 MB, free: 9.711 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001577/0.4309, allocations: 1.081 MB / 447.5 MB, free: 9.07 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000169/0.4311, allocations: 92.31 kB / 447.6 MB, free: 9.047 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.807e-05/0.4312, allocations: 68.64 kB / 447.6 MB, free: 9.039 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.865e-05/0.4312, allocations: 3.906 kB / 447.6 MB, free: 9.039 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001521/0.4314, allocations: 139.8 kB / 447.8 MB, free: 8.945 MB / 314.7 MB Notification: Performance of pre-optimization done (n=21): time 1.412e-06/0.4314, allocations: 0 / 447.8 MB, free: 8.945 MB / 314.7 MB Notification: Performance of matching and sorting (n=21): time 0.0004853/0.4319, allocations: 209.2 kB / 448 MB, free: 8.863 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.19e-05/0.4319, allocations: 106.6 kB / 448.1 MB, free: 8.738 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001208/0.4321, allocations: 172.7 kB / 448.2 MB, free: 8.621 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.115e-05/0.4321, allocations: 29.55 kB / 448.3 MB, free: 8.59 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.733e-05/0.4321, allocations: 161.9 kB / 448.4 MB, free: 8.449 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.818e-05/0.4322, allocations: 69.27 kB / 448.5 MB, free: 8.402 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.014e-05/0.4322, allocations: 0 / 448.5 MB, free: 8.402 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.865e-05/0.4323, allocations: 333.8 kB / 448.8 MB, free: 8.078 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.066e-05/0.4324, allocations: 56.16 kB / 448.9 MB, free: 8.074 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001074/0.4325, allocations: 109.8 kB / 449 MB, free: 8.008 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001105/0.4326, allocations: 69.02 kB / 449.1 MB, free: 7.992 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.4326, allocations: 3.688 kB / 449.1 MB, free: 7.992 MB / 314.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003141/0.4329, allocations: 226.9 kB / 449.3 MB, free: 7.914 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.18e-05/0.4329, allocations: 7.656 kB / 449.3 MB, free: 7.914 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.49e-06/0.4329, allocations: 0 / 449.3 MB, free: 7.914 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002471/0.4332, allocations: 54.77 kB / 449.3 MB, free: 7.895 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001942/0.4334, allocations: 53.97 kB / 449.4 MB, free: 7.883 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008088/0.4342, allocations: 1.251 MB / 450.6 MB, free: 6.652 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002204/0.4345, allocations: 35.42 kB / 450.7 MB, free: 6.629 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.852e-05/0.4345, allocations: 11.5 kB / 450.7 MB, free: 6.629 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: 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 0.0001242/0.4346, allocations: 108.8 kB / 450.8 MB, free: 6.52 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.109e-05/0.4347, allocations: 23.25 kB / 450.8 MB, free: 6.508 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.418e-05/0.4347, allocations: 28.39 kB / 450.8 MB, free: 6.492 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.739e-06/0.4347, allocations: 7.828 kB / 450.9 MB, free: 6.488 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.875e-06/0.4347, allocations: 0 / 450.9 MB, free: 6.488 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.539e-06/0.4347, allocations: 0 / 450.9 MB, free: 6.488 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002551/0.435, allocations: 272.7 kB / 451.1 MB, free: 6.281 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.805e-06/0.435, allocations: 7.938 kB / 451.1 MB, free: 6.273 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001635/0.4352, allocations: 31.14 kB / 451.2 MB, free: 6.27 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001711/0.4354, allocations: 58.41 kB / 451.2 MB, free: 6.246 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.047e-05/0.4354, allocations: 0 / 451.2 MB, free: 6.246 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007205/0.4361, allocations: 1.251 MB / 452.5 MB, free: 5.008 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.4361, allocations: 0 / 452.5 MB, free: 5.008 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004965/0.4366, allocations: 310 kB / 452.8 MB, free: 4.887 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0006393/0.4373, allocations: 0.7402 MB / 453.5 MB, free: 4.395 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.312e-05/0.4374, allocations: 104.2 kB / 453.6 MB, free: 4.289 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.011e-05/0.4374, allocations: 0 / 453.6 MB, free: 4.289 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001711/0.4376, allocations: 23.64 kB / 453.6 MB, free: 4.277 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.306e-05/0.4377, allocations: 27.3 kB / 453.7 MB, free: 4.266 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.361e-05/0.4377, allocations: 3.844 kB / 453.7 MB, free: 4.266 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.386e-05/0.4378, allocations: 128.1 kB / 453.8 MB, free: 4.184 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008635/0.4387, allocations: 77.41 kB / 453.9 MB, free: 4.168 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: 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.0001507/0.4388, allocations: 108 kB / 454 MB, free: 4.074 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005232/0.4393, allocations: 255.7 kB / 454.2 MB, free: 19.96 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.4394, allocations: 0 / 454.2 MB, free: 19.96 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002664/0.4396, allocations: 176.7 kB / 454.4 MB, free: 19.84 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002423/0.4399, allocations: 25.77 kB / 454.4 MB, free: 19.84 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001203/0.4411, allocations: 493.8 kB / 454.9 MB, free: 19.55 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004508/0.4416, allocations: 0.7909 MB / 455.7 MB, free: 18.8 MB / 330.7 MB Notification: Performance of SimCode: time 3.01e-07/0.4416, allocations: 0 / 455.7 MB, free: 18.8 MB / 330.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_SwitchWithArc_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_SwitchWithArc.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat does not exist to compare? outputFormat=mat