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.002769/0.002775, allocations: 187.5 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.653/3.653, allocations: 205.4 MB / 222.5 MB, free: 13.77 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.001906/0.001907, allocations: 90.88 kB / 270.9 MB, free: 13.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005971/0.0005974, allocations: 8 kB / 327 MB, free: 15.08 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2301/0.2308, allocations: 47.58 MB / 374.5 MB, free: 15.42 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor): time 0.01666/0.2475, allocations: 6.314 MB / 380.9 MB, free: 9.078 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.01062/0.2582, allocations: 2.771 MB / 383.6 MB, free: 6.297 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001865/0.2601, allocations: 31.88 kB / 383.7 MB, free: 6.266 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002507/0.2627, allocations: 318 kB / 384 MB, free: 5.953 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004954/0.2677, allocations: 0.7126 MB / 384.7 MB, free: 5.238 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005559/0.2734, allocations: 0.9972 MB / 385.7 MB, free: 4.238 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.004387/0.2778, allocations: 1.054 MB / 386.7 MB, free: 3.184 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006358/0.2842, allocations: 1.424 MB / 388.2 MB, free: 1.703 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001975/0.2863, allocations: 0.5019 MB / 388.7 MB, free: 1.199 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002353/0.2887, allocations: 0.6378 MB / 389.3 MB, free: 0.5586 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006995/0.2895, allocations: 67.94 kB / 389.4 MB, free: 0.4922 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002324/0.2918, allocations: 327.6 kB / 389.7 MB, free: 176 kB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.3955/0.6874, allocations: 247.2 kB / 389.9 MB, free: 10.2 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001028/0.6885, allocations: 292.7 kB / 390.2 MB, free: 10.16 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005938/0.6945, allocations: 1.669 MB / 391.9 MB, free: 10.04 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.6946, allocations: 1.531 kB / 391.9 MB, free: 10.04 MB / 282.7 MB Notification: Performance of FrontEnd: time 5.19e-06/0.6946, allocations: 0 / 391.9 MB, free: 10.04 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001195/0.6947, allocations: 0 / 391.9 MB, free: 10.04 MB / 282.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.01338/0.7081, allocations: 1.884 MB / 393.8 MB, free: 9.199 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.289e-05/0.7082, allocations: 8.469 kB / 393.8 MB, free: 9.199 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01077/0.719, allocations: 0.6335 MB / 394.4 MB, free: 9.117 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004506/0.7236, allocations: 0.8191 MB / 395.2 MB, free: 8.805 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000503/0.7242, allocations: 151.4 kB / 395.4 MB, free: 8.762 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001217/0.7254, allocations: 155.9 kB / 395.5 MB, free: 8.762 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009832/0.7353, allocations: 1.357 MB / 396.9 MB, free: 8.676 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000189/0.7356, allocations: 9.078 kB / 396.9 MB, free: 8.672 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000739/0.7363, allocations: 59.45 kB / 397 MB, free: 8.672 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.944e-05/0.7364, allocations: 34.5 kB / 397 MB, free: 8.672 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009459/0.7459, allocations: 1.37 MB / 398.4 MB, free: 8.648 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0242/0.7702, allocations: 5.003 MB / 403.4 MB, free: 7.129 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008228/0.7785, allocations: 2.46 MB / 405.8 MB, free: 5.52 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004187/0.779, allocations: 111.8 kB / 405.9 MB, free: 5.418 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004167/0.7832, allocations: 0.7427 MB / 406.7 MB, free: 5.152 MB / 282.7 MB Notification: Performance of pre-optimization done (n=134): time 8.316e-06/0.7832, allocations: 4 kB / 406.7 MB, free: 5.148 MB / 282.7 MB Notification: Performance of matching and sorting (n=165): time 0.03827/0.8215, allocations: 5.533 MB / 412.2 MB, free: 2.543 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001664/0.8218, allocations: 160.1 kB / 412.4 MB, free: 2.379 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001855/0.8236, allocations: 0.6136 MB / 413 MB, free: 2.004 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005383/0.8242, allocations: 56.89 kB / 413 MB, free: 1.949 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008604/0.8251, allocations: 0.606 MB / 413.6 MB, free: 1.395 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001254/0.8264, allocations: 0.5374 MB / 414.2 MB, free: 0.9258 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002469/0.8267, allocations: 36.38 kB / 414.2 MB, free: 0.8984 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.000217/0.827, allocations: 377.2 kB / 414.6 MB, free: 0.5352 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003036/0.83, allocations: 0.5173 MB / 415.1 MB, free: 292 kB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003669/0.8338, allocations: 0.8719 MB / 416 MB, free: 15.6 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003671/0.8375, allocations: 0.6382 MB / 416.6 MB, free: 15.29 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.769e-05/0.8376, allocations: 4.281 kB / 416.6 MB, free: 15.29 MB / 298.7 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.01269/0.8503, allocations: 2.027 MB / 418.6 MB, free: 14.29 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.081e-05/0.8504, allocations: 12 kB / 418.7 MB, free: 14.27 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.393e-05/0.8505, allocations: 15.98 kB / 418.7 MB, free: 14.26 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005307/0.8558, allocations: 0.5229 MB / 419.2 MB, free: 13.73 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00353/0.8594, allocations: 310.6 kB / 419.5 MB, free: 13.45 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02397/0.8835, allocations: 8.734 MB / 428.2 MB, free: 4.234 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002936/0.8865, allocations: 97.75 kB / 428.3 MB, free: 4.141 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004873/0.887, allocations: 68 kB / 428.4 MB, free: 4.074 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * 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 () * Number of clocked 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,(1,100.0%) 19} * Non-linear torn systems: 1 {1 7} Notification: Performance of prepare postOptimizeDAE: time 0.001849/0.8889, allocations: 351.5 kB / 428.7 MB, free: 3.742 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005499/0.8895, allocations: 114.7 kB / 428.8 MB, free: 3.629 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01181/0.9013, allocations: 1.901 MB / 430.7 MB, free: 1.727 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.171e-05/0.9014, allocations: 16 kB / 430.8 MB, free: 1.711 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.205e-05/0.9015, allocations: 8.562 kB / 430.8 MB, free: 1.703 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.26e-05/0.9015, allocations: 7.969 kB / 430.8 MB, free: 1.695 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01832/0.9199, allocations: 3.45 MB / 434.2 MB, free: 14.24 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.002e-05/0.92, allocations: 0 / 434.2 MB, free: 14.24 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002985/0.923, allocations: 210.4 kB / 434.4 MB, free: 14.04 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005265/0.9283, allocations: 0.518 MB / 435 MB, free: 13.52 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004796/0.9288, allocations: 39.5 kB / 435 MB, free: 13.48 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02336/0.9522, allocations: 8.465 MB / 443.5 MB, free: 4.547 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.568e-06/0.9523, allocations: 0 / 443.5 MB, free: 4.547 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0161/0.9684, allocations: 2.647 MB / 446.1 MB, free: 1.895 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001606/0.9701, allocations: 294.9 kB / 446.4 MB, free: 1.59 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005216/0.9707, allocations: 47.94 kB / 446.4 MB, free: 1.543 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002169/0.9729, allocations: 63.97 kB / 446.5 MB, free: 1.48 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007661/0.9737, allocations: 129.1 kB / 446.6 MB, free: 1.355 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002637/0.974, allocations: 51.98 kB / 446.7 MB, free: 1.305 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001311/0.9753, allocations: 418.7 kB / 447.1 MB, free: 0.8984 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.02e-07/0.9753, allocations: 0 / 447.1 MB, free: 0.8984 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.004695/0.98, allocations: 420.5 kB / 447.5 MB, free: 500 kB / 314.7 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,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) * Number of clocked states: 0 () * 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 {(2,100.0%) 18,(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.001017/0.9811, allocations: 198.3 kB / 447.7 MB, free: 308 kB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.009841/0.991, allocations: 2.101 MB / 449.8 MB, free: 14.2 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.584e-05/0.9911, allocations: 0.75 kB / 449.8 MB, free: 14.2 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00663/0.9977, allocations: 1.435 MB / 451.2 MB, free: 12.73 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001672/0.9995, allocations: 103.2 kB / 451.3 MB, free: 12.64 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0141/1.014, allocations: 3.34 MB / 454.7 MB, free: 9.277 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001934/1.016, allocations: 1.228 MB / 455.9 MB, free: 8.02 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00112/1.017, allocations: 99.39 kB / 456 MB, free: 7.922 MB / 330.7 MB Notification: Performance of SimCode: time 1.854e-06/1.017, allocations: 0 / 456 MB, free: 7.922 MB / 330.7 MB Notification: Performance of Templates: time 0.1065/1.123, allocations: 37.24 MB / 493.2 MB, free: 2.633 MB / 362.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