Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.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.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_SaturatedInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_SaturatedInductor",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.001424/0.001424, allocations: 190.1 kB / 8.139 MB, free: 2.184 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.15/1.15, allocations: 221.4 MB / 229.9 MB, free: 3.008 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.0009625/0.0009625, allocations: 97.23 kB / 280.8 MB, free: 1.234 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09258/0.09357, allocations: 55.83 MB / 336.6 MB, free: 9.406 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1835/0.2771, allocations: 50.4 MB / 387 MB, free: 37.95 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08225/0.3594, allocations: 80.37 MB / 467.4 MB, free: 6.375 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002259/0.3597, allocations: 87.88 kB / 467.5 MB, free: 6.289 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.0203/0.38, allocations: 7.321 MB / 474.8 MB, free: 14.93 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.047e-05/0.38, allocations: 8 kB / 474.8 MB, free: 14.92 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.34e-05/0.3801, allocations: 31.62 kB / 474.8 MB, free: 14.89 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003391/0.3804, allocations: 268.5 kB / 475.1 MB, free: 14.59 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.676e-05/0.3805, allocations: 16 kB / 475.1 MB, free: 14.57 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.184e-05/0.3805, allocations: 19.91 kB / 475.1 MB, free: 14.55 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003136/0.3808, allocations: 177.2 kB / 475.3 MB, free: 14.38 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003462/0.3812, allocations: 196.8 kB / 475.5 MB, free: 14.18 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.147e-06/0.3812, allocations: 0 / 475.5 MB, free: 14.18 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.257e-05/0.3812, allocations: 0 / 475.5 MB, free: 14.18 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.756e-06/0.3813, allocations: 8 kB / 475.5 MB, free: 14.17 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001487/0.3828, allocations: 0.9621 MB / 476.5 MB, free: 13.13 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002247/0.383, allocations: 133.6 kB / 476.6 MB, free: 13 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001841/0.3832, allocations: 99.5 kB / 476.7 MB, free: 12.9 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.811e-05/0.3832, allocations: 0 / 476.7 MB, free: 12.9 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.793e-05/0.3833, allocations: 39.38 kB / 476.7 MB, free: 12.85 MB / 362.7 MB Notification: Performance of pre-optimization done (n=23): time 1.112e-06/0.3833, allocations: 0 / 476.7 MB, free: 12.85 MB / 362.7 MB Notification: Performance of matching and sorting (n=34): time 0.003578/0.3869, allocations: 1.098 MB / 477.8 MB, free: 11.7 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.819e-05/0.3869, allocations: 55.41 kB / 477.9 MB, free: 11.63 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001863/0.3871, allocations: 187.1 kB / 478.1 MB, free: 11.44 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.543e-05/0.3871, allocations: 25.7 kB / 478.1 MB, free: 11.41 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.596e-05/0.3872, allocations: 172.1 kB / 478.3 MB, free: 11.23 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.827e-05/0.3873, allocations: 106.3 kB / 478.4 MB, free: 11.12 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.517e-05/0.3873, allocations: 0 / 478.4 MB, free: 11.12 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.00011/0.3874, allocations: 343.6 kB / 478.7 MB, free: 10.78 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001665/0.3876, allocations: 91.98 kB / 478.8 MB, free: 10.69 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001902/0.3878, allocations: 145 kB / 478.9 MB, free: 10.53 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001856/0.388, allocations: 109.5 kB / 479 MB, free: 10.43 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.363e-06/0.388, allocations: 0 / 479 MB, free: 10.43 MB / 362.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001505/0.3895, allocations: 496.6 kB / 479.5 MB, free: 9.93 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.242e-05/0.3895, allocations: 4 kB / 479.5 MB, free: 9.926 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.181e-06/0.3896, allocations: 0 / 479.5 MB, free: 9.926 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008289/0.3904, allocations: 182.4 kB / 479.7 MB, free: 9.742 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002759/0.3907, allocations: 59.91 kB / 479.8 MB, free: 9.684 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00436/0.395, allocations: 3.584 MB / 483.3 MB, free: 5.863 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002455/0.3953, allocations: 4 kB / 483.3 MB, free: 5.859 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.981e-05/0.3954, allocations: 15.98 kB / 483.4 MB, free: 5.844 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 26 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 1 {1 7} Notification: Performance of prepare postOptimizeDAE: time 9.886e-05/0.3955, allocations: 112.9 kB / 483.5 MB, free: 5.727 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.722e-05/0.3955, allocations: 23.78 kB / 483.5 MB, free: 5.703 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.78e-05/0.3956, allocations: 34.66 kB / 483.5 MB, free: 5.672 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.3956, allocations: 4 kB / 483.5 MB, free: 5.668 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/0.3956, allocations: 0 / 483.5 MB, free: 5.668 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.161e-06/0.3956, allocations: 7.984 kB / 483.5 MB, free: 5.66 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001935/0.3976, allocations: 0.8488 MB / 484.4 MB, free: 4.758 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.359e-06/0.3976, allocations: 3.906 kB / 484.4 MB, free: 4.754 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002173/0.3978, allocations: 44 kB / 484.4 MB, free: 4.711 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007947/0.3986, allocations: 189.5 kB / 484.6 MB, free: 4.52 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.342e-05/0.3986, allocations: 11.92 kB / 484.6 MB, free: 4.508 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004159/0.4028, allocations: 3.565 MB / 488.2 MB, free: 0.7188 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.4028, allocations: 4 kB / 488.2 MB, free: 0.7148 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001786/0.4046, allocations: 0.6829 MB / 488.9 MB, free: 0 / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002088/0.4067, allocations: 1.184 MB / 490.1 MB, free: 14.78 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.889e-05/0.4069, allocations: 96.83 kB / 490.2 MB, free: 14.67 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.787e-05/0.4069, allocations: 3.984 kB / 490.2 MB, free: 14.66 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002523/0.4072, allocations: 11.91 kB / 490.2 MB, free: 14.65 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.568e-05/0.4072, allocations: 24.31 kB / 490.2 MB, free: 14.63 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.066e-05/0.4073, allocations: 12 kB / 490.2 MB, free: 14.62 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0001364/0.4074, allocations: 145.9 kB / 490.4 MB, free: 14.48 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001152/0.4086, allocations: 84 kB / 490.4 MB, free: 14.39 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (coil.i) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 16 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 1 {1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002141/0.4088, allocations: 115.2 kB / 490.5 MB, free: 14.27 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008285/0.4097, allocations: 479.1 kB / 491 MB, free: 13.79 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.4097, allocations: 320 / 491 MB, free: 13.79 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004635/0.4101, allocations: 355.5 kB / 491.4 MB, free: 13.42 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002242/0.4104, allocations: 11.59 kB / 491.4 MB, free: 13.41 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00119/0.4116, allocations: 490.5 kB / 491.9 MB, free: 12.89 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000418/0.412, allocations: 0.8084 MB / 492.7 MB, free: 12.06 MB / 378.7 MB Notification: Performance of SimCode: time 3.61e-07/0.412, allocations: 0 / 492.7 MB, free: 12.06 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_SaturatedInductor_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-07 Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_SaturatedInductor.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor_res.mat does not exist to compare? outputFormat=mat