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.002983/0.002988, allocations: 182.4 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.301/2.301, allocations: 205.2 MB / 219.4 MB, free: 14.28 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.001095/0.001095, allocations: 94.62 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.128e-05/3.138e-05, allocations: 4 kB / 321.5 MB, free: 17.84 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1008/0.1009, allocations: 47.57 MB / 369.1 MB, free: 2.207 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4365/0.5374, allocations: 93.59 MB / 462.7 MB, free: 15.79 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002802/0.5378, allocations: 80.86 kB / 462.8 MB, free: 15.75 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.153/0.6908, allocations: 37.39 MB / 0.4884 GB, free: 11.8 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.803e-06/0.6909, allocations: 4 kB / 0.4884 GB, free: 11.8 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.559e-05/0.691, allocations: 28 kB / 0.4885 GB, free: 11.77 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.006919/0.6979, allocations: 1.603 MB / 0.49 GB, free: 10.11 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5e-05/0.698, allocations: 11.97 kB / 0.49 GB, free: 10.1 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004947/0.703, allocations: 0.5134 MB / 0.4905 GB, free: 9.582 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002322/0.7053, allocations: 0.7543 MB / 0.4913 GB, free: 8.781 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000249/0.7056, allocations: 148.6 kB / 0.4914 GB, free: 8.629 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004959/0.7062, allocations: 151.9 kB / 0.4916 GB, free: 8.48 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004292/0.7105, allocations: 1.281 MB / 0.4928 GB, free: 7.18 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.104e-05/0.7106, allocations: 3.953 kB / 0.4928 GB, free: 7.176 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002311/0.7108, allocations: 60 kB / 0.4929 GB, free: 7.117 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.615e-05/0.7109, allocations: 39.98 kB / 0.4929 GB, free: 7.078 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004336/0.7152, allocations: 1.234 MB / 0.4941 GB, free: 5.836 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01493/0.7302, allocations: 5.067 MB / 0.4991 GB, free: 0.5195 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004789/0.7351, allocations: 2.372 MB / 0.5014 GB, free: 13.88 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001667/0.7368, allocations: 0.5246 MB / 0.5019 GB, free: 13.36 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002297/0.7371, allocations: 114.4 kB / 0.502 GB, free: 13.23 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001857/0.7389, allocations: 0.705 MB / 0.5027 GB, free: 12.49 MB / 394.7 MB Notification: Performance of pre-optimization done (n=134): time 4.649e-06/0.739, allocations: 3.938 kB / 0.5027 GB, free: 12.48 MB / 394.7 MB Notification: Performance of matching and sorting (n=165): time 0.02012/0.7591, allocations: 4.935 MB / 0.5075 GB, free: 7.473 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001496/0.7593, allocations: 234.9 kB / 0.5077 GB, free: 7.195 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001164/0.7605, allocations: 0.5464 MB / 0.5083 GB, free: 6.645 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002995/0.7608, allocations: 65.7 kB / 0.5083 GB, free: 6.574 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005829/0.7614, allocations: 0.5958 MB / 0.5089 GB, free: 5.969 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007226/0.7621, allocations: 0.5352 MB / 0.5094 GB, free: 5.426 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001463/0.7623, allocations: 36 kB / 0.5095 GB, free: 5.391 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001892/0.7625, allocations: 374.7 kB / 0.5098 GB, free: 5.016 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001394/0.7639, allocations: 464 kB / 0.5103 GB, free: 4.562 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001724/0.7656, allocations: 0.8332 MB / 0.5111 GB, free: 3.586 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001715/0.7674, allocations: 0.5816 MB / 0.5117 GB, free: 3.008 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.16e-05/0.7674, allocations: 4 kB / 0.5117 GB, free: 3.004 MB / 394.7 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.006765/0.7742, allocations: 1.907 MB / 0.5135 GB, free: 1.074 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.989e-05/0.7743, allocations: 11.98 kB / 0.5135 GB, free: 1.062 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.723e-05/0.7743, allocations: 12 kB / 0.5135 GB, free: 1.051 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00281/0.7771, allocations: 479.8 kB / 0.514 GB, free: 0.5703 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003919/0.7811, allocations: 307.5 kB / 0.5143 GB, free: 276 kB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0186/0.7998, allocations: 8.589 MB / 0.5227 GB, free: 7.152 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002036/0.8018, allocations: 91.95 kB / 0.5228 GB, free: 7.062 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002345/0.8021, allocations: 71.98 kB / 0.5228 GB, free: 6.992 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,(1,100.0%) 19,(2,100.0%) 18} * Non-linear torn systems: 1 {1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0004731/0.8026, allocations: 207.5 kB / 0.523 GB, free: 6.785 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000304/0.8029, allocations: 118.6 kB / 0.5231 GB, free: 6.668 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008068/0.811, allocations: 1.766 MB / 0.5249 GB, free: 4.879 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-05/0.8111, allocations: 19.95 kB / 0.5249 GB, free: 4.859 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.709e-05/0.8111, allocations: 8 kB / 0.5249 GB, free: 4.852 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.259e-05/0.8112, allocations: 11.97 kB / 0.5249 GB, free: 4.84 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01116/0.8224, allocations: 3.597 MB / 0.5284 GB, free: 1.16 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.368e-05/0.8224, allocations: 7.953 kB / 0.5284 GB, free: 1.152 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002112/0.8246, allocations: 211.8 kB / 0.5286 GB, free: 0.9453 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002595/0.8272, allocations: 451 kB / 0.5291 GB, free: 0.4922 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003334/0.8275, allocations: 39.98 kB / 0.5291 GB, free: 464 kB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2927/1.12, allocations: 8.307 MB / 0.5372 GB, free: 104.2 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.551e-06/1.12, allocations: 1.906 kB / 0.5372 GB, free: 104.2 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009091/1.129, allocations: 2.52 MB / 0.5397 GB, free: 103.9 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001162/1.131, allocations: 297.3 kB / 0.54 GB, free: 103.8 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003395/1.131, allocations: 33.86 kB / 0.54 GB, free: 103.8 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001515/1.132, allocations: 72.39 kB / 0.5401 GB, free: 103.8 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005593/1.133, allocations: 123.8 kB / 0.5402 GB, free: 103.8 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001667/1.133, allocations: 52.72 kB / 0.5402 GB, free: 103.8 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0009268/1.134, allocations: 419.5 kB / 0.5406 GB, free: 103.7 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.11e-07/1.134, allocations: 0 / 0.5406 GB, free: 103.7 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00286/1.137, allocations: 434.5 kB / 0.541 GB, free: 103.7 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.0006572/1.138, allocations: 250.8 kB / 0.5413 GB, free: 103.6 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00518/1.143, allocations: 1.976 MB / 0.5432 GB, free: 103.1 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 9.608e-06/1.143, allocations: 1.375 kB / 0.5432 GB, free: 103.1 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003573/1.147, allocations: 1.366 MB / 0.5445 GB, free: 102.6 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00103/1.148, allocations: 96.02 kB / 0.5446 GB, free: 102.6 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01017/1.158, allocations: 2.687 MB / 0.5473 GB, free: 102 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001217/1.159, allocations: 1.219 MB / 0.5485 GB, free: 101.3 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007856/1.16, allocations: 102.8 kB / 0.5486 GB, free: 101.3 MB / 410.7 MB Notification: Performance of SimCode: time 1.372e-06/1.16, allocations: 0 / 0.5486 GB, free: 101.3 MB / 410.7 MB Notification: Performance of Templates: time 0.07568/1.236, allocations: 37.33 MB / 0.585 GB, free: 91.41 MB / 410.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