Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.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: 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_4.0.0_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_4.0.0_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 4.0.0+maint.om/package.mo): time 0.0011/0.001101, allocations: 181.5 kB / 8.131 MB, free: 2.199 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.194/1.194, allocations: 221.4 MB / 229.9 MB, free: 3.008 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.0009165/0.0009165, allocations: 90.33 kB / 280.8 MB, free: 1.23 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.334e-06/7.444e-06, allocations: 0 / 336.5 MB, free: 9.496 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2436/0.2436, allocations: 50.39 MB / 386.9 MB, free: 37.99 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1022/0.3458, allocations: 95.17 MB / 482.1 MB, free: 7.602 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001951/0.346, allocations: 79.95 kB / 482.2 MB, free: 7.523 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.2548/0.6009, allocations: 36.43 MB / 0.5064 GB, free: 92 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.491e-05/0.6009, allocations: 25.34 kB / 0.5065 GB, free: 92 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.003612/0.6046, allocations: 1.615 MB / 0.508 GB, free: 91.21 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.846e-05/0.6046, allocations: 7.188 kB / 0.508 GB, free: 91.21 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002562/0.6072, allocations: 477.9 kB / 0.5085 GB, free: 91.12 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001123/0.6083, allocations: 0.7409 MB / 0.5092 GB, free: 90.82 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000104/0.6084, allocations: 89.72 kB / 0.5093 GB, free: 90.78 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001641/0.6086, allocations: 100.2 kB / 0.5094 GB, free: 90.78 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001803/0.6104, allocations: 1.097 MB / 0.5105 GB, free: 90.77 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001744/0.6122, allocations: 1.042 MB / 0.5115 GB, free: 90.69 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.357e-05/0.6122, allocations: 7.875 kB / 0.5115 GB, free: 90.69 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001061/0.6123, allocations: 7.781 kB / 0.5115 GB, free: 90.69 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.546e-05/0.6124, allocations: 38.94 kB / 0.5115 GB, free: 90.68 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00682/0.6192, allocations: 4.682 MB / 0.5161 GB, free: 88.21 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007235/0.62, allocations: 0.5401 MB / 0.5166 GB, free: 87.96 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008905/0.6209, allocations: 487.7 kB / 0.5171 GB, free: 87.77 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001383/0.621, allocations: 114.6 kB / 0.5172 GB, free: 87.67 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001113/0.6221, allocations: 0.6079 MB / 0.5178 GB, free: 87.36 MB / 378.7 MB Notification: Performance of pre-optimization done (n=132): time 3.657e-06/0.6221, allocations: 0 / 0.5178 GB, free: 87.36 MB / 378.7 MB Notification: Performance of matching and sorting (n=163): time 0.009321/0.6315, allocations: 4.302 MB / 0.522 GB, free: 84.46 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.593e-05/0.6316, allocations: 230.9 kB / 0.5222 GB, free: 84.19 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005375/0.6321, allocations: 489.5 kB / 0.5227 GB, free: 83.75 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.157e-05/0.6322, allocations: 37.44 kB / 0.5227 GB, free: 83.71 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002694/0.6325, allocations: 487.7 kB / 0.5232 GB, free: 83.28 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002841/0.6328, allocations: 0.517 MB / 0.5237 GB, free: 82.8 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.709e-05/0.6328, allocations: 0 / 0.5237 GB, free: 82.8 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001128/0.6329, allocations: 417.1 kB / 0.5241 GB, free: 82.42 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006407/0.6336, allocations: 427.8 kB / 0.5245 GB, free: 82 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007738/0.6344, allocations: 0.7394 MB / 0.5252 GB, free: 81.16 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001078/0.6355, allocations: 0.5607 MB / 0.5258 GB, free: 80.66 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.18e-06/0.6355, allocations: 0 / 0.5258 GB, free: 80.66 MB / 378.7 MB Notification: Performance of matching and sorting (n=212) (initialization): time 0.003584/0.6391, allocations: 1.755 MB / 0.5275 GB, free: 79.08 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.744e-05/0.6391, allocations: 4 kB / 0.5275 GB, free: 79.07 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.821e-05/0.6391, allocations: 8 kB / 0.5275 GB, free: 79.07 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001406/0.6405, allocations: 480.1 kB / 0.528 GB, free: 78.67 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001193/0.6417, allocations: 285 kB / 0.5282 GB, free: 78.43 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007721/0.6495, allocations: 8.089 MB / 0.5361 GB, free: 70.31 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00132/0.6508, allocations: 51.42 kB / 0.5362 GB, free: 70.27 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001064/0.6509, allocations: 63.98 kB / 0.5362 GB, free: 70.21 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.0003067/0.6513, allocations: 166.5 kB / 0.5364 GB, free: 70.05 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001603/0.6514, allocations: 107.1 kB / 0.5365 GB, free: 69.95 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003721/0.6552, allocations: 1.631 MB / 0.5381 GB, free: 68.55 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.416e-05/0.6552, allocations: 16 kB / 0.5381 GB, free: 68.54 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.292e-05/0.6552, allocations: 11.94 kB / 0.5381 GB, free: 68.52 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.12e-05/0.6552, allocations: 12.19 kB / 0.5381 GB, free: 68.52 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006832/0.6621, allocations: 3.263 MB / 0.5413 GB, free: 65.52 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.797e-06/0.6621, allocations: 4 kB / 0.5413 GB, free: 65.52 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001315/0.6634, allocations: 207.8 kB / 0.5415 GB, free: 65.32 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001446/0.6649, allocations: 443.4 kB / 0.5419 GB, free: 64.87 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.905e-05/0.665, allocations: 19.92 kB / 0.542 GB, free: 64.85 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007333/0.6723, allocations: 7.826 MB / 0.5496 GB, free: 56.6 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.45e-06/0.6724, allocations: 0 / 0.5496 GB, free: 56.6 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004404/0.6768, allocations: 2.38 MB / 0.5519 GB, free: 54.17 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000513/0.6773, allocations: 299.6 kB / 0.5522 GB, free: 53.86 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001725/0.6775, allocations: 8 kB / 0.5522 GB, free: 53.85 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008093/0.6783, allocations: 47.95 kB / 0.5523 GB, free: 53.8 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001742/0.6785, allocations: 91.73 kB / 0.5524 GB, free: 53.71 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.023e-05/0.6786, allocations: 47.98 kB / 0.5524 GB, free: 53.67 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0004449/0.6791, allocations: 367.2 kB / 0.5528 GB, free: 53.3 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001536/0.6806, allocations: 348.2 kB / 0.5531 GB, free: 52.96 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.0003647/0.681, allocations: 200.7 kB / 0.5533 GB, free: 52.77 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002522/0.6835, allocations: 1.73 MB / 0.555 GB, free: 51.01 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.957e-06/0.6835, allocations: 4.062 kB / 0.555 GB, free: 51 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001477/0.685, allocations: 1.153 MB / 0.5561 GB, free: 49.81 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005236/0.6856, allocations: 64.92 kB / 0.5562 GB, free: 49.75 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004407/0.69, allocations: 2.086 MB / 0.5582 GB, free: 47.64 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008712/0.6909, allocations: 1.291 MB / 0.5595 GB, free: 46.32 MB / 378.7 MB Notification: Performance of SimCode: time 6.61e-07/0.6909, allocations: 0 / 0.5595 GB, free: 46.32 MB / 378.7 MB Notification: Performance of Templates: time 0.02626/0.7171, allocations: 18.95 MB / 0.578 GB, free: 27.45 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches