Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.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.NonLinearInductor,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_NonLinearInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_NonLinearInductor",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.001181/0.001181, allocations: 194.9 kB / 8.538 MB, free: 1.801 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.209/1.209, allocations: 225.5 MB / 234.4 MB, free: 3.41 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009163/0.0009163, allocations: 93.19 kB / 286.3 MB, free: 5.289 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09831/0.09926, allocations: 56.9 MB / 343.2 MB, free: 8.656 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09051/0.1898, allocations: 51.48 MB / 394.7 MB, free: 5.125 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2448/0.4347, allocations: 96.1 MB / 490.8 MB, free: 13.22 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002318/0.435, allocations: 81.27 kB / 490.9 MB, free: 13.18 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: 371 * Number of variables: 371 Notification: Performance of Generate backend data structure: time 0.1002/0.5352, allocations: 39.43 MB / 0.5179 GB, free: 10.87 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.327e-05/0.5353, allocations: 8 kB / 0.5179 GB, free: 10.86 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003672/0.5389, allocations: 0.5678 MB / 0.5184 GB, free: 10.29 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001564/0.5405, allocations: 0.7659 MB / 0.5192 GB, free: 9.484 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001382/0.5407, allocations: 92.62 kB / 0.5193 GB, free: 9.387 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002873/0.541, allocations: 95.89 kB / 0.5194 GB, free: 9.293 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002375/0.5434, allocations: 1.099 MB / 0.5204 GB, free: 8.191 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002224/0.5456, allocations: 1.036 MB / 0.5215 GB, free: 7.137 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.01e-05/0.5457, allocations: 4 kB / 0.5215 GB, free: 7.133 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001322/0.5458, allocations: 7.891 kB / 0.5215 GB, free: 7.125 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.021e-05/0.5458, allocations: 36 kB / 0.5215 GB, free: 7.09 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008822/0.5547, allocations: 4.787 MB / 0.5262 GB, free: 2.094 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00094/0.5556, allocations: 0.5418 MB / 0.5267 GB, free: 1.551 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008197/0.5565, allocations: 483.9 kB / 0.5272 GB, free: 1.074 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002071/0.5567, allocations: 191.2 kB / 0.5274 GB, free: 0.8477 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001007/0.5577, allocations: 0.6085 MB / 0.5279 GB, free: 208 kB / 394.7 MB Notification: Performance of pre-optimization done (n=132): time 3.878e-06/0.5577, allocations: 4 kB / 0.528 GB, free: 204 kB / 394.7 MB Notification: Performance of matching and sorting (n=163): time 0.011/0.5688, allocations: 4.33 MB / 0.5322 GB, free: 11.8 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001014/0.5689, allocations: 238.9 kB / 0.5324 GB, free: 11.52 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006886/0.5696, allocations: 0.5034 MB / 0.5329 GB, free: 11.02 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 9.517e-05/0.5697, allocations: 29.7 kB / 0.5329 GB, free: 10.98 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003652/0.5701, allocations: 499.8 kB / 0.5334 GB, free: 10.48 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004044/0.5705, allocations: 0.5118 MB / 0.5339 GB, free: 9.961 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.555e-05/0.5706, allocations: 4 kB / 0.5339 GB, free: 9.957 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001695/0.5707, allocations: 410.7 kB / 0.5343 GB, free: 9.547 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007779/0.5715, allocations: 436 kB / 0.5347 GB, free: 9.121 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000942/0.5725, allocations: 0.7522 MB / 0.5354 GB, free: 8.242 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001152/0.5736, allocations: 0.5549 MB / 0.536 GB, free: 7.688 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.923e-06/0.5736, allocations: 4 kB / 0.536 GB, free: 7.684 MB / 410.7 MB Notification: Performance of matching and sorting (n=212) (initialization): time 0.004196/0.5779, allocations: 1.762 MB / 0.5377 GB, free: 5.902 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.731e-05/0.5779, allocations: 8 kB / 0.5377 GB, free: 5.895 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.657e-05/0.5779, allocations: 10.5 kB / 0.5377 GB, free: 5.887 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001554/0.5795, allocations: 466.8 kB / 0.5382 GB, free: 5.422 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001287/0.5808, allocations: 291.6 kB / 0.5385 GB, free: 5.137 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009393/0.5902, allocations: 8.099 MB / 0.5464 GB, free: 12.58 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001209/0.5914, allocations: 48.03 kB / 0.5464 GB, free: 12.53 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001609/0.5916, allocations: 75.42 kB / 0.5465 GB, free: 12.46 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * Number of states: 0 () * Number of discrete variables: 18 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.fundamentalWavePermabilitySensor.harmonicPotential.mean1.y_last,fundamentalWavePermabilitySensor.harmonicPotential.mean1.y_last,$PRE.fundamentalWavePermabilitySensor.harmonicPotential.mean2.y_last,fundamentalWavePermabilitySensor.harmonicPotential.mean2.y_last,$PRE.fundamentalWavePermabilitySensor.harmonicFlux.mean1.y_last,fundamentalWavePermabilitySensor.harmonicFlux.mean1.y_last,$PRE.fundamentalWavePermabilitySensor.harmonicFlux.mean2.y_last,fundamentalWavePermabilitySensor.harmonicFlux.mean2.y_last,$PRE.rootMeanSquare.mean1.y_last,rootMeanSquare.mean1.y_last,$PRE.rootMeanSquare.mean2.y_last,rootMeanSquare.mean2.y_last) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (158): * Single equations (assignments): 154 * 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: 3 {(1,100.0%) 9,(1,100.0%) 19,(2,100.0%) 18} * Non-linear torn systems: 1 {1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0002873/0.5919, allocations: 152.5 kB / 0.5466 GB, free: 12.31 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001717/0.5921, allocations: 106.7 kB / 0.5467 GB, free: 12.2 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00416/0.5962, allocations: 1.642 MB / 0.5483 GB, free: 10.54 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.961e-05/0.5963, allocations: 19.91 kB / 0.5484 GB, free: 10.52 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.371e-05/0.5963, allocations: 12 kB / 0.5484 GB, free: 10.5 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.707e-05/0.5963, allocations: 11.91 kB / 0.5484 GB, free: 10.49 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00613/0.6024, allocations: 3.27 MB / 0.5516 GB, free: 7.152 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.471e-06/0.6025, allocations: 0 / 0.5516 GB, free: 7.152 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001134/0.6036, allocations: 211.8 kB / 0.5518 GB, free: 6.945 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001505/0.6051, allocations: 443 kB / 0.5522 GB, free: 6.5 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001073/0.6052, allocations: 19.98 kB / 0.5522 GB, free: 6.48 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008842/0.6141, allocations: 7.829 MB / 0.5599 GB, free: 14.2 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.272e-06/0.6141, allocations: 4 kB / 0.5599 GB, free: 14.19 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004951/0.6191, allocations: 2.384 MB / 0.5622 GB, free: 11.74 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.008098/0.6272, allocations: 4.762 MB / 0.5668 GB, free: 6.914 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006054/0.6278, allocations: 303.5 kB / 0.5671 GB, free: 6.598 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001891/0.628, allocations: 4 kB / 0.5671 GB, free: 6.594 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008656/0.6289, allocations: 51.95 kB / 0.5672 GB, free: 6.543 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001886/0.6291, allocations: 93.11 kB / 0.5673 GB, free: 6.453 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000115/0.6292, allocations: 55.97 kB / 0.5673 GB, free: 6.398 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.0004899/0.6297, allocations: 383.2 kB / 0.5677 GB, free: 6.02 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002244/0.632, allocations: 371.9 kB / 0.568 GB, free: 5.656 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 8 (coil.i,fundamentalWavePermabilitySensor.harmonicPotential.mean1.x,fundamentalWavePermabilitySensor.harmonicPotential.mean2.x,fundamentalWavePermabilitySensor.harmonicFlux.mean1.x,fundamentalWavePermabilitySensor.harmonicFlux.mean2.x,rootMeanSquare.mean1.x,rootMeanSquare.mean2.x,currentSensorQS.pin_p.reference.gamma) * Number of discrete variables: 12 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,fundamentalWavePermabilitySensor.harmonicPotential.mean1.y_last,fundamentalWavePermabilitySensor.harmonicPotential.mean2.y_last,fundamentalWavePermabilitySensor.harmonicFlux.mean1.y_last,fundamentalWavePermabilitySensor.harmonicFlux.mean2.y_last,rootMeanSquare.mean1.y_last,rootMeanSquare.mean2.y_last) * Number of discrete states: 6 (fundamentalWavePermabilitySensor.harmonicPotential.mean1.x,fundamentalWavePermabilitySensor.harmonicPotential.mean2.x,fundamentalWavePermabilitySensor.harmonicFlux.mean1.x,fundamentalWavePermabilitySensor.harmonicFlux.mean2.x,rootMeanSquare.mean1.x,rootMeanSquare.mean2.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (113): * Single equations (assignments): 103 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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: 3 {(1,100.0%) 9,(2,100.0%) 18,(2,100.0%) 16} * Non-linear torn systems: 1 {1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004026/0.6324, allocations: 205.4 kB / 0.5682 GB, free: 5.449 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002771/0.6352, allocations: 1.731 MB / 0.5699 GB, free: 3.684 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.137e-06/0.6352, allocations: 3.906 kB / 0.5699 GB, free: 3.68 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001705/0.6369, allocations: 1.16 MB / 0.5711 GB, free: 2.484 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005099/0.6374, allocations: 63.36 kB / 0.5711 GB, free: 2.43 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005005/0.6425, allocations: 2.142 MB / 0.5732 GB, free: 236 kB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.1189/0.7614, allocations: 1.317 MB / 0.5745 GB, free: 149.5 MB / 442.7 MB Notification: Performance of SimCode: time 8.42e-07/0.7614, allocations: 0 / 0.5745 GB, free: 149.5 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_NonLinearInductor_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-07 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_NonLinearInductor.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe 2>&1)