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: translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|coil.Phi|coil.i|fundamentalWavePermabilitySensor.harmonicFlux.mean1.x|fundamentalWavePermabilitySensor.harmonicFlux.mean2.x|fundamentalWavePermabilitySensor.harmonicPotential.mean1.x|fundamentalWavePermabilitySensor.harmonicPotential.mean2.x|r_mLeak.port_p.Phi|rootMeanSquare.mean1.x|rootMeanSquare.mean2.x|sourceQS.pin_p.reference.gamma",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor") translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|coil.Phi|coil.i|fundamentalWavePermabilitySensor.harmonicFlux.mean1.x|fundamentalWavePermabilitySensor.harmonicFlux.mean2.x|fundamentalWavePermabilitySensor.harmonicPotential.mean1.x|fundamentalWavePermabilitySensor.harmonicPotential.mean2.x|r_mLeak.port_p.Phi|rootMeanSquare.mean1.x|rootMeanSquare.mean2.x|sourceQS.pin_p.reference.gamma",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor") [: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.001167/0.001167, allocations: 203.5 kB / 8.541 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.339/1.339, allocations: 225.5 MB / 234.4 MB, free: 14.95 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001002/0.001002, allocations: 101.9 kB / 286.4 MB, free: 12.62 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 9.638e-06/9.668e-06, allocations: 0 / 343.1 MB, free: 3.801 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3151/0.3151, allocations: 51.46 MB / 394.6 MB, free: 33.17 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1278/0.443, allocations: 96.1 MB / 490.7 MB, free: 0.8945 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002678/0.4433, allocations: 83.95 kB / 490.8 MB, free: 0.8125 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.3045/0.7479, allocations: 37.76 MB / 0.5162 GB, free: 90.38 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.666e-05/0.748, allocations: 31.12 kB / 0.5162 GB, free: 90.38 MB / 378.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.004343/0.7523, allocations: 1.637 MB / 0.5178 GB, free: 89.02 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.336e-05/0.7524, allocations: 12.03 kB / 0.5178 GB, free: 89 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003502/0.7559, allocations: 0.5685 MB / 0.5184 GB, free: 88.45 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001428/0.7573, allocations: 0.7574 MB / 0.5191 GB, free: 87.66 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001123/0.7575, allocations: 92.62 kB / 0.5192 GB, free: 87.57 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001779/0.7577, allocations: 95.89 kB / 0.5193 GB, free: 87.47 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001914/0.7596, allocations: 1.099 MB / 0.5203 GB, free: 86.37 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001738/0.7613, allocations: 1.04 MB / 0.5214 GB, free: 85.31 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.845e-05/0.7614, allocations: 4 kB / 0.5214 GB, free: 85.31 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001067/0.7615, allocations: 7.984 kB / 0.5214 GB, free: 85.3 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.616e-05/0.7615, allocations: 35.91 kB / 0.5214 GB, free: 85.27 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007264/0.7688, allocations: 4.788 MB / 0.5261 GB, free: 80.31 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007278/0.7696, allocations: 0.5456 MB / 0.5266 GB, free: 79.76 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006815/0.7703, allocations: 491.6 kB / 0.5271 GB, free: 79.28 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001687/0.7704, allocations: 190.9 kB / 0.5273 GB, free: 79.06 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008302/0.7713, allocations: 0.6046 MB / 0.5279 GB, free: 78.42 MB / 378.7 MB Notification: Performance of pre-optimization done (n=132): time 4.038e-06/0.7713, allocations: 8 kB / 0.5279 GB, free: 78.41 MB / 378.7 MB Notification: Performance of matching and sorting (n=163): time 0.009414/0.7807, allocations: 4.33 MB / 0.5321 GB, free: 74.04 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.109e-05/0.7808, allocations: 234.9 kB / 0.5323 GB, free: 73.76 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006594/0.7815, allocations: 0.5074 MB / 0.5328 GB, free: 73.25 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.6e-05/0.7816, allocations: 25.7 kB / 0.5328 GB, free: 73.21 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003082/0.7819, allocations: 499.8 kB / 0.5333 GB, free: 72.71 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002851/0.7822, allocations: 0.5079 MB / 0.5338 GB, free: 72.2 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.618e-05/0.7823, allocations: 0 / 0.5338 GB, free: 72.2 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001356/0.7824, allocations: 414.7 kB / 0.5342 GB, free: 71.79 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000683/0.7831, allocations: 432 kB / 0.5346 GB, free: 71.36 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008286/0.7839, allocations: 0.756 MB / 0.5354 GB, free: 70.48 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001113/0.7851, allocations: 0.5627 MB / 0.5359 GB, free: 69.91 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.418e-06/0.7851, allocations: 0 / 0.5359 GB, free: 69.91 MB / 378.7 MB Notification: Performance of matching and sorting (n=212) (initialization): time 0.003853/0.7889, allocations: 1.769 MB / 0.5376 GB, free: 68.14 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.452e-05/0.789, allocations: 4 kB / 0.5376 GB, free: 68.13 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.377e-05/0.789, allocations: 8 kB / 0.5376 GB, free: 68.12 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001643/0.7907, allocations: 461.6 kB / 0.5381 GB, free: 67.67 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001272/0.792, allocations: 295.5 kB / 0.5384 GB, free: 67.38 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008722/0.8007, allocations: 8.082 MB / 0.5463 GB, free: 58.86 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001481/0.8022, allocations: 59.92 kB / 0.5463 GB, free: 58.8 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000276/0.8025, allocations: 67.98 kB / 0.5464 GB, free: 58.73 MB / 378.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.0004354/0.803, allocations: 144 kB / 0.5465 GB, free: 58.59 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002904/0.8033, allocations: 114.7 kB / 0.5466 GB, free: 58.47 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004004/0.8073, allocations: 1.646 MB / 0.5482 GB, free: 56.81 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.754e-05/0.8073, allocations: 16 kB / 0.5483 GB, free: 56.79 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.814e-05/0.8073, allocations: 11.91 kB / 0.5483 GB, free: 56.78 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.604e-05/0.8073, allocations: 7.969 kB / 0.5483 GB, free: 56.77 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006065/0.8134, allocations: 3.268 MB / 0.5515 GB, free: 53.48 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.805e-06/0.8135, allocations: 4 kB / 0.5515 GB, free: 53.48 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001053/0.8145, allocations: 215.8 kB / 0.5517 GB, free: 53.27 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001413/0.816, allocations: 451 kB / 0.5521 GB, free: 52.82 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001218/0.8161, allocations: 19.98 kB / 0.5521 GB, free: 52.8 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007753/0.8239, allocations: 7.82 MB / 0.5598 GB, free: 44.53 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.752e-06/0.8239, allocations: 0 / 0.5598 GB, free: 44.53 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005005/0.8289, allocations: 2.392 MB / 0.5621 GB, free: 42.09 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006468/0.8296, allocations: 295.6 kB / 0.5624 GB, free: 41.79 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003087/0.8299, allocations: 11.98 kB / 0.5624 GB, free: 41.77 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001039/0.831, allocations: 43.97 kB / 0.5624 GB, free: 41.73 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001995/0.8312, allocations: 93.16 kB / 0.5625 GB, free: 41.64 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001038/0.8313, allocations: 47.98 kB / 0.5626 GB, free: 41.59 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0005508/0.8319, allocations: 391.1 kB / 0.5629 GB, free: 41.21 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00189/0.8338, allocations: 355.9 kB / 0.5633 GB, free: 40.86 MB / 378.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.0004458/0.8342, allocations: 211.8 kB / 0.5635 GB, free: 40.64 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002775/0.837, allocations: 1.727 MB / 0.5652 GB, free: 38.89 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.32e-06/0.837, allocations: 7.906 kB / 0.5652 GB, free: 38.88 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001636/0.8387, allocations: 1.168 MB / 0.5663 GB, free: 37.67 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007413/0.8394, allocations: 59.94 kB / 0.5664 GB, free: 37.62 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005396/0.8448, allocations: 2.112 MB / 0.5684 GB, free: 35.47 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001161/0.846, allocations: 1.299 MB / 0.5697 GB, free: 34.14 MB / 378.7 MB Notification: Performance of SimCode: time 1.122e-06/0.8461, allocations: 4 kB / 0.5697 GB, free: 34.13 MB / 378.7 MB Notification: Performance of Templates: time 0.03134/0.8774, allocations: 19.06 MB / 0.5883 GB, free: 15.14 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.makefile (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 & ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/NonLinearInductor/NonLinearInductor.csv","../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches