Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesBode.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.SeriesBode,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_SeriesBode",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesBode,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_SeriesBode",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.0009852/0.0009852, allocations: 183.8 kB / 8.136 MB, free: 2.223 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.123/1.123, allocations: 221.4 MB / 229.9 MB, free: 3.012 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.000899/0.000899, allocations: 99.25 kB / 280.8 MB, free: 1.242 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09083/0.09176, allocations: 55.82 MB / 336.6 MB, free: 9.414 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1814/0.2731, allocations: 50.39 MB / 387 MB, free: 38.09 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08609/0.3593, allocations: 83.7 MB / 470.7 MB, free: 3.121 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002265/0.3595, allocations: 79.95 kB / 470.8 MB, free: 3.043 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: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.04/0.3995, allocations: 16.79 MB / 487.6 MB, free: 2.09 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.449e-05/0.3996, allocations: 12.75 kB / 487.6 MB, free: 2.078 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002091/0.4017, allocations: 323 kB / 487.9 MB, free: 1.762 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005005/0.4022, allocations: 332.2 kB / 488.2 MB, free: 1.395 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.505e-05/0.4023, allocations: 20 kB / 488.2 MB, free: 1.375 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.72e-05/0.4023, allocations: 43.84 kB / 488.3 MB, free: 1.332 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009065/0.4033, allocations: 0.5103 MB / 488.8 MB, free: 0.8203 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008581/0.4041, allocations: 0.5158 MB / 489.3 MB, free: 296 kB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.154e-05/0.4042, allocations: 0 / 489.3 MB, free: 296 kB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.708e-05/0.4042, allocations: 0.9375 kB / 489.3 MB, free: 296 kB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.89e-05/0.4042, allocations: 16 kB / 489.3 MB, free: 280 kB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003278/0.4075, allocations: 2.14 MB / 491.5 MB, free: 14 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007331/0.4083, allocations: 400.7 kB / 491.9 MB, free: 13.6 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002556/0.4086, allocations: 174.1 kB / 492 MB, free: 13.43 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001012/0.4087, allocations: 97.45 kB / 492.1 MB, free: 13.31 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.308e-05/0.4087, allocations: 42.88 kB / 492.2 MB, free: 13.26 MB / 378.7 MB Notification: Performance of pre-optimization done (n=48): time 2.715e-06/0.4087, allocations: 0 / 492.2 MB, free: 13.26 MB / 378.7 MB Notification: Performance of matching and sorting (n=48): time 0.001081/0.4098, allocations: 435 kB / 492.6 MB, free: 12.83 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.881e-05/0.4099, allocations: 85.48 kB / 492.7 MB, free: 12.73 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001801/0.4101, allocations: 165.3 kB / 492.8 MB, free: 12.56 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.778e-05/0.4101, allocations: 29.7 kB / 492.9 MB, free: 12.52 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000136/0.4103, allocations: 244 kB / 493.1 MB, free: 12.28 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001189/0.4104, allocations: 157.6 kB / 493.3 MB, free: 12.12 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.21e-05/0.4104, allocations: 0 / 493.3 MB, free: 12.12 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000133/0.4106, allocations: 334.8 kB / 493.6 MB, free: 11.79 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002489/0.4108, allocations: 141 kB / 493.7 MB, free: 11.65 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003053/0.4111, allocations: 266 kB / 494 MB, free: 11.34 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004631/0.4116, allocations: 188.7 kB / 494.2 MB, free: 11.16 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.388e-06/0.4116, allocations: 0 / 494.2 MB, free: 11.16 MB / 378.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001074/0.4127, allocations: 0.513 MB / 494.7 MB, free: 10.63 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005011/0.4132, allocations: 1.313 MB / 496 MB, free: 9.219 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.204e-05/0.4132, allocations: 4 kB / 496 MB, free: 9.215 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002472/0.4135, allocations: 56.75 kB / 496 MB, free: 9.156 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004955/0.414, allocations: 115.8 kB / 496.2 MB, free: 9.043 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001457/0.4154, allocations: 1.501 MB / 497.7 MB, free: 7.422 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003777/0.4158, allocations: 55.58 kB / 497.7 MB, free: 7.367 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.471e-05/0.4159, allocations: 24.05 kB / 497.7 MB, free: 7.344 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.562e-06/0.4159, allocations: 4 kB / 497.7 MB, free: 7.34 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009569/0.4169, allocations: 452.3 kB / 498.2 MB, free: 6.898 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.142e-06/0.4169, allocations: 4 kB / 498.2 MB, free: 6.895 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001575/0.4171, allocations: 52.83 kB / 498.2 MB, free: 6.84 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004101/0.4175, allocations: 100.2 kB / 498.3 MB, free: 6.742 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001193/0.4187, allocations: 1.424 MB / 499.8 MB, free: 5.211 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003114/0.419, allocations: 43.64 kB / 499.8 MB, free: 5.168 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.274e-05/0.4191, allocations: 24.05 kB / 499.8 MB, free: 5.145 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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 {(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001371/0.4192, allocations: 116.8 kB / 499.9 MB, free: 5.023 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001243/0.4193, allocations: 39.61 kB / 500 MB, free: 4.984 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001129/0.4205, allocations: 0.5189 MB / 0.4888 GB, free: 4.449 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0007635/0.4212, allocations: 424.4 kB / 0.4892 GB, free: 4.023 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.032e-06/0.4213, allocations: 3.984 kB / 0.4892 GB, free: 4.02 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.392e-06/0.4213, allocations: 4 kB / 0.4892 GB, free: 4.016 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001693/0.423, allocations: 1.072 MB / 0.4902 GB, free: 2.891 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.396e-06/0.423, allocations: 0 / 0.4902 GB, free: 2.891 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004135/0.4234, allocations: 95.88 kB / 0.4903 GB, free: 2.797 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001809/0.4236, allocations: 48.83 kB / 0.4904 GB, free: 2.746 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.843e-05/0.4236, allocations: 4 kB / 0.4904 GB, free: 2.742 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001292/0.4249, allocations: 1.517 MB / 0.4919 GB, free: 1.113 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.4249, allocations: 0 / 0.4919 GB, free: 1.113 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001259/0.4262, allocations: 0.7643 MB / 0.4926 GB, free: 340 kB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.1377/0.564, allocations: 1.807 MB / 0.4944 GB, free: 73.59 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001702/0.5642, allocations: 150.5 kB / 0.4945 GB, free: 73.5 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.672e-05/0.5642, allocations: 11.09 kB / 0.4945 GB, free: 73.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003174/0.5646, allocations: 27.78 kB / 0.4945 GB, free: 73.5 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.578e-05/0.5647, allocations: 25.31 kB / 0.4946 GB, free: 73.5 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.322e-05/0.5647, allocations: 20.48 kB / 0.4946 GB, free: 73.5 MB / 378.7 MB Notification: Performance of sort global known variables: time 9.67e-05/0.5648, allocations: 123 kB / 0.4947 GB, free: 73.42 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001975/0.5668, allocations: 265.9 kB / 0.495 GB, free: 73.42 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (currentSensor.pin_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (45): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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 {(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002186/0.567, allocations: 160 kB / 0.4951 GB, free: 73.34 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001081/0.5681, allocations: 0.8992 MB / 0.496 GB, free: 73.07 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.5681, allocations: 0 / 0.496 GB, free: 73.07 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000334/0.5685, allocations: 321.8 kB / 0.4963 GB, free: 72.97 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00026/0.5687, allocations: 21.11 kB / 0.4963 GB, free: 72.97 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001113/0.5698, allocations: 0.6323 MB / 0.4969 GB, free: 72.79 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003565/0.5702, allocations: 0.8837 MB / 0.4978 GB, free: 72.09 MB / 378.7 MB Notification: Performance of SimCode: time 2.61e-07/0.5702, allocations: 0 / 0.4978 GB, free: 72.09 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesBode.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesBode.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesBode.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesBode.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesBode_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_SeriesBode_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_SeriesBode.fmu > Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesBode.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesBode_res.mat does not exist to compare? outputFormat=mat