Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.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: "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_SeriesResonance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_SeriesResonance",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 4.0.0+maint.om/package.mo): time 0.001001/0.001001, allocations: 182.7 kB / 8.136 MB, free: 2.215 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.095/1.095, allocations: 221.4 MB / 229.9 MB, free: 3.027 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009611/0.0009611, allocations: 93.14 kB / 280.8 MB, free: 1.262 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09401/0.095, allocations: 55.83 MB / 336.6 MB, free: 9.418 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1775/0.2725, allocations: 50.39 MB / 387 MB, free: 38.01 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08048/0.353, allocations: 82.01 MB / 469 MB, free: 4.773 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002046/0.3533, allocations: 87.88 kB / 469.1 MB, free: 4.688 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: 134 * Number of variables: 134 Notification: Performance of Generate backend data structure: time 0.03592/0.3892, allocations: 15.71 MB / 484.8 MB, free: 4.809 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.348e-05/0.3893, allocations: 8.75 kB / 484.8 MB, free: 4.801 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002527/0.3918, allocations: 387 kB / 485.2 MB, free: 4.422 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003729/0.3922, allocations: 302.3 kB / 485.5 MB, free: 4.086 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.285e-05/0.3922, allocations: 16 kB / 485.5 MB, free: 4.07 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.042e-05/0.3923, allocations: 32 kB / 485.5 MB, free: 4.039 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008294/0.3931, allocations: 0.4985 MB / 486 MB, free: 3.539 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006796/0.3938, allocations: 399.9 kB / 486.4 MB, free: 3.145 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.145e-05/0.3939, allocations: 7.984 kB / 486.4 MB, free: 3.137 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.837e-05/0.3939, allocations: 0.9375 kB / 486.4 MB, free: 3.137 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.333e-05/0.3939, allocations: 12 kB / 486.5 MB, free: 3.125 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002674/0.3966, allocations: 1.785 MB / 488.2 MB, free: 1.234 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006922/0.3973, allocations: 419.2 kB / 488.6 MB, free: 0.8086 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000233/0.3976, allocations: 170.2 kB / 488.8 MB, free: 0.6406 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001062/0.3977, allocations: 89.55 kB / 488.9 MB, free: 0.5352 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.452e-05/0.3977, allocations: 38.98 kB / 488.9 MB, free: 500 kB / 362.7 MB Notification: Performance of pre-optimization done (n=47): time 1.673e-06/0.3977, allocations: 0 / 488.9 MB, free: 500 kB / 362.7 MB Notification: Performance of matching and sorting (n=47): time 0.0009507/0.3987, allocations: 439.5 kB / 489.4 MB, free: 48 kB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.434e-05/0.3987, allocations: 55.84 kB / 489.4 MB, free: 15.98 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001278/0.3989, allocations: 149.3 kB / 489.6 MB, free: 15.83 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.913e-05/0.3989, allocations: 25.7 kB / 489.6 MB, free: 15.8 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001001/0.399, allocations: 220.3 kB / 489.8 MB, free: 15.58 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000102/0.3991, allocations: 153.8 kB / 490 MB, free: 15.43 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.924e-05/0.3991, allocations: 0 / 490 MB, free: 15.43 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001071/0.3993, allocations: 338.7 kB / 490.3 MB, free: 15.09 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002058/0.3995, allocations: 133 kB / 490.4 MB, free: 14.96 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002432/0.3997, allocations: 203.3 kB / 490.6 MB, free: 14.73 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004309/0.4002, allocations: 180.7 kB / 490.8 MB, free: 14.56 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.876e-06/0.4002, allocations: 0 / 490.8 MB, free: 14.56 MB / 378.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001034/0.4012, allocations: 0.4958 MB / 491.3 MB, free: 14.05 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.414e-05/0.4012, allocations: 4 kB / 491.3 MB, free: 14.05 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.284e-06/0.4012, allocations: 0 / 491.3 MB, free: 14.05 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003354/0.4016, allocations: 84.81 kB / 491.4 MB, free: 13.96 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004289/0.402, allocations: 99.83 kB / 491.5 MB, free: 13.86 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001779/0.4038, allocations: 1.731 MB / 493.2 MB, free: 12.02 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002825/0.4041, allocations: 43.64 kB / 493.2 MB, free: 11.98 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.023e-05/0.4042, allocations: 16 kB / 493.3 MB, free: 11.96 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (50): * Single equations (assignments): 49 * 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: 1 {(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001081/0.4043, allocations: 117 kB / 493.4 MB, free: 11.84 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.072e-05/0.4044, allocations: 23.72 kB / 493.4 MB, free: 11.82 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001059/0.4054, allocations: 0.5101 MB / 493.9 MB, free: 11.3 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.491e-06/0.4054, allocations: 4.188 kB / 493.9 MB, free: 11.29 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.4054, allocations: 4 kB / 493.9 MB, free: 11.29 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.292e-06/0.4055, allocations: 3.938 kB / 493.9 MB, free: 11.29 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001445/0.4069, allocations: 1.044 MB / 495 MB, free: 10.18 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.4069, allocations: 0 / 495 MB, free: 10.18 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003633/0.4073, allocations: 75.91 kB / 495 MB, free: 10.11 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002566/0.4076, allocations: 84.81 kB / 495.1 MB, free: 10.02 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.468e-05/0.4076, allocations: 0 / 495.1 MB, free: 10.02 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001555/0.4092, allocations: 1.732 MB / 496.9 MB, free: 8.172 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.4092, allocations: 3.906 kB / 496.9 MB, free: 8.168 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001626/0.4108, allocations: 0.7254 MB / 497.6 MB, free: 7.426 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002086/0.4129, allocations: 1.723 MB / 499.3 MB, free: 5.684 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.272e-05/0.413, allocations: 108.7 kB / 499.4 MB, free: 5.559 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.442e-05/0.413, allocations: 4 kB / 499.4 MB, free: 5.555 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002538/0.4133, allocations: 16.11 kB / 499.4 MB, free: 5.539 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.279e-05/0.4134, allocations: 28.39 kB / 499.5 MB, free: 5.512 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.81e-05/0.4134, allocations: 12 kB / 499.5 MB, free: 5.5 MB / 378.7 MB Notification: Performance of sort global known variables: time 8.294e-05/0.4135, allocations: 115.3 kB / 499.6 MB, free: 5.387 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001073/0.4146, allocations: 143.5 kB / 499.7 MB, free: 5.246 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (capacitor.pin_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 41 * 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: 1 {(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002064/0.4148, allocations: 147.1 kB / 499.9 MB, free: 5.094 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007749/0.4156, allocations: 0.4974 MB / 0.4886 GB, free: 4.582 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.917e-06/0.4156, allocations: 0 / 0.4886 GB, free: 4.582 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004336/0.416, allocations: 335.5 kB / 0.489 GB, free: 4.246 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002059/0.4162, allocations: 22.89 kB / 0.489 GB, free: 4.227 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001049/0.4173, allocations: 0.5524 MB / 0.4895 GB, free: 3.645 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004824/0.4178, allocations: 0.8618 MB / 0.4904 GB, free: 2.758 MB / 378.7 MB Notification: Performance of SimCode: time 2.61e-07/0.4178, allocations: 0 / 0.4904 GB, free: 2.758 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_SeriesResonance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_SeriesResonance.fmu > Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance_res.mat does not exist to compare? outputFormat=mat