Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_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 3.2.3+maint.om/package.mo): time 0.001425/0.001425, allocations: 188.2 kB / 8.482 MB, free: 1.863 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.339/1.339, allocations: 205.2 MB / 214.1 MB, free: 5.426 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00096/0.0009599, allocations: 90.25 kB / 262.1 MB, free: 5.484 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.893e-06/6.913e-06, allocations: 4 kB / 315 MB, free: 41.51 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08746/0.08748, allocations: 47.57 MB / 362.5 MB, free: 9.977 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3183/0.4058, allocations: 92.85 MB / 455.4 MB, free: 8.234 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002105/0.4061, allocations: 81.17 kB / 455.5 MB, free: 8.223 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.09787/0.504, allocations: 36.63 MB / 492.1 MB, free: 2.457 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.122e-05/0.5041, allocations: 28 kB / 492.1 MB, free: 2.43 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 375 * Number of variables: 375 Notification: Performance of Generate backend data structure: time 0.00429/0.5084, allocations: 1.628 MB / 493.8 MB, free: 0.8828 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.57e-05/0.5084, allocations: 8.031 kB / 493.8 MB, free: 0.875 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003513/0.5119, allocations: 0.5388 MB / 494.3 MB, free: 388 kB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001497/0.5135, allocations: 0.7453 MB / 495 MB, free: 15.77 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001319/0.5136, allocations: 93.41 kB / 495.1 MB, free: 15.67 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002059/0.5138, allocations: 98.05 kB / 495.2 MB, free: 15.58 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002409/0.5162, allocations: 1.159 MB / 496.4 MB, free: 14.53 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002078/0.5183, allocations: 1.064 MB / 497.5 MB, free: 13.45 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.712e-05/0.5184, allocations: 3.906 kB / 497.5 MB, free: 13.45 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001345/0.5185, allocations: 4 kB / 497.5 MB, free: 13.44 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.95e-05/0.5186, allocations: 32 kB / 497.5 MB, free: 13.41 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009206/0.5278, allocations: 4.974 MB / 0.4907 GB, free: 8.168 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009286/0.5288, allocations: 0.5463 MB / 0.4912 GB, free: 7.617 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000821/0.5296, allocations: 496.7 kB / 0.4917 GB, free: 7.129 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000171/0.5298, allocations: 110.4 kB / 0.4918 GB, free: 7.004 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001031/0.5308, allocations: 0.6206 MB / 0.4924 GB, free: 6.352 MB / 346.7 MB Notification: Performance of pre-optimization done (n=134): time 3.497e-06/0.5308, allocations: 3.938 kB / 0.4924 GB, free: 6.348 MB / 346.7 MB Notification: Performance of matching and sorting (n=165): time 0.01062/0.5415, allocations: 4.329 MB / 0.4966 GB, free: 1.945 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001371/0.5416, allocations: 230.9 kB / 0.4969 GB, free: 1.668 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006969/0.5423, allocations: 0.4915 MB / 0.4973 GB, free: 1.172 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001291/0.5425, allocations: 37.69 kB / 0.4974 GB, free: 1.129 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004337/0.5429, allocations: 495.7 kB / 0.4978 GB, free: 0.6328 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004204/0.5434, allocations: 0.5196 MB / 0.4984 GB, free: 108 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.053e-05/0.5434, allocations: 0 / 0.4984 GB, free: 108 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002454/0.5437, allocations: 418.7 kB / 0.4988 GB, free: 15.68 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007705/0.5445, allocations: 440 kB / 0.4992 GB, free: 15.25 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001006/0.5455, allocations: 0.7944 MB / 0.5 GB, free: 14.31 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001281/0.5468, allocations: 0.5721 MB / 0.5005 GB, free: 13.74 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.244e-06/0.5468, allocations: 4 kB / 0.5005 GB, free: 13.73 MB / 362.7 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.004261/0.5511, allocations: 1.805 MB / 0.5023 GB, free: 11.91 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.942e-05/0.5511, allocations: 4 kB / 0.5023 GB, free: 11.91 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.068e-05/0.5511, allocations: 12 kB / 0.5023 GB, free: 11.9 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001563/0.5527, allocations: 463 kB / 0.5027 GB, free: 11.43 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001334/0.554, allocations: 307.5 kB / 0.503 GB, free: 11.13 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009765/0.5638, allocations: 8.102 MB / 0.5109 GB, free: 2.574 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001437/0.5653, allocations: 59.92 kB / 0.511 GB, free: 2.516 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001337/0.5654, allocations: 71.98 kB / 0.5111 GB, free: 2.445 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 18 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.fundamentalWavePermabilitySensor.harmonicPotential.mean1.y,fundamentalWavePermabilitySensor.harmonicPotential.mean1.y,$PRE.fundamentalWavePermabilitySensor.harmonicPotential.mean2.y,fundamentalWavePermabilitySensor.harmonicPotential.mean2.y,$PRE.fundamentalWavePermabilitySensor.harmonicFlux.mean1.y,fundamentalWavePermabilitySensor.harmonicFlux.mean1.y,$PRE.fundamentalWavePermabilitySensor.harmonicFlux.mean2.y,fundamentalWavePermabilitySensor.harmonicFlux.mean2.y,$PRE.rootMeanSquare.mean1.y,rootMeanSquare.mean1.y,$PRE.rootMeanSquare.mean2.y,rootMeanSquare.mean2.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (166): * Single equations (assignments): 162 * 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,(2,100.0%) 18,(2,100.0%) 18} * Non-linear torn systems: 1 {1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0003492/0.5658, allocations: 147.7 kB / 0.5112 GB, free: 2.293 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001873/0.566, allocations: 114.7 kB / 0.5113 GB, free: 2.18 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004159/0.5701, allocations: 1.654 MB / 0.5129 GB, free: 0.5 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.086e-05/0.5702, allocations: 23.98 kB / 0.513 GB, free: 488 kB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.309e-05/0.5702, allocations: 8 kB / 0.513 GB, free: 480 kB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.832e-05/0.5702, allocations: 7.969 kB / 0.513 GB, free: 472 kB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006355/0.5766, allocations: 3.312 MB / 0.5162 GB, free: 13.07 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.947e-06/0.5766, allocations: 3.906 kB / 0.5162 GB, free: 13.07 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001114/0.5777, allocations: 219.8 kB / 0.5164 GB, free: 12.85 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001475/0.5792, allocations: 427.1 kB / 0.5168 GB, free: 12.42 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000114/0.5794, allocations: 23.97 kB / 0.5168 GB, free: 12.4 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009178/0.5885, allocations: 7.827 MB / 0.5245 GB, free: 4.105 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.48e-06/0.5886, allocations: 4.062 kB / 0.5245 GB, free: 4.102 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005021/0.5936, allocations: 2.42 MB / 0.5269 GB, free: 1.621 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005693/0.5942, allocations: 299.6 kB / 0.5271 GB, free: 1.309 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001773/0.5944, allocations: 12 kB / 0.5272 GB, free: 1.297 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008714/0.5953, allocations: 47.95 kB / 0.5272 GB, free: 1.25 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001952/0.5955, allocations: 93.09 kB / 0.5273 GB, free: 1.156 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001065/0.5956, allocations: 55.97 kB / 0.5273 GB, free: 1.102 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0004995/0.5961, allocations: 371.2 kB / 0.5277 GB, free: 0.7422 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001661/0.5978, allocations: 347.9 kB / 0.528 GB, free: 412 kB / 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,fundamentalWavePermabilitySensor.harmonicPotential.mean2.y,fundamentalWavePermabilitySensor.harmonicFlux.mean1.y,fundamentalWavePermabilitySensor.harmonicFlux.mean2.y,rootMeanSquare.mean1.y,rootMeanSquare.mean2.y) * 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 (115): * Single equations (assignments): 105 * 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,(1,100.0%) 17} * Non-linear torn systems: 1 {1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004004/0.5982, allocations: 206.2 kB / 0.5282 GB, free: 196 kB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002921/0.6011, allocations: 1.762 MB / 0.5299 GB, free: 14.4 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.92e-06/0.6011, allocations: 4.422 kB / 0.5299 GB, free: 14.39 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001815/0.603, allocations: 1.156 MB / 0.5311 GB, free: 13.2 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005628/0.6035, allocations: 62.91 kB / 0.5311 GB, free: 13.14 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007617/0.6112, allocations: 2.629 MB / 0.5337 GB, free: 10.45 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001254/0.6125, allocations: 1.303 MB / 0.535 GB, free: 9.121 MB / 394.7 MB Notification: Performance of SimCode: time 1.352e-06/0.6125, allocations: 3.938 kB / 0.535 GB, free: 9.117 MB / 394.7 MB Notification: Performance of Templates: time 0.03449/0.647, allocations: 19.13 MB / 0.5537 GB, free: 5.965 MB / 410.7 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.sim & ./Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/NonLinearInductor/NonLinearInductor.csv","../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches