Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.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.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_CylinderLeakage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_CylinderLeakage",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.001688/0.001688, allocations: 179.7 kB / 8.474 MB, free: 1.879 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.129/1.129, allocations: 205.2 MB / 214.1 MB, free: 13.93 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009474/0.0009474, allocations: 83.3 kB / 262.1 MB, free: 13.56 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08544/0.08642, allocations: 53 MB / 315.1 MB, free: 8.508 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1709/0.2573, allocations: 47.56 MB / 362.6 MB, free: 45.93 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07948/0.3368, allocations: 81.25 MB / 443.9 MB, free: 4.695 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002257/0.3371, allocations: 87.94 kB / 444 MB, free: 4.609 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.06327/0.4004, allocations: 26.51 MB / 470.5 MB, free: 9.824 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.362e-05/0.4004, allocations: 8 kB / 470.5 MB, free: 9.816 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001908/0.4024, allocations: 270.7 kB / 470.8 MB, free: 9.551 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00023/0.4026, allocations: 261.9 kB / 471 MB, free: 9.254 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.004e-05/0.4027, allocations: 32 kB / 471.1 MB, free: 9.223 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001353/0.4028, allocations: 56 kB / 471.1 MB, free: 9.168 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001349/0.4042, allocations: 0.7069 MB / 471.8 MB, free: 8.461 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001407/0.4056, allocations: 0.7705 MB / 472.6 MB, free: 7.676 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.54e-05/0.4056, allocations: 3.906 kB / 472.6 MB, free: 7.672 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.452e-05/0.4057, allocations: 0.75 kB / 472.6 MB, free: 7.672 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.169e-05/0.4057, allocations: 24 kB / 472.6 MB, free: 7.648 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005191/0.4109, allocations: 3.259 MB / 475.9 MB, free: 4.223 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001629/0.4126, allocations: 0.7796 MB / 476.7 MB, free: 3.426 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007143/0.4133, allocations: 404.8 kB / 477 MB, free: 3.027 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001198/0.4134, allocations: 97.86 kB / 477.1 MB, free: 2.91 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.622e-05/0.4135, allocations: 43.41 kB / 477.2 MB, free: 2.859 MB / 362.7 MB Notification: Performance of pre-optimization done (n=87): time 2.124e-06/0.4135, allocations: 0 / 477.2 MB, free: 2.859 MB / 362.7 MB Notification: Performance of matching and sorting (n=87): time 0.001551/0.415, allocations: 0.6548 MB / 477.8 MB, free: 2.184 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.161e-05/0.4151, allocations: 93.8 kB / 477.9 MB, free: 2.074 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003071/0.4154, allocations: 275.2 kB / 478.2 MB, free: 1.797 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.981e-05/0.4154, allocations: 25.7 kB / 478.2 MB, free: 1.766 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002048/0.4157, allocations: 374.7 kB / 478.6 MB, free: 1.391 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002051/0.4159, allocations: 291.6 kB / 478.9 MB, free: 1.102 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.907e-05/0.4159, allocations: 0 / 478.9 MB, free: 1.102 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000134/0.4161, allocations: 358.8 kB / 479.2 MB, free: 0.7422 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004353/0.4165, allocations: 234.6 kB / 479.5 MB, free: 0.5117 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005806/0.4171, allocations: 428.9 kB / 479.9 MB, free: 16 kB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000897/0.418, allocations: 338.8 kB / 480.2 MB, free: 15.68 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.574e-06/0.418, allocations: 4 kB / 480.2 MB, free: 15.68 MB / 378.7 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.001885/0.4199, allocations: 0.882 MB / 481.1 MB, free: 14.78 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.298e-05/0.4199, allocations: 4 kB / 481.1 MB, free: 14.78 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.206e-05/0.42, allocations: 8.5 kB / 481.1 MB, free: 14.77 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003811/0.4203, allocations: 123.3 kB / 481.2 MB, free: 14.64 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009485/0.4213, allocations: 211.7 kB / 481.4 MB, free: 14.43 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003917/0.4252, allocations: 5.293 MB / 486.7 MB, free: 8.676 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005948/0.4258, allocations: 74.97 kB / 486.8 MB, free: 8.602 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.185e-05/0.4259, allocations: 36 kB / 486.8 MB, free: 8.566 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (120): * Single equations (assignments): 116 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001619/0.4261, allocations: 128.6 kB / 487 MB, free: 8.434 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000119/0.4262, allocations: 55.36 kB / 487 MB, free: 8.379 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001802/0.428, allocations: 0.7937 MB / 487.8 MB, free: 7.559 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.928e-06/0.4281, allocations: 12 kB / 487.8 MB, free: 7.547 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.725e-06/0.4281, allocations: 4 kB / 487.8 MB, free: 7.543 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.978e-06/0.4281, allocations: 9.391 kB / 487.8 MB, free: 7.535 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004007/0.4321, allocations: 2.562 MB / 490.4 MB, free: 4.688 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.538e-06/0.4321, allocations: 12.03 kB / 490.4 MB, free: 4.676 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006442/0.4328, allocations: 143.7 kB / 490.5 MB, free: 4.535 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003032/0.4331, allocations: 111.4 kB / 490.7 MB, free: 4.414 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.071e-05/0.4331, allocations: 19.91 kB / 490.7 MB, free: 4.395 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003316/0.4365, allocations: 5.029 MB / 495.7 MB, free: 14.91 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.939e-06/0.4365, allocations: 15.84 kB / 495.7 MB, free: 14.89 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002243/0.4387, allocations: 1.702 MB / 497.4 MB, free: 12.86 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002789/0.4415, allocations: 2.377 MB / 499.8 MB, free: 10.17 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001227/0.4417, allocations: 148.2 kB / 499.9 MB, free: 10 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001013/0.4418, allocations: 11.98 kB / 500 MB, free: 9.992 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004842/0.4423, allocations: 12 kB / 500 MB, free: 9.98 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.987e-05/0.4424, allocations: 68.28 kB / 0.4883 GB, free: 9.914 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.103e-05/0.4424, allocations: 28 kB / 0.4883 GB, free: 9.887 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0001944/0.4426, allocations: 208.6 kB / 0.4885 GB, free: 9.684 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001525/0.4442, allocations: 239.2 kB / 0.4888 GB, free: 9.449 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 33 * Number of states: 1 (referenceSensor.port.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (78): * Single equations (assignments): 74 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002509/0.4444, allocations: 164 kB / 0.4889 GB, free: 9.277 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001363/0.4458, allocations: 1.027 MB / 0.4899 GB, free: 8.215 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.4458, allocations: 4.125 kB / 0.4899 GB, free: 8.211 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007834/0.4466, allocations: 0.7054 MB / 0.4906 GB, free: 7.469 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004262/0.4471, allocations: 48.47 kB / 0.4907 GB, free: 7.422 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002434/0.4495, allocations: 1.154 MB / 0.4918 GB, free: 6.141 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007673/0.4503, allocations: 1.002 MB / 0.4928 GB, free: 5.113 MB / 394.7 MB Notification: Performance of SimCode: time 3.31e-07/0.4503, allocations: 4 kB / 0.4928 GB, free: 5.109 MB / 394.7 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_CylinderLeakage_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_CylinderLeakage.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage_res.mat does not exist to compare? outputFormat=mat