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.001255/0.001255, allocations: 112.8 kB / 17.06 MB, free: 5.969 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.001245/0.001245, allocations: 200 kB / 18.01 MB, free: 5.047 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.486/1.486, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001424/0.001424, allocations: 47.91 kB / 350.8 MB, free: 3.738 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3067/0.3082, allocations: 49.44 MB / 400.2 MB, free: 8.402 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor): time 0.009305/0.3175, allocations: 6.449 MB / 406.7 MB, free: 2.328 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005384/0.3229, allocations: 2.546 MB / 409.2 MB, free: 15.77 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007314/0.3237, allocations: 20 kB / 409.3 MB, free: 15.75 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003197/0.327, allocations: 1.275 MB / 410.5 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002103/0.3291, allocations: 0.6873 MB / 411.2 MB, free: 13.78 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002435/0.3315, allocations: 1.101 MB / 412.3 MB, free: 12.68 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001536/0.3331, allocations: 1.063 MB / 413.4 MB, free: 11.61 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001421/0.3345, allocations: 0.8942 MB / 414.3 MB, free: 10.7 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006742/0.3352, allocations: 446.3 kB / 414.7 MB, free: 10.26 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007572/0.336, allocations: 0.5407 MB / 415.3 MB, free: 9.719 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000147/0.3361, allocations: 100 kB / 415.4 MB, free: 9.621 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008891/0.337, allocations: 403.6 kB / 415.7 MB, free: 9.227 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002045/0.3372, allocations: 231.2 kB / 416 MB, free: 9 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004884/0.3377, allocations: 0.5169 MB / 416.5 MB, free: 8.48 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002279/0.34, allocations: 1.514 MB / 418 MB, free: 6.961 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.34, allocations: 3.938 kB / 418 MB, free: 6.957 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.34, allocations: 0 / 418 MB, free: 6.957 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.41e-05/0.3401, allocations: 0 / 418 MB, free: 6.957 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.004643/0.3447, allocations: 1.657 MB / 419.7 MB, free: 5.242 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.85e-05/0.3448, allocations: 8.031 kB / 419.7 MB, free: 5.234 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002515/0.345, allocations: 167.4 kB / 419.8 MB, free: 5.059 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003247/0.3483, allocations: 491.8 kB / 420.3 MB, free: 4.578 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007767/0.3491, allocations: 494.2 kB / 420.8 MB, free: 4.059 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.138e-05/0.3492, allocations: 86.23 kB / 420.9 MB, free: 3.973 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001777/0.3493, allocations: 115.9 kB / 421 MB, free: 3.859 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002114/0.3515, allocations: 0.9747 MB / 422 MB, free: 2.855 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.621e-05/0.3515, allocations: 4 kB / 422 MB, free: 2.852 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001028/0.3516, allocations: 47.98 kB / 422 MB, free: 2.805 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.773e-05/0.3517, allocations: 28 kB / 422 MB, free: 2.777 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001993/0.3537, allocations: 0.9614 MB / 423 MB, free: 1.809 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006263/0.3599, allocations: 3.673 MB / 426.7 MB, free: 13.92 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002268/0.3622, allocations: 1.562 MB / 428.2 MB, free: 12.18 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008407/0.3631, allocations: 436.3 kB / 428.7 MB, free: 11.76 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001415/0.3632, allocations: 102.2 kB / 428.8 MB, free: 11.64 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001059/0.3643, allocations: 470.5 kB / 429.2 MB, free: 11.16 MB / 350.1 MB Notification: Performance of pre-optimization done (n=96): time 2.986e-06/0.3643, allocations: 0 / 429.2 MB, free: 11.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=125): time 0.01035/0.3747, allocations: 4.012 MB / 433.2 MB, free: 7.027 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001259/0.3748, allocations: 145.5 kB / 433.4 MB, free: 6.855 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005715/0.3754, allocations: 401.5 kB / 433.8 MB, free: 6.457 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.097e-05/0.3755, allocations: 45.7 kB / 433.8 MB, free: 6.406 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004576/0.3759, allocations: 432.9 kB / 434.2 MB, free: 5.977 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003935/0.3763, allocations: 452.1 kB / 434.7 MB, free: 5.531 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000322/0.3767, allocations: 202.9 kB / 434.9 MB, free: 5.328 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002046/0.3769, allocations: 374.8 kB / 435.2 MB, free: 4.953 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008047/0.3777, allocations: 358.5 kB / 435.6 MB, free: 4.602 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001071/0.3788, allocations: 0.539 MB / 436.1 MB, free: 4 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001719/0.3805, allocations: 0.9411 MB / 437.1 MB, free: 3 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.3805, allocations: 0 / 437.1 MB, free: 3 MB / 350.1 MB Notification: Performance of matching and sorting (n=158) (initialization): time 0.003014/0.3835, allocations: 1.39 MB / 438.5 MB, free: 1.594 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.301e-05/0.3836, allocations: 8 kB / 438.5 MB, free: 1.586 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.647e-05/0.3836, allocations: 7.984 kB / 438.5 MB, free: 1.578 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001036/0.3846, allocations: 355 kB / 438.8 MB, free: 1.219 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008541/0.3855, allocations: 203.7 kB / 439 MB, free: 1.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01037/0.3959, allocations: 8.497 MB / 447.5 MB, free: 7.973 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008765/0.3968, allocations: 43.98 kB / 447.6 MB, free: 7.93 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.272e-05/0.3969, allocations: 44 kB / 447.6 MB, free: 7.887 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.0005931/0.3975, allocations: 265.6 kB / 447.9 MB, free: 7.617 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001274/0.3977, allocations: 75.53 kB / 447.9 MB, free: 7.543 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002737/0.4004, allocations: 1.305 MB / 449.2 MB, free: 6.223 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.169e-05/0.4004, allocations: 12 kB / 449.3 MB, free: 6.211 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.939e-06/0.4004, allocations: 8 kB / 449.3 MB, free: 6.203 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.285e-05/0.4005, allocations: 3.984 kB / 449.3 MB, free: 6.199 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004676/0.4051, allocations: 2.533 MB / 451.8 MB, free: 3.574 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.113e-05/0.4052, allocations: 7.938 kB / 451.8 MB, free: 3.566 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006902/0.4059, allocations: 155.8 kB / 452 MB, free: 3.414 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008468/0.4067, allocations: 319.3 kB / 452.3 MB, free: 3.09 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.278e-05/0.4068, allocations: 31.98 kB / 452.3 MB, free: 3.059 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008717/0.4155, allocations: 8.121 MB / 460.4 MB, free: 10.39 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.31e-06/0.4156, allocations: 4 kB / 460.4 MB, free: 10.38 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003687/0.4192, allocations: 1.833 MB / 462.3 MB, free: 8.5 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000382/0.4197, allocations: 224.6 kB / 462.5 MB, free: 8.262 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.835e-05/0.4198, allocations: 24 kB / 462.5 MB, free: 8.238 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005045/0.4203, allocations: 35.98 kB / 462.5 MB, free: 8.203 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002481/0.4205, allocations: 108.7 kB / 462.7 MB, free: 8.098 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.637e-05/0.4206, allocations: 32 kB / 462.7 MB, free: 8.066 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003522/0.421, allocations: 271.2 kB / 462.9 MB, free: 7.801 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.421, allocations: 0 / 462.9 MB, free: 7.801 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001198/0.4222, allocations: 308 kB / 463.2 MB, free: 7.5 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.003993/0.4262, allocations: 2.434 MB / 465.7 MB, free: 5.008 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003122/0.4293, allocations: 1.632 MB / 467.3 MB, free: 3.328 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.446e-06/0.4293, allocations: 0 / 467.3 MB, free: 3.328 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001864/0.4312, allocations: 1.15 MB / 468.5 MB, free: 2.129 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006037/0.4318, allocations: 77.42 kB / 468.5 MB, free: 2.055 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01281/0.4446, allocations: 7.355 MB / 475.9 MB, free: 10.42 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008917/0.4456, allocations: 1.024 MB / 476.9 MB, free: 9.367 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004463/0.446, allocations: 98.12 kB / 477 MB, free: 9.273 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000508/0.4465, allocations: 347.3 kB / 477.4 MB, free: 8.934 MB / 398.1 MB Notification: Performance of SimCode: time 6.21e-07/0.4465, allocations: 0 / 477.4 MB, free: 8.934 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05856/0.5051, allocations: 18.19 MB / 495.5 MB, free: 6.902 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.11/16.62, allocations: 15.08 kB / 495.6 MB, free: 6.895 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