Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) 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 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_3.2.3_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_3.2.3_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.001069/0.001069, allocations: 112.5 kB / 17.28 MB, free: 6.199 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.001031/0.001031, allocations: 185.3 kB / 18.2 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.486/1.486, allocations: 205.1 MB / 224 MB, free: 12.44 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001197/0.001197, allocations: 52.14 kB / 280.2 MB, free: 3.48 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09549/0.0967, allocations: 46.63 MB / 326.8 MB, free: 4.785 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor): time 0.008441/0.1052, allocations: 6.425 MB / 333.2 MB, free: 14.32 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00444/0.1097, allocations: 2.539 MB / 335.7 MB, free: 11.77 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003738/0.1101, allocations: 27.94 kB / 335.8 MB, free: 11.74 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002727/0.1128, allocations: 1.179 MB / 337 MB, free: 10.56 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001517/0.1144, allocations: 0.6453 MB / 337.6 MB, free: 9.91 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001927/0.1163, allocations: 1.024 MB / 338.6 MB, free: 8.883 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001102/0.1174, allocations: 1.09 MB / 339.7 MB, free: 7.785 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001275/0.1187, allocations: 0.9814 MB / 340.7 MB, free: 6.781 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004867/0.1192, allocations: 454.3 kB / 341.1 MB, free: 6.336 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006134/0.1198, allocations: 0.5485 MB / 341.7 MB, free: 5.785 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001302/0.1199, allocations: 100 kB / 341.8 MB, free: 5.688 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008068/0.1208, allocations: 411.6 kB / 342.2 MB, free: 5.285 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001862/0.121, allocations: 243.1 kB / 342.4 MB, free: 5.047 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004199/0.1214, allocations: 0.5363 MB / 343 MB, free: 4.508 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001359/0.1228, allocations: 1.495 MB / 344.5 MB, free: 3.008 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.62e-06/0.1228, allocations: 0 / 344.5 MB, free: 3.008 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.1228, allocations: 0 / 344.5 MB, free: 3.008 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.285e-05/0.1228, allocations: 0 / 344.5 MB, free: 3.008 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 291 * Number of variables: 291 Notification: Performance of Generate backend data structure: time 0.004074/0.1269, allocations: 1.659 MB / 346.1 MB, free: 1.297 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.787e-05/0.1269, allocations: 8.031 kB / 346.1 MB, free: 1.289 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003731/0.1307, allocations: 0.5772 MB / 346.7 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000574/0.1312, allocations: 498 kB / 347.2 MB, free: 188 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.296e-05/0.1313, allocations: 86.23 kB / 347.3 MB, free: 100 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000167/0.1315, allocations: 112.1 kB / 347.4 MB, free: 15.98 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001747/0.1333, allocations: 1.018 MB / 348.4 MB, free: 14.94 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.343e-05/0.1333, allocations: 7.906 kB / 348.4 MB, free: 14.93 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.309e-05/0.1334, allocations: 44 kB / 348.4 MB, free: 14.89 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.098e-05/0.1334, allocations: 28 kB / 348.5 MB, free: 14.86 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001772/0.1352, allocations: 1.032 MB / 349.5 MB, free: 13.82 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005502/0.1407, allocations: 3.869 MB / 353.4 MB, free: 9.723 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002114/0.1428, allocations: 2.052 MB / 355.4 MB, free: 7.402 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007403/0.1436, allocations: 451.5 kB / 355.9 MB, free: 6.961 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001055/0.1437, allocations: 102.1 kB / 356 MB, free: 6.844 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008225/0.1445, allocations: 486.4 kB / 356.4 MB, free: 6.34 MB / 302.1 MB Notification: Performance of pre-optimization done (n=98): time 2.805e-06/0.1446, allocations: 0 / 356.4 MB, free: 6.34 MB / 302.1 MB Notification: Performance of matching and sorting (n=127): time 0.00853/0.1531, allocations: 4.01 MB / 360.5 MB, free: 2.215 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.963e-05/0.1532, allocations: 149.5 kB / 360.6 MB, free: 2.039 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004373/0.1537, allocations: 405.8 kB / 361 MB, free: 1.633 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.982e-05/0.1537, allocations: 49.7 kB / 361 MB, free: 1.578 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002887/0.154, allocations: 447.4 kB / 361.5 MB, free: 1.133 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002927/0.1543, allocations: 433.7 kB / 361.9 MB, free: 0.7031 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002905/0.1546, allocations: 214.8 kB / 362.1 MB, free: 496 kB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001446/0.1548, allocations: 382.7 kB / 362.5 MB, free: 104 kB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007022/0.1555, allocations: 362.5 kB / 362.8 MB, free: 15.75 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008977/0.1564, allocations: 0.5915 MB / 363.4 MB, free: 15.07 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001568/0.158, allocations: 1.001 MB / 364.4 MB, free: 14 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.36e-06/0.158, allocations: 4 kB / 364.4 MB, free: 13.99 MB / 318.1 MB Notification: Performance of matching and sorting (n=166) (initialization): time 0.002486/0.1605, allocations: 1.429 MB / 365.9 MB, free: 12.55 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.371e-05/0.1605, allocations: 11.94 kB / 365.9 MB, free: 12.54 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.175e-05/0.1605, allocations: 8 kB / 365.9 MB, free: 12.53 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008578/0.1614, allocations: 359.1 kB / 366.2 MB, free: 12.16 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000825/0.1622, allocations: 215.7 kB / 366.4 MB, free: 11.95 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007764/0.17, allocations: 8.492 MB / 374.9 MB, free: 2.906 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008712/0.1709, allocations: 47.98 kB / 375 MB, free: 2.859 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.964e-05/0.171, allocations: 44 kB / 375 MB, free: 2.816 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,rootMeanSquare.mean.y,$PRE.rootMeanSquare.mean.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (122): * Single equations (assignments): 118 * 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.000545/0.1715, allocations: 269.6 kB / 375.3 MB, free: 2.543 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001176/0.1717, allocations: 71.16 kB / 375.4 MB, free: 2.473 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002468/0.1741, allocations: 1.329 MB / 376.7 MB, free: 1.129 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.299e-05/0.1742, allocations: 12 kB / 376.7 MB, free: 1.117 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.157e-05/0.1742, allocations: 11.94 kB / 376.7 MB, free: 1.105 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.464e-05/0.1742, allocations: 15.91 kB / 376.7 MB, free: 1.09 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1859/0.3601, allocations: 2.554 MB / 379.3 MB, free: 51.62 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.333e-06/0.3602, allocations: 2.75 kB / 379.3 MB, free: 51.62 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007783/0.361, allocations: 158.2 kB / 379.4 MB, free: 51.62 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009367/0.3619, allocations: 330 kB / 379.8 MB, free: 51.59 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.372e-05/0.362, allocations: 25.98 kB / 379.8 MB, free: 51.59 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00665/0.3687, allocations: 8.118 MB / 387.9 MB, free: 45.25 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.51e-06/0.3687, allocations: 2.547 kB / 387.9 MB, free: 45.25 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003512/0.3722, allocations: 1.842 MB / 389.8 MB, free: 44.37 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003399/0.3726, allocations: 219.9 kB / 390 MB, free: 44.23 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001002/0.3727, allocations: 28.61 kB / 390 MB, free: 44.21 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005082/0.3732, allocations: 43.11 kB / 390 MB, free: 44.19 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002446/0.3734, allocations: 105.9 kB / 390.1 MB, free: 44.17 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.669e-05/0.3735, allocations: 39.19 kB / 390.2 MB, free: 44.16 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003572/0.3739, allocations: 276 kB / 390.4 MB, free: 44.02 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3739, allocations: 0 / 390.4 MB, free: 44.02 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001419/0.3753, allocations: 320.6 kB / 390.8 MB, free: 43.97 MB / 318.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) * Number of discrete states: 1 (rootMeanSquare.mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (87): * Single equations (assignments): 82 * 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.0003398/0.3756, allocations: 166.1 kB / 390.9 MB, free: 43.86 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003237/0.3789, allocations: 1.683 MB / 392.6 MB, free: 42.95 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.649e-06/0.3789, allocations: 0 / 392.6 MB, free: 42.95 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001569/0.3805, allocations: 1.147 MB / 393.8 MB, free: 42.22 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006011/0.3811, allocations: 75.67 kB / 393.8 MB, free: 42.18 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003858/0.385, allocations: 2.485 MB / 396.3 MB, free: 40.68 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006243/0.3856, allocations: 1.03 MB / 397.3 MB, free: 39.96 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005036/0.3861, allocations: 103.1 kB / 397.4 MB, free: 39.93 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001567/0.3863, allocations: 57.95 kB / 397.5 MB, free: 39.91 MB / 318.1 MB Notification: Performance of SimCode: time 9.12e-07/0.3863, allocations: 0 / 397.5 MB, free: 39.91 MB / 318.1 MB Notification: Performance of Templates: time 0.01797/0.4043, allocations: 11.12 MB / 408.6 MB, free: 33.85 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.sim & ./Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/LinearInductor/LinearInductor.csv","../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches