Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.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.Shapes.Leakage,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Shapes_Leakage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Shapes_Leakage",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.001106/0.001106, allocations: 109.5 kB / 17.78 MB, free: 5.289 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.001188/0.001188, allocations: 188 kB / 18.71 MB, free: 4.371 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.308/1.308, 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.2059/0.2059, allocations: 44.19 MB / 336.8 MB, free: 2.66 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001627/0.001627, allocations: 63.89 kB / 470 MB, free: 13.67 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2963/0.2979, allocations: 60.82 MB / 0.5184 GB, free: 3.297 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage): time 0.003092/0.301, allocations: 2.363 MB / 0.5207 GB, free: 1.641 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008751/0.3019, allocations: 0.6144 MB / 0.5213 GB, free: 1.195 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.691e-05/0.302, allocations: 4.312 kB / 0.5213 GB, free: 1.195 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 8.436e-05/0.3021, allocations: 47.25 kB / 0.5214 GB, free: 1.164 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001586/0.3023, allocations: 69.61 kB / 0.5214 GB, free: 1.113 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002186/0.3025, allocations: 90.22 kB / 0.5215 GB, free: 1.062 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002766/0.3028, allocations: 343.7 kB / 0.5218 GB, free: 0.8945 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002352/0.3031, allocations: 155.3 kB / 0.522 GB, free: 0.8203 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001758/0.3032, allocations: 133.4 kB / 0.5221 GB, free: 0.7617 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001915/0.3034, allocations: 158.5 kB / 0.5223 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.837e-05/0.3035, allocations: 32.81 kB / 0.5223 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.017e-05/0.3036, allocations: 32.94 kB / 0.5223 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.32e-05/0.3036, allocations: 77.66 kB / 0.5224 GB, free: 0.625 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001167/0.3037, allocations: 152.9 kB / 0.5226 GB, free: 0.5352 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003703/0.3041, allocations: 378 kB / 0.5229 GB, free: 400 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.3041, allocations: 0 / 0.5229 GB, free: 400 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.3041, allocations: 0 / 0.5229 GB, free: 400 kB / 382.1 MB Notification: Performance of Transformations before backend: time 6.983e-06/0.3041, allocations: 0 / 0.5229 GB, free: 400 kB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.0008562/0.305, allocations: 0.5826 MB / 0.5235 GB, free: 15.91 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.92e-05/0.3051, allocations: 8.531 kB / 0.5235 GB, free: 15.91 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.251e-05/0.3051, allocations: 68.3 kB / 0.5236 GB, free: 15.85 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.005e-05/0.3052, allocations: 31.84 kB / 0.5236 GB, free: 15.83 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001643/0.3054, allocations: 207.9 kB / 0.5238 GB, free: 15.61 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.641e-05/0.3054, allocations: 22.03 kB / 0.5238 GB, free: 15.6 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.161e-05/0.3055, allocations: 36.8 kB / 0.5238 GB, free: 15.58 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004823/0.3059, allocations: 280.5 kB / 0.5241 GB, free: 15.45 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.215e-05/0.306, allocations: 4.969 kB / 0.5241 GB, free: 15.45 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.741e-05/0.306, allocations: 10.19 kB / 0.5241 GB, free: 15.44 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.018e-05/0.306, allocations: 8.406 kB / 0.5241 GB, free: 15.44 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004015/0.3064, allocations: 216 kB / 0.5243 GB, free: 15.36 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00169/0.3081, allocations: 1.002 MB / 0.5253 GB, free: 14.73 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.153e-05/0.3082, allocations: 29.33 kB / 0.5253 GB, free: 14.7 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.052e-05/0.3083, allocations: 28.53 kB / 0.5254 GB, free: 14.69 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.267e-06/0.3083, allocations: 0 / 0.5254 GB, free: 14.69 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.012e-05/0.3083, allocations: 38.5 kB / 0.5254 GB, free: 14.64 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 1.022e-06/0.3083, allocations: 0 / 0.5254 GB, free: 14.64 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001963/0.3085, allocations: 77.05 kB / 0.5255 GB, free: 14.58 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.292e-05/0.3086, allocations: 53.67 kB / 0.5255 GB, free: 14.52 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003601/0.3089, allocations: 318.8 kB / 0.5258 GB, free: 14.34 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.221e-05/0.309, allocations: 27.08 kB / 0.5259 GB, free: 14.3 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001379/0.3091, allocations: 231 kB / 0.5261 GB, free: 14.11 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.329e-05/0.3091, allocations: 16.28 kB / 0.5261 GB, free: 14.1 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.109e-05/0.3092, allocations: 62.52 kB / 0.5262 GB, free: 14.05 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000117/0.3093, allocations: 329.4 kB / 0.5265 GB, free: 13.73 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001249/0.3095, allocations: 63.98 kB / 0.5265 GB, free: 13.71 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001427/0.3096, allocations: 95.98 kB / 0.5266 GB, free: 13.66 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000191/0.3098, allocations: 121 kB / 0.5267 GB, free: 13.59 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.3098, allocations: 0 / 0.5267 GB, free: 13.59 MB / 398.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003851/0.3102, allocations: 236.4 kB / 0.527 GB, free: 13.48 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.661e-05/0.3103, allocations: 9.141 kB / 0.527 GB, free: 13.47 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.3103, allocations: 1.25 kB / 0.527 GB, free: 13.47 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.312e-05/0.3103, allocations: 1.312 kB / 0.527 GB, free: 13.47 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003087/0.3106, allocations: 62.88 kB / 0.527 GB, free: 13.46 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.782e-06/0.3106, allocations: 1.984 kB / 0.527 GB, free: 13.46 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002463/0.3109, allocations: 39.11 kB / 0.5271 GB, free: 13.43 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.585e-05/0.3109, allocations: 7.281 kB / 0.5271 GB, free: 13.43 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (30): * Single equations (assignments): 30 * 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.0001097/0.311, allocations: 132 kB / 0.5272 GB, free: 13.3 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.237e-05/0.3111, allocations: 33.94 kB / 0.5272 GB, free: 13.28 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.003e-05/0.3111, allocations: 22.48 kB / 0.5273 GB, free: 13.27 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.3111, allocations: 0 / 0.5273 GB, free: 13.27 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.407e-06/0.3111, allocations: 0 / 0.5273 GB, free: 13.27 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.3111, allocations: 2.359 kB / 0.5273 GB, free: 13.27 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000615/0.3117, allocations: 0.5103 MB / 0.5278 GB, free: 12.81 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.517e-06/0.3118, allocations: 0 / 0.5278 GB, free: 12.81 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.401e-05/0.3118, allocations: 12.98 kB / 0.5278 GB, free: 12.8 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.274e-06/0.3118, allocations: 0.7031 kB / 0.5278 GB, free: 12.8 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.693e-05/0.3118, allocations: 0 / 0.5278 GB, free: 12.8 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.3118, allocations: 2 kB / 0.5278 GB, free: 12.8 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.3118, allocations: 0 / 0.5278 GB, free: 12.8 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001187/0.312, allocations: 94.3 kB / 0.5279 GB, free: 12.71 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.803e-05/0.3121, allocations: 110.9 kB / 0.528 GB, free: 12.6 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.094e-05/0.3121, allocations: 2.031 kB / 0.528 GB, free: 12.6 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001127/0.3122, allocations: 2.141 kB / 0.528 GB, free: 12.6 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.294e-05/0.3122, allocations: 2.406 kB / 0.528 GB, free: 12.6 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.713e-06/0.3122, allocations: 0 / 0.528 GB, free: 12.6 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002338/0.3125, allocations: 233.3 kB / 0.5282 GB, free: 12.45 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3125, allocations: 0 / 0.5282 GB, free: 12.45 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002706/0.3128, allocations: 64.66 kB / 0.5283 GB, free: 12.43 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (2): * Single equations (assignments): 2 * 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.0003614/0.3131, allocations: 0.6328 MB / 0.5289 GB, free: 11.8 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002358/0.3134, allocations: 117.9 kB / 0.529 GB, free: 11.75 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.3134, allocations: 0 / 0.529 GB, free: 11.75 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 2.36e-05/0.3134, allocations: 9.594 kB / 0.529 GB, free: 11.75 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002817/0.3137, allocations: 30.5 kB / 0.529 GB, free: 11.73 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002457/0.3162, allocations: 2.216 MB / 0.5312 GB, free: 10.02 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002737/0.3165, allocations: 0.7456 MB / 0.5319 GB, free: 9.289 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001081/0.3166, allocations: 24.58 kB / 0.532 GB, free: 9.277 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001105/0.3167, allocations: 73.55 kB / 0.532 GB, free: 9.215 MB / 398.1 MB Notification: Performance of SimCode: time 3.3e-07/0.3167, allocations: 0 / 0.532 GB, free: 9.215 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02075/0.3375, allocations: 4.221 MB / 0.5361 GB, free: 7.051 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.82/8.157, allocations: 9.469 kB / 0.5362 GB, free: 7.047 MB / 398.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Shapes_Leakage_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Shapes_Leakage.fmu > ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Magnetic/FluxTubes/Shapes/Leakage/Leakage.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches