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.0009513/0.0009513, allocations: 96.67 kB / 16.65 MB, free: 6.191 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.001134/0.001134, allocations: 181.8 kB / 17.57 MB, free: 5.805 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.332/1.332, allocations: 223.3 MB / 241.6 MB, free: 14.37 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002689/0.0002689, allocations: 12.72 kB / 301.4 MB, free: 5.875 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09738/0.09767, allocations: 50.42 MB / 351.8 MB, free: 3.453 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor): time 0.006937/0.1046, allocations: 5.945 MB / 357.8 MB, free: 13.47 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004744/0.1094, allocations: 2.426 MB / 360.2 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001053/0.1105, allocations: 23.94 kB / 360.2 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001249/0.1118, allocations: 330.6 kB / 360.6 MB, free: 10.69 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002036/0.1138, allocations: 0.618 MB / 361.2 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002345/0.1162, allocations: 1.039 MB / 362.2 MB, free: 9.031 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001311/0.1175, allocations: 1.016 MB / 363.2 MB, free: 8.008 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002079/0.1196, allocations: 1.325 MB / 364.6 MB, free: 6.633 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000453/0.1201, allocations: 370.4 kB / 364.9 MB, free: 6.27 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000549/0.1206, allocations: 485.7 kB / 365.4 MB, free: 5.793 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.3e-05/0.1207, allocations: 48 kB / 365.4 MB, free: 5.746 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007796/0.1215, allocations: 359.6 kB / 365.8 MB, free: 5.395 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001468/0.1217, allocations: 171.2 kB / 366 MB, free: 5.227 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004146/0.1221, allocations: 487.1 kB / 366.4 MB, free: 4.742 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001403/0.1235, allocations: 1.425 MB / 367.9 MB, free: 3.312 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.1235, allocations: 0 / 367.9 MB, free: 3.312 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.1235, allocations: 3.938 kB / 367.9 MB, free: 3.309 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.121e-05/0.1235, allocations: 0 / 367.9 MB, free: 3.309 MB / 302.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.004161/0.1277, allocations: 1.441 MB / 369.3 MB, free: 1.812 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.089e-05/0.1278, allocations: 16.02 kB / 369.3 MB, free: 1.797 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003386/0.1312, allocations: 487.1 kB / 369.8 MB, free: 1.32 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007081/0.1319, allocations: 490.2 kB / 370.3 MB, free: 0.8047 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.237e-05/0.132, allocations: 82.22 kB / 370.4 MB, free: 0.7227 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001629/0.1321, allocations: 116 kB / 370.5 MB, free: 0.6094 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1666/0.2988, allocations: 0.9672 MB / 371.4 MB, free: 23.36 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.473e-05/0.2988, allocations: 2.234 kB / 371.4 MB, free: 23.36 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001236/0.299, allocations: 47.5 kB / 371.5 MB, free: 23.36 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.884e-05/0.299, allocations: 25.72 kB / 371.5 MB, free: 23.36 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00219/0.3012, allocations: 0.9747 MB / 372.5 MB, free: 23.34 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009725/0.3109, allocations: 3.713 MB / 376.2 MB, free: 21.5 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002838/0.3138, allocations: 1.545 MB / 377.7 MB, free: 20.32 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001181/0.315, allocations: 439.1 kB / 378.2 MB, free: 20.16 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001489/0.3152, allocations: 101.3 kB / 378.3 MB, free: 20.06 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001335/0.3166, allocations: 474.3 kB / 378.7 MB, free: 19.84 MB / 302.1 MB Notification: Performance of pre-optimization done (n=96): time 5.059e-06/0.3166, allocations: 2.531 kB / 378.7 MB, free: 19.84 MB / 302.1 MB Notification: Performance of matching and sorting (n=125): time 0.01398/0.3306, allocations: 4.038 MB / 382.8 MB, free: 17.91 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001072/0.3307, allocations: 147.4 kB / 382.9 MB, free: 17.75 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007816/0.3315, allocations: 400.7 kB / 383.3 MB, free: 17.55 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.156e-05/0.3316, allocations: 47.23 kB / 383.4 MB, free: 17.5 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003698/0.332, allocations: 419.7 kB / 383.8 MB, free: 17.17 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003953/0.3324, allocations: 427 kB / 384.2 MB, free: 16.84 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001874/0.3326, allocations: 99.73 kB / 384.3 MB, free: 16.79 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001459/0.3328, allocations: 376 kB / 384.6 MB, free: 16.45 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001085/0.3339, allocations: 356.5 kB / 385 MB, free: 16.32 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001302/0.3352, allocations: 0.5436 MB / 385.5 MB, free: 15.98 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002414/0.3376, allocations: 0.9488 MB / 386.5 MB, free: 15.42 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.707e-06/0.3376, allocations: 0.9688 kB / 386.5 MB, free: 15.42 MB / 302.1 MB Notification: Performance of matching and sorting (n=158) (initialization): time 0.003965/0.3416, allocations: 1.394 MB / 387.9 MB, free: 14.8 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.386e-05/0.3417, allocations: 6.719 kB / 387.9 MB, free: 14.8 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.223e-05/0.3417, allocations: 9.062 kB / 387.9 MB, free: 14.8 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001346/0.3431, allocations: 352.4 kB / 388.2 MB, free: 14.68 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001369/0.3444, allocations: 200.2 kB / 388.4 MB, free: 14.67 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009205/0.3537, allocations: 7.748 MB / 396.2 MB, free: 8.016 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001202/0.3549, allocations: 45.7 kB / 396.2 MB, free: 7.996 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001216/0.3551, allocations: 41 kB / 396.3 MB, free: 7.988 MB / 302.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.0006643/0.3557, allocations: 267 kB / 396.5 MB, free: 7.77 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001571/0.3559, allocations: 73.36 kB / 396.6 MB, free: 7.734 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003703/0.3596, allocations: 1.317 MB / 397.9 MB, free: 7.129 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.883e-05/0.3597, allocations: 12.88 kB / 397.9 MB, free: 7.129 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.532e-05/0.3597, allocations: 8.031 kB / 397.9 MB, free: 7.129 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.013e-05/0.3597, allocations: 11.31 kB / 398 MB, free: 7.125 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005525/0.3653, allocations: 2.547 MB / 400.5 MB, free: 5.449 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.107e-06/0.3653, allocations: 0 / 400.5 MB, free: 5.449 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009282/0.3662, allocations: 156.6 kB / 400.7 MB, free: 5.414 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001173/0.3674, allocations: 321.6 kB / 401 MB, free: 5.25 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001006/0.3676, allocations: 35.25 kB / 401 MB, free: 5.227 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008784/0.3764, allocations: 7.457 MB / 408.5 MB, free: 14.02 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.367e-06/0.3764, allocations: 0 / 408.5 MB, free: 14.02 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004343/0.3808, allocations: 1.826 MB / 410.3 MB, free: 12.14 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003914/0.3812, allocations: 220.2 kB / 410.5 MB, free: 11.91 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001394/0.3813, allocations: 24 kB / 410.5 MB, free: 11.88 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005956/0.3819, allocations: 47.91 kB / 410.6 MB, free: 11.84 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000227/0.3822, allocations: 96.81 kB / 410.7 MB, free: 11.74 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.389e-05/0.3823, allocations: 35.98 kB / 410.7 MB, free: 11.71 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003233/0.3826, allocations: 271.2 kB / 411 MB, free: 11.44 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.3826, allocations: 0 / 411 MB, free: 11.44 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001357/0.384, allocations: 312 kB / 411.3 MB, free: 11.13 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_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.0003266/0.3843, allocations: 173.9 kB / 411.4 MB, free: 10.96 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003011/0.3873, allocations: 1.624 MB / 413.1 MB, free: 9.293 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 9.188e-06/0.3874, allocations: 4.062 kB / 413.1 MB, free: 9.289 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001865/0.3892, allocations: 1.15 MB / 414.2 MB, free: 8.086 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006996/0.39, allocations: 77.48 kB / 414.3 MB, free: 8.012 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003978/0.3939, allocations: 2.484 MB / 416.8 MB, free: 5.484 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000675/0.3946, allocations: 1.021 MB / 417.8 MB, free: 4.434 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005221/0.3952, allocations: 98.16 kB / 417.9 MB, free: 4.336 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000183/0.3954, allocations: 59.42 kB / 417.9 MB, free: 4.277 MB / 318.1 MB Notification: Performance of SimCode: time 9.01e-07/0.3954, allocations: 7.875 kB / 418 MB, free: 4.27 MB / 318.1 MB Notification: Performance of Templates: time 0.02678/0.4222, allocations: 10.33 MB / 428.3 MB, free: 9.965 MB / 334.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