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.0009708/0.0009709, allocations: 195.9 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.491/1.491, allocations: 226.6 MB / 244.3 MB, free: 8.211 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007727/0.0007729, allocations: 96.8 kB / 296.4 MB, free: 6.996 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002278/0.0002278, allocations: 8 kB / 356.2 MB, free: 11.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2417/0.242, allocations: 51.3 MB / 407.5 MB, free: 27.84 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor): time 0.005511/0.2475, allocations: 6.813 MB / 414.3 MB, free: 21.01 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00426/0.2518, allocations: 2.766 MB / 417.1 MB, free: 18.25 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006991/0.2525, allocations: 27.94 kB / 417.1 MB, free: 18.22 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006637/0.2532, allocations: 306.2 kB / 417.4 MB, free: 17.92 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001163/0.2544, allocations: 0.5044 MB / 417.9 MB, free: 17.41 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001752/0.2561, allocations: 1.123 MB / 419 MB, free: 16.29 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001108/0.2573, allocations: 1.519 MB / 420.6 MB, free: 14.77 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001733/0.259, allocations: 1.455 MB / 422 MB, free: 13.25 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004979/0.2595, allocations: 0.5018 MB / 422.5 MB, free: 12.75 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005401/0.2601, allocations: 0.6571 MB / 423.2 MB, free: 12.09 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001146/0.2602, allocations: 64 kB / 423.2 MB, free: 12.02 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006894/0.2609, allocations: 371.7 kB / 423.6 MB, free: 11.66 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001435/0.261, allocations: 254.8 kB / 423.8 MB, free: 11.41 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001882/0.2612, allocations: 292.9 kB / 424.1 MB, free: 11.12 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001121/0.2624, allocations: 1.727 MB / 425.9 MB, free: 9.387 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.2624, allocations: 0 / 425.9 MB, free: 9.387 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.2624, allocations: 0 / 425.9 MB, free: 9.387 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.359e-05/0.2624, allocations: 0 / 425.9 MB, free: 9.387 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.004187/0.2666, allocations: 1.914 MB / 427.8 MB, free: 7.418 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.947e-05/0.2666, allocations: 12.03 kB / 427.8 MB, free: 7.406 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003444/0.2701, allocations: 0.6187 MB / 428.4 MB, free: 6.785 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001199/0.2713, allocations: 0.8322 MB / 429.2 MB, free: 5.906 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001085/0.2714, allocations: 144.6 kB / 429.4 MB, free: 5.758 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001623/0.2716, allocations: 155.9 kB / 429.5 MB, free: 5.605 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002173/0.2738, allocations: 1.339 MB / 430.9 MB, free: 4.246 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.793e-05/0.2738, allocations: 4 kB / 430.9 MB, free: 4.242 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001161/0.2739, allocations: 67.92 kB / 430.9 MB, free: 4.176 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.057e-05/0.274, allocations: 36 kB / 431 MB, free: 4.141 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002159/0.2761, allocations: 1.308 MB / 432.3 MB, free: 2.828 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006984/0.2831, allocations: 4.999 MB / 437.3 MB, free: 13.59 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002788/0.2859, allocations: 1.932 MB / 439.2 MB, free: 11.5 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001088/0.287, allocations: 0.5728 MB / 439.8 MB, free: 10.92 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001873/0.2872, allocations: 191.2 kB / 440 MB, free: 10.7 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00136/0.2886, allocations: 0.7505 MB / 440.7 MB, free: 9.922 MB / 314.7 MB Notification: Performance of pre-optimization done (n=132): time 3.998e-06/0.2886, allocations: 3.984 kB / 440.7 MB, free: 9.918 MB / 314.7 MB Notification: Performance of matching and sorting (n=166): time 0.01395/0.3026, allocations: 5.715 MB / 446.4 MB, free: 4.082 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.302e-05/0.3027, allocations: 153.8 kB / 446.6 MB, free: 3.902 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007613/0.3035, allocations: 0.6331 MB / 447.2 MB, free: 3.262 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001026/0.3036, allocations: 57.7 kB / 447.3 MB, free: 3.199 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004206/0.304, allocations: 0.578 MB / 447.9 MB, free: 2.609 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003959/0.3044, allocations: 0.5351 MB / 448.4 MB, free: 2.066 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.137e-05/0.3045, allocations: 43.88 kB / 448.4 MB, free: 2.023 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001792/0.3047, allocations: 418.7 kB / 448.8 MB, free: 1.605 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001063/0.3057, allocations: 0.5154 MB / 449.4 MB, free: 1.09 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001266/0.307, allocations: 0.8404 MB / 450.2 MB, free: 136 kB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001314/0.3083, allocations: 0.626 MB / 450.8 MB, free: 15.5 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.177e-06/0.3084, allocations: 4 kB / 450.8 MB, free: 15.5 MB / 330.7 MB Notification: Performance of matching and sorting (n=215) (initialization): time 0.004549/0.3129, allocations: 2.043 MB / 452.9 MB, free: 13.44 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.824e-05/0.313, allocations: 8 kB / 452.9 MB, free: 13.43 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.695e-05/0.313, allocations: 8 kB / 452.9 MB, free: 13.42 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002092/0.3151, allocations: 0.5302 MB / 453.4 MB, free: 12.88 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001149/0.3163, allocations: 299.5 kB / 453.7 MB, free: 12.59 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009637/0.3259, allocations: 8.638 MB / 462.3 MB, free: 3.418 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001186/0.3271, allocations: 91.95 kB / 462.4 MB, free: 3.328 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001042/0.3272, allocations: 63.98 kB / 462.5 MB, free: 3.266 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.0007336/0.328, allocations: 361.5 kB / 462.8 MB, free: 2.902 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001547/0.3281, allocations: 106.7 kB / 463 MB, free: 2.797 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004347/0.3325, allocations: 1.934 MB / 464.9 MB, free: 0.8398 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.469e-05/0.3325, allocations: 16 kB / 464.9 MB, free: 0.8242 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.295e-05/0.3326, allocations: 11.95 kB / 464.9 MB, free: 0.8125 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.846e-05/0.3326, allocations: 11.97 kB / 464.9 MB, free: 0.8008 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006486/0.3391, allocations: 3.546 MB / 468.5 MB, free: 13.16 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.917e-06/0.3391, allocations: 4 kB / 468.5 MB, free: 13.16 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009514/0.3401, allocations: 211.7 kB / 468.7 MB, free: 12.95 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001974/0.342, allocations: 0.5145 MB / 469.2 MB, free: 12.42 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001097/0.3422, allocations: 43.97 kB / 469.2 MB, free: 12.38 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008926/0.3511, allocations: 8.34 MB / 477.6 MB, free: 3.508 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.3511, allocations: 0 / 477.6 MB, free: 3.508 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005515/0.3567, allocations: 2.679 MB / 480.3 MB, free: 0.7852 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000459/0.3571, allocations: 291.6 kB / 480.5 MB, free: 492 kB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001408/0.3573, allocations: 35.98 kB / 480.6 MB, free: 456 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007299/0.358, allocations: 75.97 kB / 480.7 MB, free: 380 kB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002864/0.3583, allocations: 137 kB / 480.8 MB, free: 240 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.744e-05/0.3584, allocations: 51.98 kB / 480.8 MB, free: 188 kB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0006088/0.359, allocations: 431 kB / 481.3 MB, free: 15.77 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.359, allocations: 0 / 481.3 MB, free: 15.77 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001492/0.3605, allocations: 424 kB / 481.7 MB, free: 15.35 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.0003668/0.3609, allocations: 196.8 kB / 481.9 MB, free: 15.15 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003669/0.3646, allocations: 2.099 MB / 484 MB, free: 13.01 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.038e-06/0.3646, allocations: 0 / 484 MB, free: 13.01 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002331/0.367, allocations: 1.476 MB / 485.4 MB, free: 11.48 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007409/0.3677, allocations: 133.6 kB / 485.6 MB, free: 11.36 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004806/0.3725, allocations: 3.386 MB / 489 MB, free: 7.906 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007672/0.3733, allocations: 1.209 MB / 490.2 MB, free: 6.668 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003273/0.3736, allocations: 99.39 kB / 490.3 MB, free: 6.574 MB / 362.7 MB Notification: Performance of SimCode: time 5.81e-07/0.3737, allocations: 0 / 490.3 MB, free: 6.574 MB / 362.7 MB Notification: Performance of Templates: time 0.2002/0.5739, allocations: 40.38 MB / 0.5182 GB, free: 83.44 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