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.00157/0.00157, allocations: 111.8 kB / 17.74 MB, free: 5.332 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.001878/0.001878, allocations: 185.5 kB / 18.66 MB, free: 4.414 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.358/1.358, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001183/0.001183, allocations: 43.92 kB / 352 MB, free: 3.254 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2643/0.2655, allocations: 49.44 MB / 401.4 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor): time 0.007746/0.2733, allocations: 6.456 MB / 407.9 MB, free: 2.383 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004881/0.2782, allocations: 2.538 MB / 410.4 MB, free: 15.84 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000898/0.2792, allocations: 23.94 kB / 410.4 MB, free: 15.81 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003251/0.2825, allocations: 1.278 MB / 411.7 MB, free: 14.53 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002248/0.2847, allocations: 0.6757 MB / 412.4 MB, free: 13.85 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00262/0.2874, allocations: 1.105 MB / 413.5 MB, free: 12.74 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002095/0.2895, allocations: 1.067 MB / 414.5 MB, free: 11.67 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001942/0.2914, allocations: 0.8924 MB / 415.4 MB, free: 10.76 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008777/0.2923, allocations: 446.4 kB / 415.9 MB, free: 10.32 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001006/0.2933, allocations: 0.5406 MB / 416.4 MB, free: 9.781 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003405/0.2937, allocations: 100 kB / 416.5 MB, free: 9.684 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001191/0.2949, allocations: 407.6 kB / 416.9 MB, free: 9.285 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003437/0.2953, allocations: 223.2 kB / 417.1 MB, free: 9.066 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007662/0.296, allocations: 0.5209 MB / 417.7 MB, free: 8.543 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002646/0.2987, allocations: 1.499 MB / 419.1 MB, free: 7.039 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.2987, allocations: 4 kB / 419.2 MB, free: 7.035 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.685e-06/0.2987, allocations: 0 / 419.2 MB, free: 7.035 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.09e-05/0.2988, allocations: 0 / 419.2 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.006584/0.3054, allocations: 1.632 MB / 420.8 MB, free: 5.348 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.589e-05/0.3055, allocations: 12.02 kB / 420.8 MB, free: 5.336 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004432/0.3099, allocations: 483.2 kB / 421.3 MB, free: 4.863 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001099/0.311, allocations: 0.4904 MB / 421.8 MB, free: 4.336 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001021/0.3112, allocations: 82.22 kB / 421.8 MB, free: 4.254 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002322/0.3114, allocations: 108 kB / 421.9 MB, free: 4.148 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002672/0.3141, allocations: 0.9667 MB / 422.9 MB, free: 3.152 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.478e-05/0.3141, allocations: 7.906 kB / 422.9 MB, free: 3.145 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001362/0.3143, allocations: 44 kB / 423 MB, free: 3.102 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.146e-05/0.3143, allocations: 31.98 kB / 423 MB, free: 3.07 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002695/0.317, allocations: 0.9652 MB / 424 MB, free: 2.098 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007807/0.3249, allocations: 3.654 MB / 427.6 MB, free: 14.23 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002428/0.3273, allocations: 1.548 MB / 429.2 MB, free: 12.5 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007448/0.3281, allocations: 436.4 kB / 429.6 MB, free: 12.08 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001222/0.3282, allocations: 106 kB / 429.7 MB, free: 11.95 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008384/0.3291, allocations: 478.5 kB / 430.2 MB, free: 11.46 MB / 350.1 MB Notification: Performance of pre-optimization done (n=96): time 2.465e-06/0.3291, allocations: 0 / 430.2 MB, free: 11.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=125): time 0.0092/0.3383, allocations: 3.998 MB / 434.2 MB, free: 7.348 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001262/0.3385, allocations: 141.5 kB / 434.3 MB, free: 7.18 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005448/0.339, allocations: 393.5 kB / 434.7 MB, free: 6.789 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.726e-05/0.3391, allocations: 45.7 kB / 434.7 MB, free: 6.738 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003704/0.3395, allocations: 431.5 kB / 435.1 MB, free: 6.309 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003804/0.3399, allocations: 417.8 kB / 435.6 MB, free: 5.895 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003281/0.3402, allocations: 210.9 kB / 435.8 MB, free: 5.684 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002011/0.3404, allocations: 374.8 kB / 436.1 MB, free: 5.309 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000731/0.3412, allocations: 358.5 kB / 436.5 MB, free: 4.957 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008477/0.342, allocations: 0.539 MB / 437 MB, free: 4.355 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001525/0.3436, allocations: 0.9451 MB / 438 MB, free: 3.352 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.369e-06/0.3436, allocations: 0 / 438 MB, free: 3.352 MB / 350.1 MB Notification: Performance of matching and sorting (n=158) (initialization): time 0.002476/0.3461, allocations: 1.386 MB / 439.3 MB, free: 1.949 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.078e-05/0.3461, allocations: 4 kB / 439.3 MB, free: 1.945 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.343e-05/0.3461, allocations: 7.984 kB / 439.4 MB, free: 1.938 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008677/0.347, allocations: 362 kB / 439.7 MB, free: 1.574 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008235/0.3478, allocations: 199.7 kB / 439.9 MB, free: 1.379 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008313/0.3561, allocations: 8.482 MB / 448.4 MB, free: 8.344 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000845/0.357, allocations: 52.05 kB / 448.4 MB, free: 8.293 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001625/0.3572, allocations: 47.94 kB / 448.5 MB, free: 8.246 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.0005809/0.3578, allocations: 253.6 kB / 448.7 MB, free: 7.988 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001579/0.358, allocations: 71.16 kB / 448.8 MB, free: 7.918 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002663/0.3606, allocations: 1.309 MB / 450.1 MB, free: 6.594 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.203e-05/0.3607, allocations: 12 kB / 450.1 MB, free: 6.582 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.938e-05/0.3607, allocations: 8 kB / 450.1 MB, free: 6.574 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.381e-05/0.3607, allocations: 3.984 kB / 450.1 MB, free: 6.57 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004671/0.3654, allocations: 2.533 MB / 452.7 MB, free: 3.945 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.675e-06/0.3654, allocations: 0 / 452.7 MB, free: 3.945 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006903/0.3661, allocations: 151.8 kB / 452.8 MB, free: 3.797 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008454/0.367, allocations: 331.3 kB / 453.1 MB, free: 3.461 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.451e-05/0.3671, allocations: 27.98 kB / 453.2 MB, free: 3.434 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007786/0.3749, allocations: 8.116 MB / 461.3 MB, free: 10.77 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.3749, allocations: 0 / 461.3 MB, free: 10.77 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003463/0.3784, allocations: 1.821 MB / 463.1 MB, free: 8.895 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004376/0.3789, allocations: 220.2 kB / 463.3 MB, free: 8.66 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001623/0.379, allocations: 27.98 kB / 463.3 MB, free: 8.633 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005997/0.3797, allocations: 48.05 kB / 463.4 MB, free: 8.586 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002504/0.3799, allocations: 92.81 kB / 463.5 MB, free: 8.496 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.397e-05/0.38, allocations: 35.98 kB / 463.5 MB, free: 8.461 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003348/0.3803, allocations: 271.2 kB / 463.8 MB, free: 8.195 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3804, allocations: 3.938 kB / 463.8 MB, free: 8.191 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001342/0.3817, allocations: 315.9 kB / 464.1 MB, free: 7.883 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.0003287/0.382, allocations: 171 kB / 464.3 MB, free: 7.707 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00278/0.3848, allocations: 1.624 MB / 465.9 MB, free: 6.039 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.101e-06/0.3849, allocations: 0 / 465.9 MB, free: 6.039 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001732/0.3866, allocations: 1.147 MB / 467 MB, free: 4.84 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006693/0.3873, allocations: 77.42 kB / 467.1 MB, free: 4.766 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003835/0.3911, allocations: 1.964 MB / 469.1 MB, free: 2.746 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006901/0.3918, allocations: 1.024 MB / 470.1 MB, free: 1.691 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002566/0.3921, allocations: 67.42 kB / 470.2 MB, free: 1.625 MB / 382.1 MB Notification: Performance of SimCode: time 5.01e-07/0.3921, allocations: 0 / 470.2 MB, free: 1.625 MB / 382.1 MB Notification: Performance of Templates: time 0.02922/0.4214, allocations: 26.28 MB / 496.4 MB, free: 7.285 MB / 414.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/LinearInductor/LinearInductor.csv","/var/lib/jenkins1/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