Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_QuasiStatic_FluxTubes_VariableComponents",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_QuasiStatic_FluxTubes_VariableComponents",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.001483/0.001483, allocations: 118.4 kB / 17.78 MB, free: 5.262 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.001499/0.001499, allocations: 183 kB / 18.72 MB, free: 4.336 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.334/1.334, allocations: 222.9 MB / 242.4 MB, free: 15.05 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2076/0.2076, allocations: 44.19 MB / 336.8 MB, free: 2.66 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001408/0.001409, allocations: 59.91 kB / 470 MB, free: 13.69 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3323/0.3338, allocations: 60.83 MB / 0.5184 GB, free: 3.285 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents): time 0.004147/0.338, allocations: 2.464 MB / 0.5208 GB, free: 1.562 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001908/0.3399, allocations: 1.035 MB / 0.5218 GB, free: 0.832 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002168/0.3401, allocations: 5.656 kB / 0.5218 GB, free: 0.832 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001291/0.3415, allocations: 0.4985 MB / 0.5223 GB, free: 0.5312 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003655/0.3419, allocations: 103.4 kB / 0.5224 GB, free: 476 kB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00107/0.3429, allocations: 0.6282 MB / 0.523 GB, free: 72 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000388/0.3433, allocations: 226.9 kB / 0.5233 GB, free: 15.96 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005057/0.3439, allocations: 259.2 kB / 0.5235 GB, free: 15.82 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001941/0.3441, allocations: 100.7 kB / 0.5236 GB, free: 15.77 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001675/0.3442, allocations: 120.2 kB / 0.5237 GB, free: 15.71 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.519e-05/0.3443, allocations: 26.12 kB / 0.5237 GB, free: 15.71 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003511/0.3446, allocations: 146.8 kB / 0.5239 GB, free: 15.67 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.231e-05/0.3447, allocations: 53.97 kB / 0.5239 GB, free: 15.63 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001115/0.3448, allocations: 116.8 kB / 0.524 GB, free: 15.55 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000596/0.3454, allocations: 398.2 kB / 0.5244 GB, free: 15.39 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.149e-06/0.3454, allocations: 1.031 kB / 0.5244 GB, free: 15.39 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3455, allocations: 0 / 0.5244 GB, free: 15.39 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.213e-06/0.3455, allocations: 0 / 0.5244 GB, free: 15.39 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.001431/0.3469, allocations: 0.626 MB / 0.525 GB, free: 14.9 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.592e-05/0.347, allocations: 9.047 kB / 0.525 GB, free: 14.9 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.128e-05/0.347, allocations: 60.73 kB / 0.5251 GB, free: 14.84 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003514/0.3474, allocations: 52.77 kB / 0.5251 GB, free: 14.83 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001559/0.3476, allocations: 191.5 kB / 0.5253 GB, free: 14.61 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.665e-05/0.3476, allocations: 18.95 kB / 0.5253 GB, free: 14.6 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.644e-05/0.3477, allocations: 24.84 kB / 0.5254 GB, free: 14.59 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006675/0.3483, allocations: 298.5 kB / 0.5257 GB, free: 14.44 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.925e-05/0.3484, allocations: 2.094 kB / 0.5257 GB, free: 14.44 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.982e-05/0.3484, allocations: 10.25 kB / 0.5257 GB, free: 14.43 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.221e-05/0.3484, allocations: 13.92 kB / 0.5257 GB, free: 14.42 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00061/0.349, allocations: 224.3 kB / 0.5259 GB, free: 14.36 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001569/0.3506, allocations: 0.9996 MB / 0.5269 GB, free: 13.63 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00053/0.3512, allocations: 372 kB / 0.5272 GB, free: 13.32 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003693/0.3515, allocations: 143.9 kB / 0.5274 GB, free: 13.27 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000107/0.3517, allocations: 84.39 kB / 0.5274 GB, free: 13.17 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.52e-05/0.3517, allocations: 37.77 kB / 0.5275 GB, free: 13.13 MB / 398.1 MB Notification: Performance of pre-optimization done (n=19): time 2.054e-06/0.3517, allocations: 0 / 0.5275 GB, free: 13.13 MB / 398.1 MB Notification: Performance of matching and sorting (n=19): time 0.00127/0.353, allocations: 0.499 MB / 0.528 GB, free: 12.77 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.442e-05/0.3531, allocations: 83.27 kB / 0.528 GB, free: 12.67 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001205/0.3532, allocations: 141.4 kB / 0.5282 GB, free: 12.55 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.018e-05/0.3532, allocations: 31.2 kB / 0.5282 GB, free: 12.52 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.603e-05/0.3533, allocations: 142.6 kB / 0.5283 GB, free: 12.38 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.551e-05/0.3534, allocations: 70.52 kB / 0.5284 GB, free: 12.32 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.463e-05/0.3534, allocations: 43.27 kB / 0.5285 GB, free: 12.29 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001074/0.3535, allocations: 322.8 kB / 0.5288 GB, free: 11.96 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002139/0.3538, allocations: 68.67 kB / 0.5288 GB, free: 11.93 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002309/0.354, allocations: 117.6 kB / 0.5289 GB, free: 11.84 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004427/0.3545, allocations: 206.6 kB / 0.5291 GB, free: 11.7 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.3545, allocations: 0 / 0.5291 GB, free: 11.7 MB / 398.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006348/0.3551, allocations: 287.7 kB / 0.5294 GB, free: 11.53 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.643e-05/0.3551, allocations: 9.312 kB / 0.5294 GB, free: 11.53 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.504e-06/0.3552, allocations: 1.547 kB / 0.5294 GB, free: 11.53 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002008/0.3554, allocations: 52.69 kB / 0.5295 GB, free: 11.49 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001949/0.3556, allocations: 42.78 kB / 0.5295 GB, free: 11.48 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001933/0.3575, allocations: 2.844 MB / 0.5323 GB, free: 8.539 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001808/0.3577, allocations: 27.53 kB / 0.5323 GB, free: 8.523 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.838e-05/0.3577, allocations: 9.875 kB / 0.5323 GB, free: 8.52 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001389/0.3579, allocations: 140.8 kB / 0.5325 GB, free: 8.383 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.486e-05/0.3579, allocations: 18.39 kB / 0.5325 GB, free: 8.371 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006595/0.3586, allocations: 264.1 kB / 0.5327 GB, free: 8.203 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.459e-06/0.3586, allocations: 2.594 kB / 0.5327 GB, free: 8.203 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.437e-06/0.3586, allocations: 1.406 kB / 0.5327 GB, free: 8.203 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.3586, allocations: 1.344 kB / 0.5327 GB, free: 8.203 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001142/0.3598, allocations: 0.6567 MB / 0.5334 GB, free: 7.637 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.3598, allocations: 1.375 kB / 0.5334 GB, free: 7.637 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000185/0.36, allocations: 37.41 kB / 0.5334 GB, free: 7.625 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001405/0.3602, allocations: 42.89 kB / 0.5335 GB, free: 7.598 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.027e-05/0.3602, allocations: 7.062 kB / 0.5335 GB, free: 7.594 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001991/0.3622, allocations: 2.841 MB / 0.5362 GB, free: 4.652 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.3622, allocations: 0.9688 kB / 0.5362 GB, free: 4.652 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000942/0.3632, allocations: 0.515 MB / 0.5367 GB, free: 4.262 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.74e-05/0.3632, allocations: 94.14 kB / 0.5368 GB, free: 4.156 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.468e-05/0.3633, allocations: 10.12 kB / 0.5368 GB, free: 4.148 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001955/0.3635, allocations: 20.77 kB / 0.5369 GB, free: 4.137 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.16e-05/0.3636, allocations: 19.59 kB / 0.5369 GB, free: 4.125 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.331e-05/0.3636, allocations: 5.406 kB / 0.5369 GB, free: 4.125 MB / 398.1 MB Notification: Performance of sorting global known variables: time 8.967e-05/0.3637, allocations: 109.2 kB / 0.537 GB, free: 4.035 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.3637, allocations: 0 / 0.537 GB, free: 4.035 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000517/0.3642, allocations: 70.2 kB / 0.5371 GB, free: 4.016 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 1 (magFluxSource.port_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001367/0.3656, allocations: 1.084 MB / 0.5381 GB, free: 3.074 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007876/0.3664, allocations: 417.4 kB / 0.5385 GB, free: 2.754 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.3664, allocations: 0 / 0.5385 GB, free: 2.754 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004245/0.3668, allocations: 331.4 kB / 0.5388 GB, free: 2.469 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004622/0.3673, allocations: 8.469 kB / 0.5388 GB, free: 2.465 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003324/0.3706, allocations: 2.379 MB / 0.5412 GB, free: 472 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003256/0.371, allocations: 0.737 MB / 0.5419 GB, free: 15.74 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 9.515e-05/0.3711, allocations: 11.94 kB / 0.5419 GB, free: 15.73 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.206e-05/0.3712, allocations: 58.97 kB / 0.5419 GB, free: 15.68 MB / 414.1 MB Notification: Performance of SimCode: time 1.964e-06/0.3712, allocations: 0 / 0.5419 GB, free: 15.68 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02749/0.3987, allocations: 4.344 MB / 0.5462 GB, free: 13.5 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.602/10, allocations: 23.72 kB / 0.5462 GB, free: 13.49 MB / 414.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 ModelicaTest_4_0_0_ModelicaTest_Magnetic_QuasiStatic_FluxTubes_VariableComponents.fmu > ModelicaTest_4.0.0_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Magnetic/QuasiStatic/FluxTubes/VariableComponents/VariableComponents.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches