Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.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.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage",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.00104/0.00104, allocations: 183 kB / 8.134 MB, free: 2.219 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.214/1.214, allocations: 221.4 MB / 229.9 MB, free: 3.062 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.0009736/0.0009736, allocations: 111.7 kB / 280.8 MB, free: 1.215 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.092/0.093, allocations: 55.83 MB / 336.6 MB, free: 9.375 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1758/0.2688, allocations: 50.38 MB / 387 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08296/0.3518, allocations: 80.24 MB / 467.3 MB, free: 6.523 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002378/0.3521, allocations: 91.64 kB / 467.3 MB, free: 6.438 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: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.02814/0.3803, allocations: 11.53 MB / 478.9 MB, free: 10.77 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.143e-05/0.3803, allocations: 11.94 kB / 478.9 MB, free: 10.75 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007494/0.3811, allocations: 111.5 kB / 479 MB, free: 10.64 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003459/0.3814, allocations: 266.7 kB / 479.3 MB, free: 10.35 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.039e-05/0.3815, allocations: 12 kB / 479.3 MB, free: 10.34 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.038e-05/0.3815, allocations: 16 kB / 479.3 MB, free: 10.32 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004099/0.3819, allocations: 221.3 kB / 479.5 MB, free: 10.1 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004656/0.3824, allocations: 279.8 kB / 479.8 MB, free: 9.816 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.142e-05/0.3824, allocations: 3.906 kB / 479.8 MB, free: 9.812 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.582e-05/0.3825, allocations: 0 / 479.8 MB, free: 9.812 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.438e-05/0.3825, allocations: 8 kB / 479.8 MB, free: 9.805 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001902/0.3844, allocations: 1.388 MB / 481.2 MB, free: 8.289 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003255/0.3847, allocations: 195.9 kB / 481.4 MB, free: 8.09 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001362/0.3849, allocations: 90.47 kB / 481.5 MB, free: 8 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001088/0.385, allocations: 93.09 kB / 481.5 MB, free: 7.891 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.974e-05/0.385, allocations: 34.55 kB / 481.6 MB, free: 7.848 MB / 362.7 MB Notification: Performance of pre-optimization done (n=24): time 1.693e-06/0.385, allocations: 0 / 481.6 MB, free: 7.848 MB / 362.7 MB Notification: Performance of matching and sorting (n=24): time 0.0006903/0.3857, allocations: 242.5 kB / 481.8 MB, free: 7.602 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.946e-05/0.3858, allocations: 55.41 kB / 481.9 MB, free: 7.535 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001321/0.3859, allocations: 146.1 kB / 482 MB, free: 7.387 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.152e-05/0.386, allocations: 25.7 kB / 482 MB, free: 7.355 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.498e-05/0.3861, allocations: 174.1 kB / 482.2 MB, free: 7.184 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.765e-05/0.3861, allocations: 82.81 kB / 482.3 MB, free: 7.102 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.182e-05/0.3861, allocations: 0 / 482.3 MB, free: 7.102 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.815e-05/0.3862, allocations: 322.8 kB / 482.6 MB, free: 6.777 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001147/0.3864, allocations: 60.56 kB / 482.7 MB, free: 6.715 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001345/0.3865, allocations: 127 kB / 482.8 MB, free: 6.57 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002278/0.3867, allocations: 81.12 kB / 482.9 MB, free: 6.492 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.409e-06/0.3867, allocations: 4 kB / 482.9 MB, free: 6.488 MB / 362.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.000627/0.3874, allocations: 305.5 kB / 483.2 MB, free: 6.184 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.207e-05/0.3874, allocations: 4 kB / 483.2 MB, free: 6.18 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.284e-06/0.3874, allocations: 4 kB / 483.2 MB, free: 6.176 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003031/0.3877, allocations: 73 kB / 483.2 MB, free: 6.102 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001759/0.3879, allocations: 39.92 kB / 483.3 MB, free: 6.062 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001759/0.3897, allocations: 1.723 MB / 485 MB, free: 4.223 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001427/0.3898, allocations: 20.72 kB / 485 MB, free: 4.203 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.351e-05/0.3899, allocations: 8 kB / 485 MB, free: 4.195 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 23 * 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 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.221e-05/0.39, allocations: 115.9 kB / 485.1 MB, free: 4.078 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.575e-05/0.39, allocations: 15.81 kB / 485.2 MB, free: 4.062 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006255/0.3906, allocations: 279 kB / 485.4 MB, free: 3.777 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.269e-06/0.3907, allocations: 4 kB / 485.4 MB, free: 3.773 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.718e-06/0.3907, allocations: 0 / 485.4 MB, free: 3.773 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.631e-06/0.3907, allocations: 7.922 kB / 485.4 MB, free: 3.766 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009706/0.3917, allocations: 0.651 MB / 486.1 MB, free: 3.062 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.3917, allocations: 0 / 486.1 MB, free: 3.062 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001414/0.3918, allocations: 23.98 kB / 486.1 MB, free: 3.039 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002488/0.3921, allocations: 69.41 kB / 486.2 MB, free: 2.969 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.911e-05/0.3921, allocations: 4 kB / 486.2 MB, free: 2.965 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001668/0.3938, allocations: 1.715 MB / 487.9 MB, free: 1.141 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.499e-06/0.3938, allocations: 3.906 kB / 487.9 MB, free: 1.137 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000689/0.3945, allocations: 434.4 kB / 488.3 MB, free: 0.6953 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0009159/0.3954, allocations: 0.889 MB / 489.2 MB, free: 15.79 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.552e-05/0.3955, allocations: 112.8 kB / 489.3 MB, free: 15.66 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.809e-05/0.3956, allocations: 4.125 kB / 489.3 MB, free: 15.65 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000128/0.3957, allocations: 0 / 489.3 MB, free: 15.65 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.322e-05/0.3957, allocations: 16.19 kB / 489.4 MB, free: 15.64 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.421e-05/0.3958, allocations: 8.75 kB / 489.4 MB, free: 15.63 MB / 378.7 MB Notification: Performance of sort global known variables: time 7.119e-05/0.3958, allocations: 115.2 kB / 489.5 MB, free: 15.52 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00109/0.3969, allocations: 87.69 kB / 489.6 MB, free: 15.43 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (constantSource.port_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 14 * 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 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001851/0.3971, allocations: 135.3 kB / 489.7 MB, free: 15.29 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005237/0.3977, allocations: 301.6 kB / 490 MB, free: 14.98 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.676e-06/0.3977, allocations: 4.375 kB / 490 MB, free: 14.98 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003051/0.398, allocations: 217.6 kB / 490.2 MB, free: 14.75 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002083/0.3982, allocations: 8.844 kB / 490.2 MB, free: 14.75 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008559/0.3991, allocations: 389.4 kB / 490.6 MB, free: 14.34 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003517/0.3994, allocations: 0.7842 MB / 491.4 MB, free: 13.54 MB / 378.7 MB Notification: Performance of SimCode: time 3.21e-07/0.3995, allocations: 0 / 491.4 MB, free: 13.54 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.mat does not exist to compare? outputFormat=mat