Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001514/0.001514, allocations: 185.9 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.989/1.989, allocations: 205.4 MB / 222.5 MB, free: 9.141 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001171/0.001171, allocations: 96.34 kB / 270.9 MB, free: 8.383 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004058/0.000406, allocations: 8 kB / 327 MB, free: 220 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3401/0.3406, allocations: 47.57 MB / 374.5 MB, free: 45.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1527/0.4934, allocations: 93.69 MB / 468.2 MB, free: 3.066 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003186/0.4937, allocations: 87.95 kB / 468.3 MB, free: 2.98 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.424/0.9178, allocations: 37.46 MB / 0.4939 GB, free: 90.96 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.046e-06/0.9179, allocations: 0 / 0.4939 GB, free: 90.96 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.528e-05/0.918, allocations: 26.53 kB / 0.4939 GB, free: 90.96 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: 375 * Number of variables: 375 Notification: Performance of Generate backend data structure: time 0.00792/0.9259, allocations: 1.707 MB / 0.4956 GB, free: 90.17 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.79e-05/0.926, allocations: 8.406 kB / 0.4956 GB, free: 90.17 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005135/0.9311, allocations: 0.5078 MB / 0.4961 GB, free: 90.09 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002368/0.9335, allocations: 0.7567 MB / 0.4969 GB, free: 89.78 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002626/0.9338, allocations: 147.8 kB / 0.497 GB, free: 89.75 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006179/0.9345, allocations: 153.8 kB / 0.4971 GB, free: 89.75 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005231/0.9397, allocations: 1.37 MB / 0.4985 GB, free: 89.66 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.355e-05/0.9399, allocations: 6.906 kB / 0.4985 GB, free: 89.66 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002376/0.9401, allocations: 65.67 kB / 0.4985 GB, free: 89.66 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.456e-05/0.9402, allocations: 38.84 kB / 0.4986 GB, free: 89.66 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005871/0.946, allocations: 1.384 MB / 0.4999 GB, free: 89.64 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01495/0.961, allocations: 5.088 MB / 0.5049 GB, free: 88.12 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005027/0.9661, allocations: 2.45 MB / 0.5073 GB, free: 86.66 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002784/0.9664, allocations: 103.4 kB / 0.5074 GB, free: 86.57 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002468/0.9689, allocations: 0.7618 MB / 0.5081 GB, free: 86.46 MB / 378.7 MB Notification: Performance of pre-optimization done (n=134): time 5.28e-06/0.969, allocations: 0 / 0.5081 GB, free: 86.46 MB / 378.7 MB Notification: Performance of matching and sorting (n=165): time 0.02626/0.9953, allocations: 5.65 MB / 0.5137 GB, free: 85.02 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001012/0.9954, allocations: 162.1 kB / 0.5138 GB, free: 84.86 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001103/0.9965, allocations: 0.5501 MB / 0.5143 GB, free: 84.6 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00039/0.997, allocations: 60.97 kB / 0.5144 GB, free: 84.54 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005088/0.9975, allocations: 0.5994 MB / 0.515 GB, free: 84.04 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006716/0.9982, allocations: 0.5362 MB / 0.5155 GB, free: 83.62 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001629/0.9984, allocations: 34.38 kB / 0.5155 GB, free: 83.59 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001255/0.9985, allocations: 376.6 kB / 0.5159 GB, free: 83.25 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001936/1, allocations: 0.5219 MB / 0.5164 GB, free: 83.06 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002226/1.003, allocations: 0.8875 MB / 0.5173 GB, free: 82.45 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002333/1.005, allocations: 0.6422 MB / 0.5179 GB, free: 82.16 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.711e-05/1.005, allocations: 3.188 kB / 0.5179 GB, free: 82.16 MB / 378.7 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.008144/1.013, allocations: 2.049 MB / 0.5199 GB, free: 81.4 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.883e-05/1.013, allocations: 9.156 kB / 0.5199 GB, free: 81.4 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.147e-05/1.013, allocations: 13.41 kB / 0.5199 GB, free: 81.39 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00365/1.017, allocations: 0.535 MB / 0.5205 GB, free: 81.26 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002479/1.02, allocations: 302.2 kB / 0.5207 GB, free: 81.25 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01421/1.034, allocations: 8.758 MB / 0.5293 GB, free: 74.15 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002012/1.036, allocations: 84.88 kB / 0.5294 GB, free: 74.12 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002777/1.036, allocations: 72.31 kB / 0.5294 GB, free: 74.11 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * 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 () * Number of clocked 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,(1,100.0%) 19,(2,100.0%) 18} * Non-linear torn systems: 1 {1 7} Notification: Performance of prepare postOptimizeDAE: time 0.001055/1.037, allocations: 350.7 kB / 0.5298 GB, free: 73.86 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003404/1.038, allocations: 110 kB / 0.5299 GB, free: 73.8 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007729/1.045, allocations: 1.916 MB / 0.5318 GB, free: 73 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.56e-05/1.046, allocations: 18.59 kB / 0.5318 GB, free: 73 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.812e-05/1.046, allocations: 10.97 kB / 0.5318 GB, free: 73 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.153e-05/1.046, allocations: 7.828 kB / 0.5318 GB, free: 73 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01092/1.057, allocations: 3.43 MB / 0.5351 GB, free: 71.45 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.405e-05/1.057, allocations: 0 / 0.5351 GB, free: 71.45 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002073/1.059, allocations: 214.5 kB / 0.5354 GB, free: 71.43 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003604/1.062, allocations: 0.5063 MB / 0.5358 GB, free: 71.29 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003571/1.063, allocations: 34.48 kB / 0.5359 GB, free: 71.27 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01341/1.076, allocations: 8.481 MB / 0.5442 GB, free: 62.9 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/1.076, allocations: 0 / 0.5442 GB, free: 62.9 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01005/1.086, allocations: 2.667 MB / 0.5468 GB, free: 60.46 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009496/1.087, allocations: 304.4 kB / 0.5471 GB, free: 60.19 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003519/1.088, allocations: 32 kB / 0.5471 GB, free: 60.16 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001602/1.089, allocations: 76.42 kB / 0.5472 GB, free: 60.09 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004681/1.09, allocations: 123.9 kB / 0.5473 GB, free: 60.02 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000147/1.09, allocations: 51.27 kB / 0.5473 GB, free: 59.98 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0007732/1.091, allocations: 428 kB / 0.5477 GB, free: 59.61 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.01e-07/1.091, allocations: 0 / 0.5477 GB, free: 59.61 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002539/1.093, allocations: 435.2 kB / 0.5481 GB, free: 59.19 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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) * Number of clocked states: 0 () * 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.000586/1.094, allocations: 232.6 kB / 0.5484 GB, free: 58.98 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.006103/1.1, allocations: 2.131 MB / 0.5505 GB, free: 56.99 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 8.777e-06/1.1, allocations: 0 / 0.5505 GB, free: 56.99 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003835/1.104, allocations: 1.426 MB / 0.5518 GB, free: 55.63 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001106/1.105, allocations: 88.05 kB / 0.5519 GB, free: 55.56 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.012/1.117, allocations: 3.919 MB / 0.5558 GB, free: 52.07 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008671/1.118, allocations: 1.219 MB / 0.5569 GB, free: 51.02 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007275/1.119, allocations: 97.52 kB / 0.557 GB, free: 50.93 MB / 378.7 MB Notification: Performance of SimCode: time 1.413e-06/1.119, allocations: 0 / 0.557 GB, free: 50.93 MB / 378.7 MB Notification: Performance of Templates: time 0.05325/1.172, allocations: 37.36 MB / 0.5935 GB, free: 15.6 MB / 378.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.sim & ./Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor_res.mat","/var/lib/jenkins1/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_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches