Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.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.LinearInductor,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor",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.00105/0.00105, allocations: 183.9 kB / 8.135 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.18/1.18, allocations: 221.4 MB / 229.9 MB, free: 3.02 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.0009032/0.0009032, allocations: 94.88 kB / 280.8 MB, free: 1.258 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08776/0.08869, allocations: 55.83 MB / 336.6 MB, free: 9.41 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1708/0.2595, allocations: 50.38 MB / 387 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09006/0.3497, allocations: 92.39 MB / 479.4 MB, free: 10.38 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002119/0.3499, allocations: 92.97 kB / 479.5 MB, free: 10.29 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 282 * Number of variables: 282 Notification: Performance of Generate backend data structure: time 0.1995/0.5494, allocations: 30.77 MB / 0.4983 GB, free: 90.95 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.129e-05/0.5495, allocations: 6.625 kB / 0.4983 GB, free: 90.95 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002667/0.5521, allocations: 424.6 kB / 0.4987 GB, free: 90.89 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006804/0.5528, allocations: 0.4885 MB / 0.4992 GB, free: 90.62 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.328e-05/0.5529, allocations: 33.38 kB / 0.4992 GB, free: 90.62 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001355/0.553, allocations: 65.19 kB / 0.4993 GB, free: 90.62 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001421/0.5545, allocations: 0.8471 MB / 0.5001 GB, free: 90.62 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001313/0.5558, allocations: 0.7487 MB / 0.5008 GB, free: 90.54 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.597e-05/0.5558, allocations: 7.406 kB / 0.5008 GB, free: 90.54 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.117e-05/0.5559, allocations: 0 / 0.5008 GB, free: 90.54 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.799e-05/0.5559, allocations: 25 kB / 0.5009 GB, free: 90.54 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005057/0.561, allocations: 3.543 MB / 0.5043 GB, free: 89.32 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005361/0.5616, allocations: 412.6 kB / 0.5047 GB, free: 89.29 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005023/0.5621, allocations: 381.8 kB / 0.5051 GB, free: 89.27 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.256e-05/0.5622, allocations: 103 kB / 0.5052 GB, free: 89.18 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005181/0.5627, allocations: 427.2 kB / 0.5056 GB, free: 89.06 MB / 378.7 MB Notification: Performance of pre-optimization done (n=96): time 2.224e-06/0.5627, allocations: 0 / 0.5056 GB, free: 89.06 MB / 378.7 MB Notification: Performance of matching and sorting (n=122): time 0.005733/0.5685, allocations: 3.028 MB / 0.5085 GB, free: 88.18 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.369e-05/0.5685, allocations: 227.9 kB / 0.5088 GB, free: 87.93 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002621/0.5688, allocations: 299.3 kB / 0.509 GB, free: 87.82 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.077e-05/0.5688, allocations: 25.7 kB / 0.5091 GB, free: 87.79 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001337/0.569, allocations: 388.8 kB / 0.5094 GB, free: 87.52 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001901/0.5692, allocations: 393 kB / 0.5098 GB, free: 87.26 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.902e-05/0.5692, allocations: 0 / 0.5098 GB, free: 87.26 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.062e-05/0.5693, allocations: 377.3 kB / 0.5102 GB, free: 86.95 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004516/0.5698, allocations: 292.3 kB / 0.5104 GB, free: 86.95 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005234/0.5703, allocations: 0.4988 MB / 0.5109 GB, free: 86.74 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000807/0.5711, allocations: 409.4 kB / 0.5113 GB, free: 86.72 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.5711, allocations: 1.406 kB / 0.5113 GB, free: 86.72 MB / 378.7 MB Notification: Performance of matching and sorting (n=155) (initialization): time 0.002144/0.5733, allocations: 1.206 MB / 0.5125 GB, free: 86.31 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.216e-05/0.5733, allocations: 7.781 kB / 0.5125 GB, free: 86.3 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.728e-06/0.5733, allocations: 3.969 kB / 0.5125 GB, free: 86.3 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007992/0.5741, allocations: 340.9 kB / 0.5128 GB, free: 86.2 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008914/0.575, allocations: 198.7 kB / 0.513 GB, free: 86.19 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005578/0.5806, allocations: 7.199 MB / 0.5201 GB, free: 80.1 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006881/0.5813, allocations: 41.36 kB / 0.5201 GB, free: 80.09 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.849e-05/0.5814, allocations: 41.91 kB / 0.5201 GB, free: 80.07 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,$PRE.rootMeanSquare.mean.y_last,rootMeanSquare.mean.y_last) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (111): * Single equations (assignments): 107 * 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%) 4,(1,100.0%) 2,(2,100.0%) 18,(2,100.0%) 18} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001587/0.5816, allocations: 124 kB / 0.5203 GB, free: 79.97 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.705e-05/0.5817, allocations: 66.62 kB / 0.5203 GB, free: 79.93 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00225/0.5839, allocations: 1.139 MB / 0.5214 GB, free: 79.48 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.989e-05/0.584, allocations: 16.59 kB / 0.5215 GB, free: 79.47 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.45e-05/0.584, allocations: 8.094 kB / 0.5215 GB, free: 79.47 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.362e-05/0.584, allocations: 5.016 kB / 0.5215 GB, free: 79.47 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003849/0.5879, allocations: 2.384 MB / 0.5238 GB, free: 78.23 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.26e-06/0.5879, allocations: 1.594 kB / 0.5238 GB, free: 78.23 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007937/0.5887, allocations: 145.3 kB / 0.5239 GB, free: 78.22 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008144/0.5895, allocations: 319.8 kB / 0.5242 GB, free: 78.11 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.407e-05/0.5896, allocations: 15.58 kB / 0.5243 GB, free: 78.11 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005276/0.5949, allocations: 6.932 MB / 0.531 GB, free: 71.35 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.017e-06/0.5949, allocations: 7.188 kB / 0.531 GB, free: 71.35 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00254/0.5974, allocations: 1.669 MB / 0.5327 GB, free: 69.73 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004279/0.6017, allocations: 3.375 MB / 0.536 GB, free: 66.42 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002611/0.602, allocations: 220.8 kB / 0.5362 GB, free: 66.21 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001181/0.6021, allocations: 4 kB / 0.5362 GB, free: 66.21 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005813/0.6027, allocations: 26.8 kB / 0.5362 GB, free: 66.19 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001098/0.6028, allocations: 60.38 kB / 0.5363 GB, free: 66.16 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.525e-05/0.6029, allocations: 35.94 kB / 0.5363 GB, free: 66.13 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0001879/0.6031, allocations: 229 kB / 0.5365 GB, free: 65.92 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001663/0.6048, allocations: 279.6 kB / 0.5368 GB, free: 65.65 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (coil.i,rootMeanSquare.mean.x,currentSensorQS.pin_p.reference.gamma) * Number of discrete variables: 2 ($whenCondition1,rootMeanSquare.mean.y_last) * Number of discrete states: 1 (rootMeanSquare.mean.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (82): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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,(2,100.0%) 18,(1,100.0%) 4,(2,100.0%) 16} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002593/0.605, allocations: 179.9 kB / 0.5369 GB, free: 65.5 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001822/0.6069, allocations: 1.373 MB / 0.5383 GB, free: 64.15 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.6069, allocations: 0 / 0.5383 GB, free: 64.15 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001135/0.608, allocations: 0.9542 MB / 0.5392 GB, free: 63.21 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003581/0.6084, allocations: 31.62 kB / 0.5392 GB, free: 63.19 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003079/0.6115, allocations: 1.471 MB / 0.5407 GB, free: 61.85 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006187/0.6121, allocations: 1.104 MB / 0.5418 GB, free: 60.86 MB / 378.7 MB Notification: Performance of SimCode: time 2.7e-07/0.6121, allocations: 0 / 0.5418 GB, free: 60.86 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-07 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor_res.mat does not exist to compare? outputFormat=mat