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.00144/0.00144, allocations: 117.2 kB / 17.78 MB, free: 5.254 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.001684/0.001684, 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.339/1.339, allocations: 222.9 MB / 242.4 MB, free: 15.09 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.2024/0.2024, allocations: 44.19 MB / 336.8 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001432/0.001432, allocations: 67.83 kB / 470 MB, free: 13.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3175/0.319, allocations: 60.82 MB / 0.5184 GB, free: 3.293 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Sources): time 0.003602/0.3226, allocations: 2.667 MB / 0.521 GB, free: 1.418 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001081/0.3237, allocations: 0.7422 MB / 0.5217 GB, free: 0.8789 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001341/0.3239, allocations: 9.438 kB / 0.5217 GB, free: 0.875 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001989/0.3241, allocations: 70.58 kB / 0.5218 GB, free: 0.832 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002078/0.3243, allocations: 101.9 kB / 0.5219 GB, free: 0.7617 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002606/0.3246, allocations: 115.3 kB / 0.522 GB, free: 0.6953 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003617/0.325, allocations: 421.5 kB / 0.5224 GB, free: 0.4922 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002155/0.3252, allocations: 155.3 kB / 0.5226 GB, free: 416 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002316/0.3254, allocations: 145.3 kB / 0.5227 GB, free: 348 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001903/0.3256, allocations: 173.6 kB / 0.5229 GB, free: 252 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.721e-05/0.3257, allocations: 33.38 kB / 0.5229 GB, free: 252 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.328e-05/0.3258, allocations: 32.25 kB / 0.5229 GB, free: 252 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.391e-05/0.3258, allocations: 79.66 kB / 0.523 GB, free: 196 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001613/0.326, allocations: 178.5 kB / 0.5232 GB, free: 84 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005678/0.3266, allocations: 428.6 kB / 0.5236 GB, free: 15.91 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.808e-06/0.3266, allocations: 0 / 0.5236 GB, free: 15.91 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.3266, allocations: 5.75 kB / 0.5236 GB, free: 15.9 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.397e-06/0.3266, allocations: 0 / 0.5236 GB, free: 15.9 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.001101/0.3277, allocations: 0.6663 MB / 0.5242 GB, free: 15.37 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.004e-05/0.3278, allocations: 9.594 kB / 0.5243 GB, free: 15.37 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001031/0.3279, allocations: 77.66 kB / 0.5243 GB, free: 15.3 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.133e-05/0.328, allocations: 40.92 kB / 0.5244 GB, free: 15.28 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003629/0.3283, allocations: 277.3 kB / 0.5246 GB, free: 15.02 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.429e-05/0.3284, allocations: 26.89 kB / 0.5247 GB, free: 15 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.513e-05/0.3284, allocations: 30.38 kB / 0.5247 GB, free: 15 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006942/0.3291, allocations: 371.9 kB / 0.525 GB, free: 14.81 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.402e-05/0.3291, allocations: 1.188 kB / 0.525 GB, free: 14.81 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.05e-05/0.3292, allocations: 10.34 kB / 0.5251 GB, free: 14.8 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.708e-06/0.3292, allocations: 9.781 kB / 0.5251 GB, free: 14.8 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006491/0.3299, allocations: 266.2 kB / 0.5253 GB, free: 14.72 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002025/0.3319, allocations: 1.34 MB / 0.5266 GB, free: 13.73 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005002/0.3324, allocations: 198.8 kB / 0.5268 GB, free: 13.6 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002242/0.3326, allocations: 80.42 kB / 0.5269 GB, free: 13.55 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.711e-05/0.3327, allocations: 6.781 kB / 0.5269 GB, free: 13.55 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.806e-05/0.3327, allocations: 37.73 kB / 0.5269 GB, free: 13.5 MB / 398.1 MB Notification: Performance of pre-optimization done (n=15): time 1.372e-06/0.3327, allocations: 0 / 0.5269 GB, free: 13.5 MB / 398.1 MB Notification: Performance of matching and sorting (n=15): time 0.0008622/0.3336, allocations: 252 kB / 0.5272 GB, free: 13.37 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.242e-05/0.3337, allocations: 135.1 kB / 0.5273 GB, free: 13.21 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003369/0.334, allocations: 325.1 kB / 0.5276 GB, free: 13 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.02e-05/0.334, allocations: 31.14 kB / 0.5276 GB, free: 12.96 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001523/0.3342, allocations: 249.4 kB / 0.5279 GB, free: 12.73 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.435e-05/0.3342, allocations: 54.95 kB / 0.5279 GB, free: 12.69 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.344e-05/0.3343, allocations: 54.7 kB / 0.528 GB, free: 12.64 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001268/0.3345, allocations: 341 kB / 0.5283 GB, free: 12.31 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002364/0.3347, allocations: 78.88 kB / 0.5284 GB, free: 12.27 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002872/0.335, allocations: 173.7 kB / 0.5286 GB, free: 12.12 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005064/0.3355, allocations: 255.3 kB / 0.5288 GB, free: 11.92 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.3355, allocations: 0 / 0.5288 GB, free: 11.92 MB / 398.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0006856/0.3362, allocations: 309 kB / 0.5291 GB, free: 11.75 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.051e-05/0.3363, allocations: 10.45 kB / 0.5291 GB, free: 11.75 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.247e-06/0.3363, allocations: 3.031 kB / 0.5291 GB, free: 11.75 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.181e-05/0.3363, allocations: 9.094 kB / 0.5291 GB, free: 11.75 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000423/0.3367, allocations: 88.56 kB / 0.5292 GB, free: 11.72 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.313e-05/0.3368, allocations: 9.453 kB / 0.5292 GB, free: 11.72 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002931/0.3371, allocations: 47.75 kB / 0.5292 GB, free: 11.69 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.543e-05/0.3371, allocations: 13.59 kB / 0.5293 GB, free: 11.68 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.0002097/0.3373, allocations: 152.7 kB / 0.5294 GB, free: 11.54 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001156/0.3374, allocations: 30.16 kB / 0.5294 GB, free: 11.52 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.706e-05/0.3375, allocations: 35.8 kB / 0.5295 GB, free: 11.49 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.859e-06/0.3375, allocations: 2.844 kB / 0.5295 GB, free: 11.49 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.965e-06/0.3375, allocations: 5.562 kB / 0.5295 GB, free: 11.49 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.3375, allocations: 0 / 0.5295 GB, free: 11.49 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008599/0.3384, allocations: 0.5896 MB / 0.5301 GB, free: 10.92 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.667e-06/0.3384, allocations: 5.219 kB / 0.5301 GB, free: 10.92 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000296/0.3387, allocations: 58.25 kB / 0.5301 GB, free: 10.9 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.508e-06/0.3387, allocations: 2.5 kB / 0.5301 GB, free: 10.9 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.519e-05/0.3388, allocations: 7.062 kB / 0.5301 GB, free: 10.89 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.547e-06/0.3388, allocations: 6.531 kB / 0.5301 GB, free: 10.89 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.606e-06/0.3388, allocations: 10.5 kB / 0.5301 GB, free: 10.88 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000584/0.3394, allocations: 391.8 kB / 0.5305 GB, free: 10.55 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.642e-05/0.3395, allocations: 110 kB / 0.5306 GB, free: 10.44 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.353e-05/0.3395, allocations: 11.22 kB / 0.5306 GB, free: 10.43 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002373/0.3398, allocations: 16.25 kB / 0.5306 GB, free: 10.42 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.845e-05/0.3398, allocations: 22.7 kB / 0.5307 GB, free: 10.41 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.828e-06/0.3399, allocations: 4.781 kB / 0.5307 GB, free: 10.41 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002463/0.3401, allocations: 226.2 kB / 0.5309 GB, free: 10.26 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3401, allocations: 1.344 kB / 0.5309 GB, free: 10.26 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004209/0.3405, allocations: 74.12 kB / 0.531 GB, free: 10.24 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.0008319/0.3414, allocations: 0.926 MB / 0.5319 GB, free: 9.375 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005791/0.342, allocations: 193.5 kB / 0.532 GB, free: 9.293 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.342, allocations: 1.125 kB / 0.532 GB, free: 9.293 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002503/0.3422, allocations: 86.92 kB / 0.5321 GB, free: 9.254 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004666/0.3427, allocations: 24.88 kB / 0.5322 GB, free: 9.242 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004733/0.3475, allocations: 2.963 MB / 0.5351 GB, free: 6.891 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004035/0.3479, allocations: 0.7815 MB / 0.5358 GB, free: 6.148 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001238/0.348, allocations: 21.92 kB / 0.5358 GB, free: 6.141 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001433/0.3482, allocations: 103.1 kB / 0.5359 GB, free: 6.055 MB / 398.1 MB Notification: Performance of SimCode: time 2.114e-06/0.3482, allocations: 0 / 0.5359 GB, free: 6.055 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02655/0.3748, allocations: 4.871 MB / 0.5407 GB, free: 3.594 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.184/8.558, allocations: 8.312 kB / 0.5407 GB, free: 3.594 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