Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.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.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_trunk_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_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001092/0.001092, allocations: 117.6 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001248/0.001248, allocations: 199.9 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.35/1.35, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001169/0.001169, allocations: 63.88 kB / 358.7 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3064/0.3076, allocations: 50.55 MB / 409.2 MB, free: 1.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor): time 0.008044/0.3157, allocations: 6.483 MB / 415.7 MB, free: 11.03 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004709/0.3204, allocations: 2.636 MB / 418.4 MB, free: 8.383 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008407/0.3213, allocations: 23.88 kB / 418.4 MB, free: 8.359 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00313/0.3245, allocations: 1.267 MB / 419.7 MB, free: 7.09 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00176/0.3262, allocations: 0.5318 MB / 420.2 MB, free: 6.555 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002513/0.3288, allocations: 1.265 MB / 421.5 MB, free: 5.289 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00161/0.3304, allocations: 1.071 MB / 422.5 MB, free: 4.215 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001352/0.3318, allocations: 0.899 MB / 423.4 MB, free: 3.293 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005615/0.3323, allocations: 454.3 kB / 423.9 MB, free: 2.848 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000567/0.3329, allocations: 0.5446 MB / 424.4 MB, free: 2.301 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001169/0.333, allocations: 96 kB / 424.5 MB, free: 2.207 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007748/0.3338, allocations: 415.6 kB / 424.9 MB, free: 1.801 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001862/0.334, allocations: 235.2 kB / 425.1 MB, free: 1.57 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004349/0.3345, allocations: 0.5286 MB / 425.7 MB, free: 1.039 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001498/0.336, allocations: 1.516 MB / 427.2 MB, free: 15.52 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.016e-06/0.336, allocations: 0 / 427.2 MB, free: 15.52 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.12e-07/0.336, allocations: 0 / 427.2 MB, free: 15.52 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.166e-05/0.336, allocations: 0 / 427.2 MB, free: 15.52 MB / 350.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.003976/0.34, allocations: 1.644 MB / 428.8 MB, free: 13.82 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.682e-05/0.34, allocations: 8.031 kB / 428.8 MB, free: 13.81 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003268/0.3433, allocations: 495.2 kB / 429.3 MB, free: 13.33 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006509/0.344, allocations: 0.4943 MB / 429.8 MB, free: 12.8 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.461e-05/0.344, allocations: 82.22 kB / 429.9 MB, free: 12.71 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001535/0.3442, allocations: 115.9 kB / 430 MB, free: 12.6 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001834/0.3461, allocations: 0.9744 MB / 431 MB, free: 11.6 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.405e-05/0.3461, allocations: 3.984 kB / 431 MB, free: 11.59 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.234e-05/0.3462, allocations: 44 kB / 431 MB, free: 11.55 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.171e-05/0.3462, allocations: 28 kB / 431.1 MB, free: 11.52 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001767/0.348, allocations: 0.9613 MB / 432 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005416/0.3534, allocations: 3.752 MB / 435.8 MB, free: 6.574 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001927/0.3554, allocations: 1.556 MB / 437.3 MB, free: 4.844 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000743/0.3561, allocations: 434.6 kB / 437.8 MB, free: 4.422 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002009/0.3563, allocations: 187.2 kB / 437.9 MB, free: 4.199 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008984/0.3572, allocations: 470.5 kB / 438.4 MB, free: 3.719 MB / 350.1 MB Notification: Performance of pre-optimization done (n=96): time 3.046e-06/0.3573, allocations: 4 kB / 438.4 MB, free: 3.715 MB / 350.1 MB Notification: Performance of matching and sorting (n=125): time 0.009137/0.3664, allocations: 4.001 MB / 442.4 MB, free: 15.59 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001067/0.3665, allocations: 141.5 kB / 442.5 MB, free: 15.43 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004776/0.367, allocations: 405.5 kB / 442.9 MB, free: 15.02 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.329e-05/0.3671, allocations: 49.7 kB / 443 MB, free: 14.97 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003898/0.3675, allocations: 431.7 kB / 443.4 MB, free: 14.54 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002927/0.3678, allocations: 417.8 kB / 443.8 MB, free: 14.12 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003025/0.3681, allocations: 206.8 kB / 444 MB, free: 13.92 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001706/0.3683, allocations: 382.6 kB / 444.4 MB, free: 13.54 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006862/0.369, allocations: 358.5 kB / 444.7 MB, free: 13.18 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009461/0.3699, allocations: 0.539 MB / 445.3 MB, free: 12.58 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001631/0.3716, allocations: 0.946 MB / 446.2 MB, free: 11.58 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.948e-06/0.3716, allocations: 0 / 446.2 MB, free: 11.58 MB / 366.1 MB Notification: Performance of matching and sorting (n=158) (initialization): time 0.002512/0.3741, allocations: 1.393 MB / 447.6 MB, free: 10.17 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.147e-05/0.3741, allocations: 8 kB / 447.6 MB, free: 10.16 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.67e-05/0.3742, allocations: 8 kB / 447.6 MB, free: 10.15 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009151/0.3751, allocations: 347.2 kB / 448 MB, free: 9.801 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008593/0.376, allocations: 207.7 kB / 448.2 MB, free: 9.598 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007754/0.3837, allocations: 8.484 MB / 456.7 MB, free: 0.5625 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007119/0.3845, allocations: 47.98 kB / 456.7 MB, free: 0.5156 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.839e-05/0.3846, allocations: 43.98 kB / 456.7 MB, free: 484 kB / 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.0004131/0.385, allocations: 269.5 kB / 457 MB, free: 204 kB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001097/0.3851, allocations: 75.06 kB / 457.1 MB, free: 128 kB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002517/0.3876, allocations: 1.301 MB / 458.4 MB, free: 14.81 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.163e-05/0.3876, allocations: 12 kB / 458.4 MB, free: 14.8 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.729e-06/0.3877, allocations: 8 kB / 458.4 MB, free: 14.79 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.146e-05/0.3877, allocations: 7.969 kB / 458.4 MB, free: 14.78 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004039/0.3917, allocations: 2.53 MB / 460.9 MB, free: 12.16 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.069e-06/0.3917, allocations: 0 / 460.9 MB, free: 12.16 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006893/0.3924, allocations: 156 kB / 461.1 MB, free: 12.01 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007651/0.3932, allocations: 327.1 kB / 461.4 MB, free: 11.68 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.447e-05/0.3933, allocations: 24 kB / 461.4 MB, free: 11.65 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007534/0.4008, allocations: 8.123 MB / 469.6 MB, free: 2.98 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.474e-06/0.4009, allocations: 0 / 469.6 MB, free: 2.98 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003259/0.4041, allocations: 1.829 MB / 471.4 MB, free: 1.105 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002893/0.4044, allocations: 220.2 kB / 471.6 MB, free: 0.8711 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.471e-05/0.4045, allocations: 28 kB / 471.6 MB, free: 0.8438 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000493/0.405, allocations: 43.91 kB / 471.7 MB, free: 0.8008 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001986/0.4052, allocations: 96.75 kB / 471.8 MB, free: 0.707 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.272e-05/0.4053, allocations: 43.92 kB / 471.8 MB, free: 0.6641 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003018/0.4056, allocations: 275.2 kB / 472.1 MB, free: 404 kB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4056, allocations: 4 kB / 472.1 MB, free: 400 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.001168/0.4068, allocations: 312 kB / 472.4 MB, free: 88 kB / 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.0003125/0.4071, allocations: 179 kB / 472.6 MB, free: 15.9 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002609/0.4097, allocations: 1.612 MB / 474.2 MB, free: 14.24 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.556e-06/0.4098, allocations: 0 / 474.2 MB, free: 14.24 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001564/0.4113, allocations: 1.143 MB / 475.3 MB, free: 13.04 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005305/0.4119, allocations: 85.47 kB / 475.4 MB, free: 12.96 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003362/0.4152, allocations: 1.932 MB / 477.3 MB, free: 10.98 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005812/0.4158, allocations: 1.024 MB / 478.4 MB, free: 9.93 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003899/0.4162, allocations: 102.2 kB / 478.5 MB, free: 9.828 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001606/0.4164, allocations: 55.42 kB / 478.5 MB, free: 9.773 MB / 398.1 MB Notification: Performance of SimCode: time 7.11e-07/0.4164, allocations: 0 / 478.5 MB, free: 9.773 MB / 398.1 MB Notification: Performance of Templates: time 0.01852/0.4349, allocations: 11.29 MB / 489.8 MB, free: 14.48 MB / 414.1 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.makefile (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.sim & ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches