Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|coil.Phi|coil.i|r_mLeak.port_p.Phi|rootMeanSquare.mean.x|sourceQS.pin_p.reference.gamma",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor") translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|coil.Phi|coil.i|r_mLeak.port_p.Phi|rootMeanSquare.mean.x|sourceQS.pin_p.reference.gamma",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001346/0.001346, allocations: 102.5 kB / 17.05 MB, free: 6.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00152/0.00152, allocations: 194.9 kB / 18 MB, free: 5.199 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.324/1.324, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009489/0.0009489, allocations: 47.92 kB / 351.3 MB, free: 3.262 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2498/0.2508, allocations: 49.44 MB / 400.7 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor): time 0.00819/0.259, allocations: 6.459 MB / 407.2 MB, free: 2.402 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005151/0.2642, allocations: 2.531 MB / 409.7 MB, free: 15.86 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006448/0.2649, allocations: 23.94 kB / 409.7 MB, free: 15.84 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00292/0.2679, allocations: 1.278 MB / 411 MB, free: 14.56 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001657/0.2696, allocations: 0.6934 MB / 411.7 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002022/0.2716, allocations: 1.108 MB / 412.8 MB, free: 12.75 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009918/0.2726, allocations: 1.059 MB / 413.9 MB, free: 11.69 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001153/0.2738, allocations: 0.8873 MB / 414.8 MB, free: 10.78 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004711/0.2742, allocations: 454.3 kB / 415.2 MB, free: 10.34 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005941/0.2748, allocations: 0.5446 MB / 415.7 MB, free: 9.789 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001133/0.275, allocations: 96 kB / 415.8 MB, free: 9.695 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007471/0.2757, allocations: 399.7 kB / 416.2 MB, free: 9.305 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001793/0.2759, allocations: 235.1 kB / 416.5 MB, free: 9.074 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004161/0.2763, allocations: 0.5131 MB / 417 MB, free: 8.559 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001526/0.2779, allocations: 1.512 MB / 418.5 MB, free: 7.043 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.2779, allocations: 0 / 418.5 MB, free: 7.043 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.2779, allocations: 4 kB / 418.5 MB, free: 7.039 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.279e-05/0.2779, allocations: 4 kB / 418.5 MB, free: 7.035 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 282 * Number of variables: 282 Notification: Performance of Generate backend data structure: time 0.004165/0.2821, allocations: 1.624 MB / 420.1 MB, free: 5.355 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.741e-05/0.2821, allocations: 12.03 kB / 420.1 MB, free: 5.344 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003102/0.2852, allocations: 475.2 kB / 420.6 MB, free: 4.879 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006496/0.2859, allocations: 0.4904 MB / 421.1 MB, free: 4.352 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.797e-05/0.286, allocations: 82.22 kB / 421.2 MB, free: 4.27 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001621/0.2862, allocations: 112 kB / 421.3 MB, free: 4.16 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00175/0.2879, allocations: 0.9745 MB / 422.2 MB, free: 3.156 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.788e-05/0.288, allocations: 3.906 kB / 422.3 MB, free: 3.152 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.569e-05/0.2881, allocations: 44 kB / 422.3 MB, free: 3.109 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.201e-05/0.2881, allocations: 28 kB / 422.3 MB, free: 3.082 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001822/0.2899, allocations: 0.9651 MB / 423.3 MB, free: 2.109 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005558/0.2955, allocations: 3.658 MB / 426.9 MB, free: 14.23 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001889/0.2974, allocations: 1.548 MB / 428.5 MB, free: 12.51 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007298/0.2981, allocations: 436.3 kB / 428.9 MB, free: 12.09 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001226/0.2983, allocations: 102.2 kB / 429 MB, free: 11.96 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007978/0.2991, allocations: 486.4 kB / 429.5 MB, free: 11.47 MB / 350.1 MB Notification: Performance of pre-optimization done (n=96): time 2.996e-06/0.2991, allocations: 0 / 429.5 MB, free: 11.47 MB / 350.1 MB Notification: Performance of matching and sorting (n=125): time 0.008696/0.3078, allocations: 3.994 MB / 433.5 MB, free: 7.355 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.968e-05/0.3079, allocations: 145.5 kB / 433.6 MB, free: 7.184 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004464/0.3084, allocations: 393.5 kB / 434 MB, free: 6.793 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.185e-05/0.3084, allocations: 45.7 kB / 434.1 MB, free: 6.742 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002964/0.3087, allocations: 423.6 kB / 434.5 MB, free: 6.32 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002904/0.309, allocations: 421.8 kB / 434.9 MB, free: 5.902 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002922/0.3093, allocations: 206.9 kB / 435.1 MB, free: 5.695 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001472/0.3095, allocations: 378.8 kB / 435.5 MB, free: 5.316 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006814/0.3102, allocations: 354.5 kB / 435.8 MB, free: 4.969 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007988/0.311, allocations: 0.5468 MB / 436.3 MB, free: 4.359 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001482/0.3125, allocations: 0.9372 MB / 437.3 MB, free: 3.363 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.476e-06/0.3125, allocations: 4 kB / 437.3 MB, free: 3.359 MB / 350.1 MB Notification: Performance of matching and sorting (n=158) (initialization): time 0.002426/0.3149, allocations: 1.39 MB / 438.7 MB, free: 1.953 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.022e-05/0.315, allocations: 4 kB / 438.7 MB, free: 1.949 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.217e-05/0.315, allocations: 8 kB / 438.7 MB, free: 1.941 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008566/0.3159, allocations: 347 kB / 439 MB, free: 1.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008374/0.3167, allocations: 207.7 kB / 439.2 MB, free: 1.387 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007772/0.3245, allocations: 8.488 MB / 447.7 MB, free: 8.348 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007138/0.3252, allocations: 52.05 kB / 447.8 MB, free: 8.297 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.369e-05/0.3253, allocations: 40 kB / 447.8 MB, free: 8.258 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,rootMeanSquare.mean.y_last,$PRE.rootMeanSquare.mean.y_last) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (114): * Single equations (assignments): 110 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,4,100.0%), (1,2,100.0%), (1,19,100.0%), (1,19,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000446/0.3258, allocations: 257.6 kB / 448.1 MB, free: 7.996 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001071/0.3259, allocations: 71.16 kB / 448.1 MB, free: 7.926 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002406/0.3283, allocations: 1.305 MB / 449.4 MB, free: 6.605 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.01e-05/0.3283, allocations: 16 kB / 449.5 MB, free: 6.59 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.214e-06/0.3283, allocations: 8 kB / 449.5 MB, free: 6.582 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.418e-05/0.3283, allocations: 7.984 kB / 449.5 MB, free: 6.574 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003939/0.3323, allocations: 2.522 MB / 452 MB, free: 3.961 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.434e-06/0.3323, allocations: 4 kB / 452 MB, free: 3.957 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006691/0.333, allocations: 151.8 kB / 452.1 MB, free: 3.809 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007823/0.3338, allocations: 338.2 kB / 452.5 MB, free: 3.469 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.043e-05/0.3339, allocations: 24 kB / 452.5 MB, free: 3.445 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007325/0.3412, allocations: 8.113 MB / 460.6 MB, free: 10.78 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.3412, allocations: 0 / 460.6 MB, free: 10.78 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003083/0.3443, allocations: 1.829 MB / 462.4 MB, free: 8.898 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002945/0.3446, allocations: 220.2 kB / 462.7 MB, free: 8.664 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.338e-05/0.3447, allocations: 24 kB / 462.7 MB, free: 8.641 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004741/0.3452, allocations: 39.97 kB / 462.7 MB, free: 8.602 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001974/0.3454, allocations: 100.8 kB / 462.8 MB, free: 8.504 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.166e-05/0.3455, allocations: 35.98 kB / 462.8 MB, free: 8.469 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002911/0.3458, allocations: 267.2 kB / 463.1 MB, free: 8.207 MB / 382.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3458, allocations: 0 / 463.1 MB, free: 8.207 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001162/0.3469, allocations: 319.9 kB / 463.4 MB, free: 7.895 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (coil.i,rootMeanSquare.mean.x,sourceQS.pin_p.reference.gamma) * Number of discrete variables: 2 ($whenCondition1,rootMeanSquare.mean.y_last) * Number of discrete states: 1 (rootMeanSquare.mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (85): * Single equations (assignments): 80 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,19,100.0%), (1,2,100.0%), (1,4,100.0%), (1,17,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002923/0.3472, allocations: 171 kB / 463.6 MB, free: 7.719 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002505/0.3497, allocations: 1.613 MB / 465.2 MB, free: 6.062 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.3498, allocations: 8.062 kB / 465.2 MB, free: 6.055 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001508/0.3513, allocations: 1.138 MB / 466.3 MB, free: 4.863 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005146/0.3518, allocations: 85.42 kB / 466.4 MB, free: 4.781 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003293/0.3551, allocations: 1.931 MB / 468.4 MB, free: 2.801 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005723/0.3557, allocations: 1.021 MB / 469.4 MB, free: 1.75 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003745/0.3561, allocations: 102.2 kB / 469.5 MB, free: 1.648 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001625/0.3562, allocations: 55.42 kB / 469.5 MB, free: 1.594 MB / 382.1 MB Notification: Performance of SimCode: time 1.052e-06/0.3563, allocations: 0 / 469.5 MB, free: 1.594 MB / 382.1 MB Notification: Performance of Templates: time 0.01803/0.3743, allocations: 11.15 MB / 480.7 MB, free: 6.453 MB / 398.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/LinearInductor/LinearInductor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches