Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_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_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008586/0.0008588, allocations: 98.92 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000926/0.000926, allocations: 205.7 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.354/1.354, allocations: 227.2 MB / 245.9 MB, free: 10.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002125/0.0002125, allocations: 4 kB / 306.6 MB, free: 1.438 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09454/0.09477, allocations: 51.49 MB / 358.1 MB, free: 13.94 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor): time 0.006613/0.1014, allocations: 6.428 MB / 364.5 MB, free: 7.48 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00483/0.1063, allocations: 2.813 MB / 367.3 MB, free: 4.66 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007175/0.107, allocations: 27.94 kB / 367.3 MB, free: 4.633 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008234/0.1079, allocations: 302.1 kB / 367.6 MB, free: 4.336 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001573/0.1094, allocations: 0.5842 MB / 368.2 MB, free: 3.75 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002312/0.1118, allocations: 1.124 MB / 369.3 MB, free: 2.629 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001424/0.1132, allocations: 1.061 MB / 370.4 MB, free: 1.566 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002183/0.1154, allocations: 1.436 MB / 371.8 MB, free: 72 kB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1717/0.2871, allocations: 0.4971 MB / 372.3 MB, free: 9.492 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009695/0.2881, allocations: 0.635 MB / 373 MB, free: 9.492 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001671/0.2883, allocations: 66.06 kB / 373 MB, free: 9.492 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009416/0.2892, allocations: 343.2 kB / 373.4 MB, free: 9.492 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002603/0.2895, allocations: 252.3 kB / 373.6 MB, free: 9.492 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003519/0.2898, allocations: 297 kB / 373.9 MB, free: 9.461 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002346/0.2922, allocations: 1.717 MB / 375.6 MB, free: 9.336 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.2922, allocations: 0 / 375.6 MB, free: 9.336 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.2922, allocations: 0 / 375.6 MB, free: 9.336 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.242e-05/0.2923, allocations: 0 / 375.6 MB, free: 9.336 MB / 302.1 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.005712/0.298, allocations: 1.911 MB / 377.5 MB, free: 8.473 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.161e-05/0.298, allocations: 9.625 kB / 377.5 MB, free: 8.473 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004246/0.3023, allocations: 0.62 MB / 378.2 MB, free: 8.387 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001748/0.3041, allocations: 0.8258 MB / 379 MB, free: 8.078 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001476/0.3042, allocations: 150.9 kB / 379.1 MB, free: 8.035 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002477/0.3045, allocations: 155.6 kB / 379.3 MB, free: 8.031 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002803/0.3073, allocations: 1.331 MB / 380.6 MB, free: 7.945 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.325e-05/0.3073, allocations: 5.156 kB / 380.6 MB, free: 7.945 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000139/0.3075, allocations: 62.41 kB / 380.7 MB, free: 7.945 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.009e-05/0.3075, allocations: 33.28 kB / 380.7 MB, free: 7.945 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002746/0.3103, allocations: 1.307 MB / 382 MB, free: 7.922 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007801/0.3181, allocations: 4.999 MB / 387 MB, free: 6.348 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002575/0.3207, allocations: 1.951 MB / 389 MB, free: 5.309 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001446/0.3209, allocations: 192.6 kB / 389.2 MB, free: 5.113 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001302/0.3222, allocations: 0.7426 MB / 389.9 MB, free: 4.848 MB / 302.1 MB Notification: Performance of pre-optimization done (n=132): time 3.366e-06/0.3222, allocations: 0 / 389.9 MB, free: 4.848 MB / 302.1 MB Notification: Performance of matching and sorting (n=163): time 0.01408/0.3363, allocations: 5.594 MB / 395.5 MB, free: 2.098 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.971e-05/0.3364, allocations: 155.8 kB / 395.7 MB, free: 1.934 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008721/0.3373, allocations: 0.6426 MB / 396.3 MB, free: 1.547 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001441/0.3374, allocations: 56.33 kB / 396.3 MB, free: 1.492 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003947/0.3378, allocations: 0.5836 MB / 396.9 MB, free: 0.9727 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003428/0.3382, allocations: 0.5252 MB / 397.5 MB, free: 0.5156 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.427e-05/0.3383, allocations: 30.62 kB / 397.5 MB, free: 0.4922 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001127/0.3384, allocations: 423.6 kB / 397.9 MB, free: 96 kB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001043/0.3394, allocations: 0.5117 MB / 398.4 MB, free: 15.85 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001219/0.3407, allocations: 0.8394 MB / 399.3 MB, free: 15.2 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001253/0.3419, allocations: 0.6271 MB / 399.9 MB, free: 14.89 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.483e-06/0.3419, allocations: 3.406 kB / 399.9 MB, free: 14.89 MB / 318.1 MB Notification: Performance of matching and sorting (n=212) (initialization): time 0.004371/0.3463, allocations: 2.017 MB / 401.9 MB, free: 13.93 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.582e-05/0.3464, allocations: 8 kB / 401.9 MB, free: 13.93 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.114e-05/0.3464, allocations: 13.61 kB / 401.9 MB, free: 13.93 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002018/0.3484, allocations: 0.5217 MB / 402.4 MB, free: 13.42 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001224/0.3497, allocations: 288.5 kB / 402.7 MB, free: 13.16 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009735/0.3594, allocations: 8.745 MB / 411.5 MB, free: 3.953 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001397/0.3608, allocations: 84.03 kB / 411.6 MB, free: 3.871 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001655/0.361, allocations: 63.98 kB / 411.6 MB, free: 3.809 MB / 318.1 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 (158): * Single equations (assignments): 154 * 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.0009281/0.362, allocations: 354.9 kB / 412 MB, free: 3.473 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002552/0.3622, allocations: 110.7 kB / 412.1 MB, free: 3.363 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004587/0.3668, allocations: 1.907 MB / 414 MB, free: 1.453 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.464e-05/0.3669, allocations: 16 kB / 414 MB, free: 1.438 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.228e-05/0.3669, allocations: 8 kB / 414 MB, free: 1.43 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.879e-05/0.3669, allocations: 10.38 kB / 414 MB, free: 1.422 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00662/0.3735, allocations: 3.424 MB / 417.4 MB, free: 13.99 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.283e-06/0.3736, allocations: 0 / 417.4 MB, free: 13.99 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009732/0.3745, allocations: 206.6 kB / 417.6 MB, free: 13.8 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001974/0.3765, allocations: 0.5019 MB / 418.1 MB, free: 13.29 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001449/0.3767, allocations: 43.97 kB / 418.2 MB, free: 13.25 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009383/0.3861, allocations: 8.477 MB / 426.7 MB, free: 4.305 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.3861, allocations: 0 / 426.7 MB, free: 4.305 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005616/0.3917, allocations: 2.615 MB / 429.3 MB, free: 1.656 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005984/0.3924, allocations: 299.5 kB / 429.6 MB, free: 1.344 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001755/0.3925, allocations: 43.94 kB / 429.6 MB, free: 1.301 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007402/0.3933, allocations: 62.16 kB / 429.7 MB, free: 1.242 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003369/0.3936, allocations: 125.1 kB / 429.8 MB, free: 1.121 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.804e-05/0.3938, allocations: 55.97 kB / 429.8 MB, free: 1.066 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005833/0.3943, allocations: 435 kB / 430.3 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.3944, allocations: 0 / 430.3 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001718/0.3961, allocations: 420 kB / 430.7 MB, free: 240 kB / 334.1 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,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 (113): * Single equations (assignments): 103 * 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.0003497/0.3964, allocations: 201.4 kB / 430.9 MB, free: 28 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.003616/0.4001, allocations: 2.073 MB / 433 MB, free: 13.9 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.998e-06/0.4001, allocations: 4 kB / 433 MB, free: 13.9 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002125/0.4022, allocations: 1.41 MB / 434.4 MB, free: 12.44 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000665/0.4029, allocations: 93.56 kB / 434.5 MB, free: 12.35 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005167/0.4081, allocations: 3.333 MB / 437.8 MB, free: 9.004 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007457/0.4088, allocations: 1.228 MB / 439 MB, free: 7.742 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0008276/0.4097, allocations: 164.9 kB / 439.2 MB, free: 7.578 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002391/0.4099, allocations: 83.41 kB / 439.3 MB, free: 7.496 MB / 350.1 MB Notification: Performance of SimCode: time 5.51e-07/0.4099, allocations: 0 / 439.3 MB, free: 7.496 MB / 350.1 MB Notification: Performance of Templates: time 0.02622/0.4361, allocations: 15.99 MB / 455.2 MB, free: 7.582 MB / 366.1 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.makefile (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.sim & ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches