Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00136/0.001361, allocations: 201.2 kB / 17.38 MB, free: 4.426 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.394/1.394, allocations: 226.5 MB / 244.7 MB, free: 8.238 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007657/0.0007659, allocations: 94.97 kB / 296.8 MB, free: 6.922 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002335/0.0002336, allocations: 8 kB / 356.8 MB, free: 10.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2807/0.2809, allocations: 51.3 MB / 408.1 MB, free: 27.73 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor): time 0.005913/0.2869, allocations: 6.831 MB / 414.9 MB, free: 20.88 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00435/0.2913, allocations: 2.771 MB / 417.7 MB, free: 18.11 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001039/0.2923, allocations: 27.94 kB / 417.7 MB, free: 18.09 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009526/0.2933, allocations: 302.2 kB / 418 MB, free: 17.79 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001676/0.295, allocations: 0.5124 MB / 418.5 MB, free: 17.28 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001868/0.2969, allocations: 1.114 MB / 419.6 MB, free: 16.16 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001187/0.2981, allocations: 1.511 MB / 421.1 MB, free: 14.64 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001883/0.3, allocations: 1.587 MB / 422.7 MB, free: 12.99 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004873/0.3005, allocations: 0.5173 MB / 423.2 MB, free: 12.47 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005817/0.3011, allocations: 0.6454 MB / 423.9 MB, free: 11.82 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001201/0.3012, allocations: 64 kB / 423.9 MB, free: 11.76 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008463/0.3021, allocations: 375.7 kB / 424.3 MB, free: 11.39 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001733/0.3023, allocations: 258.8 kB / 424.5 MB, free: 11.14 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004681/0.3027, allocations: 0.6662 MB / 425.2 MB, free: 10.46 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00121/0.3039, allocations: 1.727 MB / 426.9 MB, free: 8.734 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/0.304, allocations: 0 / 426.9 MB, free: 8.734 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.482e-06/0.304, allocations: 3.938 kB / 426.9 MB, free: 8.73 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.686e-05/0.304, allocations: 0 / 426.9 MB, free: 8.73 MB / 298.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.004109/0.3081, allocations: 1.895 MB / 428.8 MB, free: 6.777 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.47e-05/0.3081, allocations: 12.03 kB / 428.8 MB, free: 6.766 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00333/0.3115, allocations: 0.6196 MB / 429.5 MB, free: 6.145 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001192/0.3127, allocations: 0.8449 MB / 430.3 MB, free: 5.254 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001148/0.3128, allocations: 156.5 kB / 430.5 MB, free: 5.094 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001682/0.313, allocations: 155.9 kB / 430.6 MB, free: 4.941 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002205/0.3152, allocations: 1.339 MB / 432 MB, free: 3.582 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.969e-05/0.3153, allocations: 7.938 kB / 432 MB, free: 3.574 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001387/0.3154, allocations: 60 kB / 432 MB, free: 3.516 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.029e-05/0.3154, allocations: 36 kB / 432.1 MB, free: 3.48 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00225/0.3177, allocations: 1.308 MB / 433.4 MB, free: 2.168 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007054/0.3248, allocations: 5.003 MB / 438.4 MB, free: 12.92 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002635/0.3274, allocations: 1.935 MB / 440.3 MB, free: 10.83 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001045/0.3285, allocations: 0.5767 MB / 440.9 MB, free: 10.25 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001743/0.3287, allocations: 183.2 kB / 441.1 MB, free: 10.04 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001297/0.33, allocations: 0.7466 MB / 441.8 MB, free: 9.27 MB / 314.7 MB Notification: Performance of pre-optimization done (n=132): time 7.915e-06/0.33, allocations: 3.984 kB / 441.8 MB, free: 9.266 MB / 314.7 MB Notification: Performance of matching and sorting (n=166): time 0.01363/0.3436, allocations: 5.723 MB / 447.5 MB, free: 3.426 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.652e-05/0.3437, allocations: 153.8 kB / 447.7 MB, free: 3.246 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007215/0.3445, allocations: 0.6292 MB / 448.3 MB, free: 2.609 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.87e-05/0.3446, allocations: 61.7 kB / 448.4 MB, free: 2.543 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003883/0.345, allocations: 0.578 MB / 449 MB, free: 1.953 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003723/0.3453, allocations: 0.539 MB / 449.5 MB, free: 1.406 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.19e-05/0.3454, allocations: 32 kB / 449.5 MB, free: 1.375 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001672/0.3456, allocations: 422.7 kB / 449.9 MB, free: 0.9531 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001033/0.3466, allocations: 0.5115 MB / 450.4 MB, free: 452 kB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001235/0.3479, allocations: 0.8522 MB / 451.3 MB, free: 15.46 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002307/0.3502, allocations: 1.436 MB / 452.7 MB, free: 13.91 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/0.3502, allocations: 0 / 452.7 MB, free: 13.91 MB / 330.7 MB Notification: Performance of matching and sorting (n=215) (initialization): time 0.004106/0.3543, allocations: 2.043 MB / 454.8 MB, free: 11.84 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.399e-05/0.3544, allocations: 11.98 kB / 454.8 MB, free: 11.83 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.326e-05/0.3544, allocations: 8 kB / 454.8 MB, free: 11.82 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001979/0.3564, allocations: 0.5301 MB / 455.3 MB, free: 11.28 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001105/0.3575, allocations: 295.5 kB / 455.6 MB, free: 10.99 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009103/0.3666, allocations: 8.653 MB / 464.3 MB, free: 1.816 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001008/0.3676, allocations: 87.97 kB / 464.4 MB, free: 1.73 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001093/0.3678, allocations: 67.98 kB / 464.4 MB, free: 1.664 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 38 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (161): * Single equations (assignments): 157 * 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,(1,100.0%) 19} * Non-linear torn systems: 1 {1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0006168/0.3684, allocations: 361.6 kB / 464.8 MB, free: 1.301 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001502/0.3685, allocations: 118.6 kB / 464.9 MB, free: 1.184 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004231/0.3728, allocations: 1.922 MB / 466.8 MB, free: 15.24 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.852e-05/0.3728, allocations: 19.98 kB / 466.8 MB, free: 15.22 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.156e-05/0.3728, allocations: 15.94 kB / 466.8 MB, free: 15.2 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.54e-05/0.3729, allocations: 7.969 kB / 466.9 MB, free: 15.2 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006318/0.3792, allocations: 3.557 MB / 470.4 MB, free: 11.55 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.723e-06/0.3792, allocations: 0 / 470.4 MB, free: 11.55 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009895/0.3802, allocations: 211.8 kB / 470.6 MB, free: 11.34 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001966/0.3822, allocations: 0.5135 MB / 471.1 MB, free: 10.82 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001013/0.3823, allocations: 39.98 kB / 471.2 MB, free: 10.78 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00929/0.3916, allocations: 8.334 MB / 479.5 MB, free: 1.91 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.3916, allocations: 4 kB / 479.5 MB, free: 1.906 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005753/0.3974, allocations: 2.671 MB / 482.2 MB, free: 15.19 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005779/0.398, allocations: 295.5 kB / 482.5 MB, free: 14.88 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001583/0.3982, allocations: 40.28 kB / 482.5 MB, free: 14.84 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007178/0.3989, allocations: 75.95 kB / 482.6 MB, free: 14.77 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000319/0.3992, allocations: 125.1 kB / 482.7 MB, free: 14.64 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.679e-05/0.3993, allocations: 63.84 kB / 482.8 MB, free: 14.58 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0006021/0.4, allocations: 431.1 kB / 483.2 MB, free: 14.16 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4, allocations: 0 / 483.2 MB, free: 14.16 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001647/0.4016, allocations: 424 kB / 483.6 MB, free: 13.75 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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,sourceQS.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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (116): * Single equations (assignments): 106 * 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%) 19,(1,100.0%) 9,(2,100.0%) 16} * Non-linear torn systems: 1 {1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003495/0.402, allocations: 204.9 kB / 483.8 MB, free: 13.54 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00376/0.4057, allocations: 2.096 MB / 485.9 MB, free: 11.39 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.001e-06/0.4058, allocations: 0 / 485.9 MB, free: 11.39 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002494/0.4083, allocations: 1.477 MB / 487.4 MB, free: 9.859 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009988/0.4093, allocations: 125.8 kB / 487.5 MB, free: 9.738 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00518/0.4145, allocations: 3.39 MB / 490.9 MB, free: 6.301 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008426/0.4154, allocations: 1.201 MB / 492.1 MB, free: 5.066 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004232/0.4158, allocations: 99.41 kB / 492.2 MB, free: 4.969 MB / 362.7 MB Notification: Performance of SimCode: time 1.243e-06/0.4158, allocations: 0 / 492.2 MB, free: 4.969 MB / 362.7 MB Notification: Performance of Templates: time 0.219/0.6348, allocations: 40.34 MB / 0.52 GB, free: 81.63 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.makefile (rm -f Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe >> ../files/Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.sim & ./Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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_trunk_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches