Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001317/0.001317, allocations: 203.1 kB / 8.542 MB, free: 1.82 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.233/1.233, allocations: 225.5 MB / 234.4 MB, free: 3.414 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008836/0.0008836, allocations: 95.47 kB / 286.3 MB, free: 5.238 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09088/0.09178, allocations: 56.91 MB / 343.2 MB, free: 8.574 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07919/0.171, allocations: 51.47 MB / 394.7 MB, free: 5.055 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2097/0.3807, allocations: 93.32 MB / 488 MB, free: 200 kB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000187/0.3809, allocations: 86.7 kB / 488.1 MB, free: 156 kB / 346.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.07748/0.4584, allocations: 32.13 MB / 0.508 GB, free: 4.883 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.851e-05/0.4585, allocations: 8 kB / 0.5081 GB, free: 4.875 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002998/0.4615, allocations: 438.2 kB / 0.5085 GB, free: 4.445 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009757/0.4625, allocations: 0.4885 MB / 0.509 GB, free: 3.91 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.754e-05/0.4626, allocations: 36 kB / 0.509 GB, free: 3.875 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001751/0.4628, allocations: 71.84 kB / 0.5091 GB, free: 3.805 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001727/0.4645, allocations: 0.8518 MB / 0.5099 GB, free: 2.949 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001511/0.466, allocations: 0.7517 MB / 0.5106 GB, free: 2.172 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.863e-05/0.4661, allocations: 4 kB / 0.5106 GB, free: 2.168 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.407e-05/0.4661, allocations: 3.906 kB / 0.5106 GB, free: 2.164 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.292e-05/0.4662, allocations: 24 kB / 0.5106 GB, free: 2.141 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006143/0.4723, allocations: 3.624 MB / 0.5142 GB, free: 14.31 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006378/0.473, allocations: 410.8 kB / 0.5146 GB, free: 13.9 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005994/0.4736, allocations: 371.2 kB / 0.5149 GB, free: 13.54 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002227/0.4738, allocations: 187 kB / 0.5151 GB, free: 13.32 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006229/0.4745, allocations: 428.4 kB / 0.5155 GB, free: 12.86 MB / 394.7 MB Notification: Performance of pre-optimization done (n=96): time 4.839e-06/0.4745, allocations: 0 / 0.5155 GB, free: 12.86 MB / 394.7 MB Notification: Performance of matching and sorting (n=122): time 0.00653/0.481, allocations: 3.045 MB / 0.5185 GB, free: 9.754 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.37e-05/0.4811, allocations: 218.6 kB / 0.5187 GB, free: 9.492 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003987/0.4815, allocations: 313.8 kB / 0.519 GB, free: 9.176 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.856e-05/0.4816, allocations: 29.69 kB / 0.519 GB, free: 9.141 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002272/0.4818, allocations: 383.6 kB / 0.5194 GB, free: 8.758 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002721/0.4821, allocations: 402 kB / 0.5198 GB, free: 8.359 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.809e-05/0.4822, allocations: 4 kB / 0.5198 GB, free: 8.355 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001296/0.4823, allocations: 370.8 kB / 0.5201 GB, free: 7.984 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005244/0.4828, allocations: 294.6 kB / 0.5204 GB, free: 7.695 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000645/0.4835, allocations: 0.4927 MB / 0.5209 GB, free: 7.133 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009089/0.4844, allocations: 408.2 kB / 0.5213 GB, free: 6.734 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.147e-06/0.4844, allocations: 0 / 0.5213 GB, free: 6.734 MB / 394.7 MB Notification: Performance of matching and sorting (n=155) (initialization): time 0.002473/0.4869, allocations: 1.216 MB / 0.5225 GB, free: 5.504 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.301e-05/0.4869, allocations: 8 kB / 0.5225 GB, free: 5.496 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.705e-05/0.487, allocations: 8 kB / 0.5225 GB, free: 5.488 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009376/0.4879, allocations: 335 kB / 0.5228 GB, free: 5.152 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000971/0.4889, allocations: 199.7 kB / 0.523 GB, free: 4.957 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007198/0.4961, allocations: 7.199 MB / 0.53 GB, free: 13.3 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007288/0.4968, allocations: 27.86 kB / 0.5301 GB, free: 13.27 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.96e-05/0.4969, allocations: 48.06 kB / 0.5301 GB, free: 13.23 MB / 410.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.0001872/0.4971, allocations: 126.4 kB / 0.5302 GB, free: 13.1 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001251/0.4973, allocations: 71.23 kB / 0.5303 GB, free: 13.03 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00251/0.4998, allocations: 1.127 MB / 0.5314 GB, free: 11.88 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.204e-05/0.4998, allocations: 19.94 kB / 0.5314 GB, free: 11.86 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.22e-05/0.4998, allocations: 8 kB / 0.5314 GB, free: 11.85 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.457e-05/0.4999, allocations: 7.891 kB / 0.5314 GB, free: 11.84 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003983/0.5039, allocations: 2.384 MB / 0.5338 GB, free: 9.391 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.528e-06/0.5039, allocations: 0 / 0.5338 GB, free: 9.391 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008074/0.5047, allocations: 147.9 kB / 0.5339 GB, free: 9.246 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009111/0.5056, allocations: 338.9 kB / 0.5342 GB, free: 8.906 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.939e-05/0.5057, allocations: 4 kB / 0.5342 GB, free: 8.902 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006702/0.5124, allocations: 6.935 MB / 0.541 GB, free: 1.512 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.729e-06/0.5124, allocations: 7.938 kB / 0.541 GB, free: 1.504 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002938/0.5154, allocations: 1.663 MB / 0.5426 GB, free: 15.78 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004876/0.5203, allocations: 3.38 MB / 0.5459 GB, free: 12.33 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003154/0.5206, allocations: 220.2 kB / 0.5461 GB, free: 12.1 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001141/0.5207, allocations: 0 / 0.5461 GB, free: 12.1 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005704/0.5213, allocations: 25.39 kB / 0.5462 GB, free: 12.07 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001396/0.5214, allocations: 68.8 kB / 0.5462 GB, free: 12.01 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.409e-05/0.5215, allocations: 32 kB / 0.5463 GB, free: 11.98 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0002485/0.5218, allocations: 232.6 kB / 0.5465 GB, free: 11.75 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001736/0.5235, allocations: 287.9 kB / 0.5468 GB, free: 11.47 MB / 426.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.0003239/0.5239, allocations: 188.6 kB / 0.5469 GB, free: 11.27 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002131/0.526, allocations: 1.368 MB / 0.5483 GB, free: 9.867 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.574e-06/0.526, allocations: 4.188 kB / 0.5483 GB, free: 9.863 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00133/0.5274, allocations: 0.9522 MB / 0.5492 GB, free: 8.871 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00034/0.5277, allocations: 28.19 kB / 0.5492 GB, free: 8.848 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003469/0.5312, allocations: 1.478 MB / 0.5507 GB, free: 7.328 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008275/0.532, allocations: 1.108 MB / 0.5518 GB, free: 6.195 MB / 426.7 MB Notification: Performance of SimCode: time 3.1e-07/0.532, allocations: 7.938 kB / 0.5518 GB, free: 6.188 MB / 426.7 MB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-07 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe 2>&1)