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: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001252/0.001252, allocations: 110 kB / 17.06 MB, free: 5.82 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.001342/0.001342, allocations: 195.9 kB / 18 MB, free: 4.965 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.432/1.432, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001014/0.001014, allocations: 47.92 kB / 350.8 MB, free: 3.754 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2967/0.2977, allocations: 49.44 MB / 400.2 MB, free: 8.43 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor): time 0.007841/0.3056, allocations: 6.463 MB / 406.7 MB, free: 2.344 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004472/0.3101, allocations: 2.535 MB / 409.2 MB, free: 15.8 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000451/0.3106, allocations: 27.88 kB / 409.3 MB, free: 15.77 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00286/0.3135, allocations: 1.271 MB / 410.5 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00167/0.3151, allocations: 0.6865 MB / 411.2 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002293/0.3175, allocations: 1.1 MB / 412.3 MB, free: 12.7 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001103/0.3186, allocations: 1.067 MB / 413.4 MB, free: 11.63 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001359/0.3199, allocations: 0.8904 MB / 414.3 MB, free: 10.72 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004664/0.3204, allocations: 446.4 kB / 414.7 MB, free: 10.29 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006043/0.321, allocations: 0.5446 MB / 415.3 MB, free: 9.738 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001213/0.3212, allocations: 99.98 kB / 415.4 MB, free: 9.641 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006437/0.3218, allocations: 395.7 kB / 415.7 MB, free: 9.254 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00019/0.322, allocations: 239.1 kB / 416 MB, free: 9.02 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005101/0.3225, allocations: 0.5247 MB / 416.5 MB, free: 8.492 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001695/0.3242, allocations: 1.502 MB / 418 MB, free: 6.984 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.3243, allocations: 0 / 418 MB, free: 6.984 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.3243, allocations: 0 / 418 MB, free: 6.984 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.317e-05/0.3243, allocations: 4 kB / 418 MB, free: 6.98 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.004224/0.3285, allocations: 1.661 MB / 419.7 MB, free: 5.262 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.554e-05/0.3286, allocations: 15.89 kB / 419.7 MB, free: 5.246 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002286/0.3288, allocations: 163.5 kB / 419.8 MB, free: 5.074 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003035/0.3318, allocations: 491.8 kB / 420.3 MB, free: 4.594 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006696/0.3325, allocations: 494.2 kB / 420.8 MB, free: 4.074 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.89e-05/0.3326, allocations: 90.22 kB / 420.9 MB, free: 3.984 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00018/0.3328, allocations: 116 kB / 421 MB, free: 3.871 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001782/0.3346, allocations: 0.9669 MB / 422 MB, free: 2.875 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.25e-05/0.3346, allocations: 0 / 422 MB, free: 2.875 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000105/0.3347, allocations: 51.98 kB / 422 MB, free: 2.824 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.145e-05/0.3348, allocations: 28 kB / 422 MB, free: 2.797 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001864/0.3366, allocations: 0.9613 MB / 423 MB, free: 1.828 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005567/0.3422, allocations: 3.68 MB / 426.7 MB, free: 13.93 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002017/0.3443, allocations: 1.552 MB / 428.2 MB, free: 12.2 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007543/0.345, allocations: 432.3 kB / 428.7 MB, free: 11.78 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001136/0.3451, allocations: 106.2 kB / 428.8 MB, free: 11.66 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008496/0.346, allocations: 474.5 kB / 429.2 MB, free: 11.17 MB / 350.1 MB Notification: Performance of pre-optimization done (n=96): time 2.555e-06/0.346, allocations: 0 / 429.2 MB, free: 11.17 MB / 350.1 MB Notification: Performance of matching and sorting (n=125): time 0.008726/0.3547, allocations: 4.012 MB / 433.2 MB, free: 7.043 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.084e-05/0.3549, allocations: 145.5 kB / 433.4 MB, free: 6.871 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000422/0.3553, allocations: 397.5 kB / 433.8 MB, free: 6.477 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.217e-05/0.3554, allocations: 45.7 kB / 433.8 MB, free: 6.426 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002807/0.3556, allocations: 436.9 kB / 434.2 MB, free: 5.992 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002982/0.3559, allocations: 440.1 kB / 434.7 MB, free: 5.559 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002833/0.3562, allocations: 206.9 kB / 434.9 MB, free: 5.352 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002341/0.3565, allocations: 374.8 kB / 435.2 MB, free: 4.977 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006781/0.3572, allocations: 358.5 kB / 435.6 MB, free: 4.625 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008156/0.358, allocations: 0.539 MB / 436.1 MB, free: 4.023 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001533/0.3595, allocations: 0.9413 MB / 437.1 MB, free: 3.023 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.085e-06/0.3595, allocations: 4 kB / 437.1 MB, free: 3.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=158) (initialization): time 0.002463/0.362, allocations: 1.398 MB / 438.5 MB, free: 1.605 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.079e-05/0.362, allocations: 4 kB / 438.5 MB, free: 1.602 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.105e-05/0.3621, allocations: 7.938 kB / 438.5 MB, free: 1.594 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008466/0.3629, allocations: 351.2 kB / 438.8 MB, free: 1.238 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000807/0.3637, allocations: 203.7 kB / 439 MB, free: 1.039 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008093/0.3718, allocations: 8.489 MB / 447.5 MB, free: 8 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006794/0.3725, allocations: 52.05 kB / 447.6 MB, free: 7.949 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.217e-05/0.3726, allocations: 47.98 kB / 447.6 MB, free: 7.902 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.0004248/0.373, allocations: 257.5 kB / 447.9 MB, free: 7.641 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001172/0.3732, allocations: 79.53 kB / 447.9 MB, free: 7.562 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002472/0.3756, allocations: 1.301 MB / 449.2 MB, free: 6.246 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.097e-05/0.3757, allocations: 16 kB / 449.3 MB, free: 6.23 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.378e-06/0.3757, allocations: 8 kB / 449.3 MB, free: 6.223 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.314e-05/0.3757, allocations: 7.969 kB / 449.3 MB, free: 6.215 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003991/0.3797, allocations: 2.533 MB / 451.8 MB, free: 3.59 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.528e-06/0.3797, allocations: 7.938 kB / 451.8 MB, free: 3.582 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006659/0.3804, allocations: 147.8 kB / 452 MB, free: 3.438 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008098/0.3812, allocations: 325.9 kB / 452.3 MB, free: 3.109 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.058e-05/0.3813, allocations: 24 kB / 452.3 MB, free: 3.086 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008793/0.3901, allocations: 8.125 MB / 460.4 MB, free: 10.41 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.3901, allocations: 4.062 kB / 460.4 MB, free: 10.4 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004776/0.3949, allocations: 1.833 MB / 462.3 MB, free: 8.52 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003543/0.3953, allocations: 224.6 kB / 462.5 MB, free: 8.281 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001004/0.3954, allocations: 24 kB / 462.5 MB, free: 8.258 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005089/0.3959, allocations: 35.98 kB / 462.5 MB, free: 8.223 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002399/0.3962, allocations: 100.8 kB / 462.6 MB, free: 8.125 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.862e-05/0.3962, allocations: 35.94 kB / 462.7 MB, free: 8.09 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003125/0.3965, allocations: 271.2 kB / 462.9 MB, free: 7.824 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3966, allocations: 0 / 462.9 MB, free: 7.824 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001216/0.3978, allocations: 312 kB / 463.2 MB, free: 7.52 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.003745/0.4015, allocations: 2.438 MB / 465.7 MB, free: 5.023 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002819/0.4044, allocations: 1.627 MB / 467.3 MB, free: 3.348 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5e-06/0.4044, allocations: 7.938 kB / 467.3 MB, free: 3.34 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001646/0.406, allocations: 1.151 MB / 468.5 MB, free: 2.141 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005453/0.4066, allocations: 73.48 kB / 468.5 MB, free: 2.07 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01113/0.4177, allocations: 7.353 MB / 475.9 MB, free: 10.45 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006108/0.4184, allocations: 1.028 MB / 476.9 MB, free: 9.387 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004111/0.4188, allocations: 98.19 kB / 477 MB, free: 9.289 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004192/0.4192, allocations: 347.3 kB / 477.4 MB, free: 8.949 MB / 398.1 MB Notification: Performance of SimCode: time 6.01e-07/0.4192, allocations: 0 / 477.4 MB, free: 8.949 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04773/0.467, allocations: 18.2 MB / 495.6 MB, free: 6.914 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.92/16.39, allocations: 8.312 kB / 495.6 MB, free: 6.91 MB / 414.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-07 --interface-type ModelExchange --solver CVode --output-interval 8e-05 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor.fmu > 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.csv","/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