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.001361/0.001361, allocations: 117.2 kB / 17.78 MB, free: 5.25 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.001361/0.001361, allocations: 184.2 kB / 18.72 MB, free: 4.332 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.451/1.451, allocations: 222.9 MB / 242.4 MB, free: 15.08 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.2623/0.2623, allocations: 44.19 MB / 336.8 MB, free: 2.637 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002003/0.002004, allocations: 63.89 kB / 470 MB, free: 13.67 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3577/0.3597, allocations: 60.83 MB / 0.5184 GB, free: 3.27 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents): time 0.003484/0.3632, allocations: 2.467 MB / 0.5208 GB, free: 1.547 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001482/0.3647, allocations: 1.036 MB / 0.5218 GB, free: 0.8164 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.713e-05/0.3648, allocations: 5.219 kB / 0.5218 GB, free: 0.8164 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00121/0.3661, allocations: 0.4906 MB / 0.5223 GB, free: 0.5234 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002867/0.3664, allocations: 107.7 kB / 0.5224 GB, free: 464 kB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001065/0.3674, allocations: 0.6359 MB / 0.523 GB, free: 52 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003403/0.3678, allocations: 218.6 kB / 0.5233 GB, free: 15.94 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005114/0.3683, allocations: 260 kB / 0.5235 GB, free: 15.81 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002067/0.3685, allocations: 95.67 kB / 0.5236 GB, free: 15.76 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001954/0.3687, allocations: 128.2 kB / 0.5237 GB, free: 15.7 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.722e-05/0.3688, allocations: 22.03 kB / 0.5237 GB, free: 15.7 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003479/0.3691, allocations: 140.1 kB / 0.5239 GB, free: 15.66 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.714e-05/0.3692, allocations: 53.52 kB / 0.5239 GB, free: 15.62 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001228/0.3693, allocations: 112.2 kB / 0.524 GB, free: 15.55 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006274/0.37, allocations: 411.6 kB / 0.5244 GB, free: 15.38 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.37, allocations: 0 / 0.5244 GB, free: 15.38 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.37, allocations: 0 / 0.5244 GB, free: 15.38 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.073e-06/0.37, allocations: 0 / 0.5244 GB, free: 15.38 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.001366/0.3714, allocations: 0.6221 MB / 0.525 GB, free: 14.89 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.762e-05/0.3714, allocations: 12.84 kB / 0.525 GB, free: 14.88 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.174e-05/0.3715, allocations: 56.3 kB / 0.5251 GB, free: 14.83 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003305/0.3718, allocations: 55.98 kB / 0.5252 GB, free: 14.81 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001747/0.372, allocations: 192.7 kB / 0.5253 GB, free: 14.59 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.97e-05/0.3721, allocations: 18 kB / 0.5254 GB, free: 14.58 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.592e-05/0.3721, allocations: 29.39 kB / 0.5254 GB, free: 14.57 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006263/0.3727, allocations: 287.4 kB / 0.5257 GB, free: 14.43 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.95e-05/0.3728, allocations: 7.281 kB / 0.5257 GB, free: 14.43 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.78e-05/0.3728, allocations: 8.844 kB / 0.5257 GB, free: 14.42 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.487e-06/0.3728, allocations: 5.781 kB / 0.5257 GB, free: 14.42 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006349/0.3735, allocations: 232.9 kB / 0.5259 GB, free: 14.35 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001903/0.3754, allocations: 0.9983 MB / 0.5269 GB, free: 13.62 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006639/0.3761, allocations: 377.4 kB / 0.5272 GB, free: 13.31 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004347/0.3765, allocations: 143 kB / 0.5274 GB, free: 13.25 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001357/0.3767, allocations: 87.5 kB / 0.5275 GB, free: 13.16 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.695e-05/0.3767, allocations: 37.86 kB / 0.5275 GB, free: 13.11 MB / 398.1 MB Notification: Performance of pre-optimization done (n=19): time 2.354e-06/0.3767, allocations: 0 / 0.5275 GB, free: 13.11 MB / 398.1 MB Notification: Performance of matching and sorting (n=19): time 0.001443/0.3782, allocations: 0.4971 MB / 0.528 GB, free: 12.74 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.162e-05/0.3783, allocations: 84.02 kB / 0.5281 GB, free: 12.64 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001601/0.3784, allocations: 138.3 kB / 0.5282 GB, free: 12.53 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.887e-05/0.3785, allocations: 33.64 kB / 0.5282 GB, free: 12.49 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001177/0.3786, allocations: 146.4 kB / 0.5284 GB, free: 12.35 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.863e-05/0.3787, allocations: 70.94 kB / 0.5284 GB, free: 12.29 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.329e-05/0.3787, allocations: 34.97 kB / 0.5285 GB, free: 12.26 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001445/0.3789, allocations: 321.3 kB / 0.5288 GB, free: 11.94 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002227/0.3791, allocations: 77.66 kB / 0.5288 GB, free: 11.9 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002553/0.3794, allocations: 117 kB / 0.529 GB, free: 11.81 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004704/0.3799, allocations: 202.8 kB / 0.5291 GB, free: 11.67 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.691e-06/0.3799, allocations: 5.375 kB / 0.5291 GB, free: 11.67 MB / 398.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006753/0.3806, allocations: 275.7 kB / 0.5294 GB, free: 11.51 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.795e-05/0.3806, allocations: 5.453 kB / 0.5294 GB, free: 11.51 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.884e-06/0.3806, allocations: 15 kB / 0.5294 GB, free: 11.5 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002448/0.3809, allocations: 43.3 kB / 0.5295 GB, free: 11.47 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002143/0.3811, allocations: 46.73 kB / 0.5295 GB, free: 11.45 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002559/0.3837, allocations: 2.84 MB / 0.5323 GB, free: 8.516 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002241/0.3839, allocations: 26.56 kB / 0.5323 GB, free: 8.5 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.289e-05/0.384, allocations: 14.94 kB / 0.5323 GB, free: 8.492 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.0001778/0.3841, allocations: 136.8 kB / 0.5325 GB, free: 8.359 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.226e-05/0.3842, allocations: 18.33 kB / 0.5325 GB, free: 8.348 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007137/0.3849, allocations: 266.4 kB / 0.5327 GB, free: 8.18 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.43e-06/0.3849, allocations: 2.594 kB / 0.5327 GB, free: 8.18 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.712e-06/0.385, allocations: 5.359 kB / 0.5327 GB, free: 8.176 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.385, allocations: 0 / 0.5327 GB, free: 8.176 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001237/0.3862, allocations: 0.6524 MB / 0.5334 GB, free: 7.617 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.161e-06/0.3862, allocations: 5.297 kB / 0.5334 GB, free: 7.613 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001775/0.3864, allocations: 37.61 kB / 0.5334 GB, free: 7.602 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001485/0.3866, allocations: 47.09 kB / 0.5335 GB, free: 7.57 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.082e-05/0.3866, allocations: 6.344 kB / 0.5335 GB, free: 7.566 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002416/0.389, allocations: 2.839 MB / 0.5362 GB, free: 4.629 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.3891, allocations: 1 kB / 0.5362 GB, free: 4.629 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001004/0.3901, allocations: 0.5111 MB / 0.5367 GB, free: 4.242 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.121e-05/0.3902, allocations: 97.33 kB / 0.5368 GB, free: 4.133 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.365e-05/0.3902, allocations: 7.297 kB / 0.5368 GB, free: 4.129 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001949/0.3904, allocations: 19.48 kB / 0.5369 GB, free: 4.117 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.48e-05/0.3905, allocations: 20.89 kB / 0.5369 GB, free: 4.105 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.433e-05/0.3905, allocations: 12.23 kB / 0.5369 GB, free: 4.098 MB / 398.1 MB Notification: Performance of sorting global known variables: time 9.162e-05/0.3906, allocations: 107.2 kB / 0.537 GB, free: 4.008 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3906, allocations: 1 kB / 0.537 GB, free: 4.008 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000481/0.3911, allocations: 66.3 kB / 0.5371 GB, free: 3.992 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.001542/0.3926, allocations: 1.088 MB / 0.5381 GB, free: 3.047 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008122/0.3935, allocations: 420.8 kB / 0.5385 GB, free: 2.723 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.3935, allocations: 0 / 0.5385 GB, free: 2.723 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004329/0.3939, allocations: 324.3 kB / 0.5388 GB, free: 2.445 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004214/0.3943, allocations: 20.67 kB / 0.5388 GB, free: 2.43 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003457/0.3978, allocations: 2.367 MB / 0.5412 GB, free: 448 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004276/0.3983, allocations: 0.7291 MB / 0.5419 GB, free: 15.72 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 8.833e-05/0.3984, allocations: 20 kB / 0.5419 GB, free: 15.71 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001057/0.3985, allocations: 63.06 kB / 0.542 GB, free: 15.66 MB / 414.1 MB Notification: Performance of SimCode: time 8.02e-07/0.3985, allocations: 4 kB / 0.542 GB, free: 15.65 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03565/0.4341, allocations: 4.34 MB / 0.5462 GB, free: 13.48 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.921/10.36, allocations: 19.2 kB / 0.5462 GB, free: 13.46 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