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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001347/0.001347, allocations: 178.4 kB / 8.698 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.381/1.381, allocations: 205.3 MB / 214.4 MB, free: 1.668 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.0008226/0.0008226, allocations: 94.36 kB / 262.5 MB, free: 1.609 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.344e-05/1.361e-05, allocations: 4 kB / 315.5 MB, free: 22.7 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07346/0.07349, allocations: 47.58 MB / 363.1 MB, free: 7.066 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2889/0.3624, allocations: 93.16 MB / 456.2 MB, free: 2.648 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001792/0.3626, allocations: 87.7 kB / 456.3 MB, free: 2.602 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08941/0.4521, allocations: 36.99 MB / 493.3 MB, free: 3.141 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.193e-06/0.4521, allocations: 0 / 493.3 MB, free: 3.141 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.006e-05/0.4522, allocations: 28 kB / 493.3 MB, free: 3.113 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: 375 * Number of variables: 375 Notification: Performance of Generate backend data structure: time 0.003934/0.4561, allocations: 1.611 MB / 494.9 MB, free: 1.445 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.599e-05/0.4562, allocations: 8.031 kB / 495 MB, free: 1.438 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002966/0.4591, allocations: 0.5017 MB / 495.5 MB, free: 0.9336 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001222/0.4604, allocations: 0.7543 MB / 496.2 MB, free: 136 kB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001236/0.4605, allocations: 96.66 kB / 496.3 MB, free: 32 kB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001988/0.4607, allocations: 92.03 kB / 496.4 MB, free: 15.94 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002101/0.4628, allocations: 1.158 MB / 497.6 MB, free: 14.78 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002031/0.4649, allocations: 1.064 MB / 498.6 MB, free: 13.7 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.054e-05/0.4649, allocations: 3.906 kB / 498.6 MB, free: 13.7 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000107/0.465, allocations: 3.984 kB / 498.6 MB, free: 13.69 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.442e-05/0.4651, allocations: 36 kB / 498.7 MB, free: 13.66 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007567/0.4726, allocations: 4.835 MB / 0.4917 GB, free: 8.59 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002636/0.4753, allocations: 2.33 MB / 0.494 GB, free: 6.004 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007582/0.4761, allocations: 497.3 kB / 0.4944 GB, free: 5.516 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001445/0.4762, allocations: 102.4 kB / 0.4945 GB, free: 5.395 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001046/0.4773, allocations: 0.6555 MB / 0.4952 GB, free: 4.703 MB / 378.7 MB Notification: Performance of pre-optimization done (n=134): time 3.286e-06/0.4773, allocations: 4 kB / 0.4952 GB, free: 4.699 MB / 378.7 MB Notification: Performance of matching and sorting (n=165): time 0.01056/0.4879, allocations: 4.69 MB / 0.4998 GB, free: 15.94 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001149/0.488, allocations: 238.9 kB / 0.5 GB, free: 15.66 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006208/0.4887, allocations: 0.4994 MB / 0.5005 GB, free: 15.15 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 9.104e-05/0.4888, allocations: 25.7 kB / 0.5005 GB, free: 15.12 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004415/0.4892, allocations: 0.5816 MB / 0.5011 GB, free: 14.52 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003899/0.4896, allocations: 0.5157 MB / 0.5016 GB, free: 14 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.788e-05/0.4897, allocations: 0 / 0.5016 GB, free: 14 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001773/0.4899, allocations: 410.7 kB / 0.502 GB, free: 13.59 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006911/0.4906, allocations: 428 kB / 0.5024 GB, free: 13.17 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009395/0.4915, allocations: 0.7909 MB / 0.5031 GB, free: 12.24 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001394/0.4929, allocations: 0.672 MB / 0.5038 GB, free: 11.56 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.786e-06/0.4929, allocations: 4 kB / 0.5038 GB, free: 11.56 MB / 394.7 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.004072/0.497, allocations: 1.906 MB / 0.5057 GB, free: 9.633 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.583e-05/0.4971, allocations: 19.95 kB / 0.5057 GB, free: 9.613 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.968e-05/0.4971, allocations: 8 kB / 0.5057 GB, free: 9.605 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001425/0.4986, allocations: 467 kB / 0.5061 GB, free: 9.137 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001212/0.4998, allocations: 303.5 kB / 0.5064 GB, free: 8.84 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008925/0.5087, allocations: 8.263 MB / 0.5145 GB, free: 120 kB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001177/0.5099, allocations: 51.94 kB / 0.5146 GB, free: 68 kB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001361/0.5101, allocations: 72.03 kB / 0.5146 GB, free: 15.99 MB / 410.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.0002987/0.5104, allocations: 167.8 kB / 0.5148 GB, free: 15.82 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001635/0.5106, allocations: 106.8 kB / 0.5149 GB, free: 15.72 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004091/0.5146, allocations: 1.738 MB / 0.5166 GB, free: 13.96 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.751e-05/0.5147, allocations: 19.98 kB / 0.5166 GB, free: 13.94 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.808e-06/0.5147, allocations: 8 kB / 0.5166 GB, free: 13.93 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.753e-05/0.5147, allocations: 7.969 kB / 0.5166 GB, free: 13.92 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005994/0.5207, allocations: 3.418 MB / 0.52 GB, free: 10.43 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.975e-06/0.5207, allocations: 0 / 0.52 GB, free: 10.43 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00102/0.5218, allocations: 215.8 kB / 0.5202 GB, free: 10.22 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001317/0.5231, allocations: 431.1 kB / 0.5206 GB, free: 9.789 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.271e-05/0.5232, allocations: 15.98 kB / 0.5206 GB, free: 9.773 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008533/0.5317, allocations: 7.996 MB / 0.5284 GB, free: 1.316 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.055e-06/0.5318, allocations: 7.984 kB / 0.5284 GB, free: 1.309 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1821/0.7139, allocations: 2.491 MB / 0.5308 GB, free: 110.8 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000543/0.7145, allocations: 293.2 kB / 0.5311 GB, free: 110.7 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001554/0.7147, allocations: 10.59 kB / 0.5311 GB, free: 110.7 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007582/0.7154, allocations: 42.33 kB / 0.5312 GB, free: 110.7 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002832/0.7157, allocations: 133.2 kB / 0.5313 GB, free: 110.7 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.39e-05/0.7158, allocations: 50.14 kB / 0.5313 GB, free: 110.7 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0004385/0.7163, allocations: 375.9 kB / 0.5317 GB, free: 110.6 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.7163, allocations: 0 / 0.5317 GB, free: 110.6 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001605/0.7179, allocations: 357.1 kB / 0.532 GB, free: 110.6 MB / 410.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.000353/0.7183, allocations: 195.2 kB / 0.5322 GB, free: 110.5 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002619/0.7209, allocations: 1.856 MB / 0.534 GB, free: 110.1 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/0.7209, allocations: 3.406 kB / 0.534 GB, free: 110.1 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001644/0.7226, allocations: 1.255 MB / 0.5353 GB, free: 109.6 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005517/0.7231, allocations: 62.8 kB / 0.5353 GB, free: 109.6 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005751/0.7289, allocations: 2.539 MB / 0.5378 GB, free: 109.1 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008084/0.7297, allocations: 1.225 MB / 0.539 GB, free: 108.4 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0008394/0.7306, allocations: 159.8 kB / 0.5392 GB, free: 108.4 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002527/0.7308, allocations: 81.67 kB / 0.5392 GB, free: 108.4 MB / 410.7 MB Notification: Performance of SimCode: time 1.102e-06/0.7308, allocations: 0 / 0.5392 GB, free: 108.4 MB / 410.7 MB Notification: Performance of Templates: time 0.02611/0.757, allocations: 15.11 MB / 0.554 GB, free: 107.6 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