Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.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.FluxTubes.Sources,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Sources",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Sources,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Sources",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.001749/0.001749, allocations: 113.8 kB / 17.78 MB, free: 5.281 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.001982/0.001982, allocations: 179.9 kB / 18.71 MB, free: 4.363 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.461/1.461, allocations: 222.9 MB / 242.4 MB, free: 15.1 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.2222/0.2222, allocations: 44.19 MB / 336.8 MB, free: 2.695 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001812/0.001812, allocations: 59.91 kB / 470 MB, free: 13.72 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3222/0.324, allocations: 60.83 MB / 0.5184 GB, free: 3.305 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Sources): time 0.003515/0.3276, allocations: 2.659 MB / 0.521 GB, free: 1.438 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001028/0.3287, allocations: 0.7512 MB / 0.5217 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001522/0.3288, allocations: 5.406 kB / 0.5217 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002312/0.3291, allocations: 61.94 kB / 0.5218 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002305/0.3293, allocations: 105.8 kB / 0.5219 GB, free: 0.7812 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002898/0.3296, allocations: 116 kB / 0.522 GB, free: 0.7148 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004115/0.33, allocations: 417 kB / 0.5224 GB, free: 0.5156 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002293/0.3303, allocations: 151.4 kB / 0.5226 GB, free: 444 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002341/0.3305, allocations: 153.7 kB / 0.5227 GB, free: 368 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001872/0.3307, allocations: 173.3 kB / 0.5229 GB, free: 272 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.489e-05/0.3308, allocations: 33.44 kB / 0.5229 GB, free: 272 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.86e-05/0.3309, allocations: 32.47 kB / 0.5229 GB, free: 272 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.306e-05/0.3309, allocations: 84.02 kB / 0.523 GB, free: 212 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001307/0.3311, allocations: 181.1 kB / 0.5232 GB, free: 96 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004905/0.3316, allocations: 421 kB / 0.5236 GB, free: 15.93 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.3316, allocations: 0.7031 kB / 0.5236 GB, free: 15.93 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.3316, allocations: 0 / 0.5236 GB, free: 15.93 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.164e-06/0.3316, allocations: 1.125 kB / 0.5236 GB, free: 15.93 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: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.001158/0.3328, allocations: 0.6702 MB / 0.5242 GB, free: 15.39 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.008e-05/0.3328, allocations: 9.656 kB / 0.5243 GB, free: 15.39 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.081e-05/0.3329, allocations: 73.78 kB / 0.5243 GB, free: 15.32 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.17e-05/0.333, allocations: 40.81 kB / 0.5244 GB, free: 15.3 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000411/0.3334, allocations: 280.3 kB / 0.5246 GB, free: 15.04 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.901e-05/0.3334, allocations: 27.56 kB / 0.5247 GB, free: 15.03 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.504e-05/0.3335, allocations: 34.09 kB / 0.5247 GB, free: 15.02 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007295/0.3342, allocations: 364.7 kB / 0.525 GB, free: 14.84 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.447e-05/0.3342, allocations: 0 / 0.525 GB, free: 14.84 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.516e-05/0.3343, allocations: 19.27 kB / 0.5251 GB, free: 14.82 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.816e-06/0.3343, allocations: 9.625 kB / 0.5251 GB, free: 14.82 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007016/0.335, allocations: 260.8 kB / 0.5253 GB, free: 14.75 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002235/0.3373, allocations: 1.346 MB / 0.5266 GB, free: 13.75 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005391/0.3378, allocations: 193.7 kB / 0.5268 GB, free: 13.62 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002371/0.3381, allocations: 83.75 kB / 0.5269 GB, free: 13.57 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.961e-05/0.3381, allocations: 8.328 kB / 0.5269 GB, free: 13.57 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.855e-05/0.3381, allocations: 40.62 kB / 0.5269 GB, free: 13.52 MB / 398.1 MB Notification: Performance of pre-optimization done (n=15): time 1.553e-06/0.3382, allocations: 1.406 kB / 0.5269 GB, free: 13.52 MB / 398.1 MB Notification: Performance of matching and sorting (n=15): time 0.0008341/0.339, allocations: 248.8 kB / 0.5272 GB, free: 13.39 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.118e-05/0.3391, allocations: 131.3 kB / 0.5273 GB, free: 13.24 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003555/0.3394, allocations: 325.4 kB / 0.5276 GB, free: 13.02 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.438e-05/0.3395, allocations: 31.08 kB / 0.5276 GB, free: 12.99 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001742/0.3397, allocations: 240.8 kB / 0.5279 GB, free: 12.77 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.902e-05/0.3397, allocations: 58.41 kB / 0.5279 GB, free: 12.72 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.519e-05/0.3398, allocations: 54.61 kB / 0.528 GB, free: 12.68 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001677/0.34, allocations: 345.7 kB / 0.5283 GB, free: 12.34 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002357/0.3402, allocations: 79.12 kB / 0.5284 GB, free: 12.3 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003092/0.3406, allocations: 172.3 kB / 0.5286 GB, free: 12.14 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005356/0.3411, allocations: 244.5 kB / 0.5288 GB, free: 11.96 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.3411, allocations: 0 / 0.5288 GB, free: 11.96 MB / 398.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0006944/0.3418, allocations: 317 kB / 0.5291 GB, free: 11.79 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.967e-05/0.3418, allocations: 6.312 kB / 0.5291 GB, free: 11.79 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.122e-05/0.3419, allocations: 7.875 kB / 0.5291 GB, free: 11.78 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.951e-05/0.3419, allocations: 8.688 kB / 0.5291 GB, free: 11.78 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000421/0.3423, allocations: 92.33 kB / 0.5292 GB, free: 11.75 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.014e-05/0.3423, allocations: 5.156 kB / 0.5292 GB, free: 11.75 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002998/0.3426, allocations: 55.23 kB / 0.5293 GB, free: 11.71 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.125e-05/0.3427, allocations: 10.03 kB / 0.5293 GB, free: 11.71 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (34): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001719/0.3429, allocations: 152.1 kB / 0.5294 GB, free: 11.57 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001009/0.343, allocations: 33.84 kB / 0.5294 GB, free: 11.55 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.74e-05/0.343, allocations: 32.47 kB / 0.5295 GB, free: 11.52 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.058e-06/0.343, allocations: 2.281 kB / 0.5295 GB, free: 11.52 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/0.3431, allocations: 2.562 kB / 0.5295 GB, free: 11.52 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.243e-06/0.3431, allocations: 3.984 kB / 0.5295 GB, free: 11.52 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008548/0.3439, allocations: 0.5966 MB / 0.5301 GB, free: 10.94 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.497e-06/0.3439, allocations: 2.156 kB / 0.5301 GB, free: 10.94 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002876/0.3442, allocations: 54.52 kB / 0.5301 GB, free: 10.93 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.396e-06/0.3442, allocations: 1.406 kB / 0.5301 GB, free: 10.93 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.089e-05/0.3443, allocations: 15.61 kB / 0.5301 GB, free: 10.91 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.48e-06/0.3443, allocations: 2.5 kB / 0.5301 GB, free: 10.91 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.3443, allocations: 5.344 kB / 0.5301 GB, free: 10.91 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005877/0.3449, allocations: 396.5 kB / 0.5305 GB, free: 10.58 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.644e-05/0.345, allocations: 110.5 kB / 0.5306 GB, free: 10.46 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.775e-05/0.345, allocations: 7.062 kB / 0.5306 GB, free: 10.46 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002389/0.3453, allocations: 15.89 kB / 0.5306 GB, free: 10.45 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.291e-05/0.3453, allocations: 19 kB / 0.5307 GB, free: 10.44 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.249e-05/0.3454, allocations: 8.5 kB / 0.5307 GB, free: 10.44 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002455/0.3456, allocations: 226.3 kB / 0.5309 GB, free: 10.29 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3456, allocations: 1.156 kB / 0.5309 GB, free: 10.29 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004054/0.346, allocations: 74.25 kB / 0.531 GB, free: 10.27 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (15): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009484/0.347, allocations: 0.9252 MB / 0.5319 GB, free: 9.406 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005918/0.3476, allocations: 196.1 kB / 0.5321 GB, free: 9.324 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.3476, allocations: 0 / 0.5321 GB, free: 9.324 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002415/0.3479, allocations: 81.73 kB / 0.5321 GB, free: 9.289 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004483/0.3483, allocations: 29.95 kB / 0.5322 GB, free: 9.27 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004289/0.3526, allocations: 2.96 MB / 0.535 GB, free: 6.922 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000422/0.3531, allocations: 0.7849 MB / 0.5358 GB, free: 6.172 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001067/0.3532, allocations: 21.28 kB / 0.5358 GB, free: 6.164 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001484/0.3533, allocations: 99.28 kB / 0.5359 GB, free: 6.082 MB / 398.1 MB Notification: Performance of SimCode: time 5.31e-07/0.3533, allocations: 0 / 0.5359 GB, free: 6.082 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02796/0.3813, allocations: 4.881 MB / 0.5407 GB, free: 3.613 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.479/8.86, allocations: 3.375 kB / 0.5407 GB, free: 3.613 MB / 398.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-05 --interface-type ModelExchange --solver CVode --output-interval 0.001 ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Sources.fmu > ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Magnetic/FluxTubes/Sources/Sources.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches