Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.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) 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(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_CylinderLeakage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_CylinderLeakage",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.001125/0.001125, allocations: 114.9 kB / 16.63 MB, free: 6.812 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.001206/0.001206, allocations: 186 kB / 17.55 MB, free: 5.934 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.37/1.37, allocations: 222.9 MB / 241.2 MB, free: 15.38 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001247/0.001247, allocations: 52.02 kB / 300.3 MB, free: 6.07 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09598/0.09725, allocations: 49.44 MB / 349.7 MB, free: 4.617 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage): time 0.006529/0.1038, allocations: 5.222 MB / 354.9 MB, free: 15.36 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002897/0.1067, allocations: 1.658 MB / 356.6 MB, free: 13.7 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004947/0.1073, allocations: 19.94 kB / 356.6 MB, free: 13.68 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003043/0.1103, allocations: 1.328 MB / 357.9 MB, free: 12.35 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008874/0.1112, allocations: 270.3 kB / 358.2 MB, free: 12.08 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001447/0.1127, allocations: 0.7618 MB / 359 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008609/0.1136, allocations: 0.8131 MB / 359.8 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001118/0.1147, allocations: 0.8743 MB / 360.6 MB, free: 9.617 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003501/0.1151, allocations: 354.7 kB / 361 MB, free: 9.27 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004519/0.1155, allocations: 470.1 kB / 361.4 MB, free: 8.809 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.623e-05/0.1156, allocations: 72 kB / 361.5 MB, free: 8.738 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004803/0.1161, allocations: 259.8 kB / 361.8 MB, free: 8.484 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001188/0.1162, allocations: 179.3 kB / 361.9 MB, free: 8.309 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003372/0.1166, allocations: 421.9 kB / 362.4 MB, free: 7.895 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00106/0.1176, allocations: 1.184 MB / 363.5 MB, free: 6.707 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.1177, allocations: 0 / 363.5 MB, free: 6.707 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.1177, allocations: 0 / 363.5 MB, free: 6.707 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.839e-06/0.1177, allocations: 0 / 363.5 MB, free: 6.707 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.003842/0.1215, allocations: 1.447 MB / 365 MB, free: 5.207 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.408e-05/0.1216, allocations: 8.031 kB / 365 MB, free: 5.199 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001508/0.1217, allocations: 160.4 kB / 365.2 MB, free: 5.035 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001715/0.1235, allocations: 251.7 kB / 365.4 MB, free: 4.789 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000252/0.1237, allocations: 263.1 kB / 365.7 MB, free: 4.492 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.801e-05/0.1238, allocations: 74.38 kB / 365.7 MB, free: 4.422 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001414/0.1239, allocations: 100.4 kB / 365.8 MB, free: 4.324 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001549/0.1255, allocations: 0.9422 MB / 366.8 MB, free: 3.367 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.978e-05/0.1255, allocations: 0 / 366.8 MB, free: 3.367 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.063e-05/0.1256, allocations: 40 kB / 366.8 MB, free: 3.328 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.84e-05/0.1257, allocations: 28 kB / 366.8 MB, free: 3.301 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001277/0.1269, allocations: 0.777 MB / 367.6 MB, free: 2.527 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.159/0.286, allocations: 3.376 MB / 371 MB, free: 23.88 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001864/0.2879, allocations: 1.257 MB / 372.2 MB, free: 23.44 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005158/0.2884, allocations: 371.3 kB / 372.6 MB, free: 23.42 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001003/0.2885, allocations: 109.2 kB / 372.7 MB, free: 23.33 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.001e-05/0.2885, allocations: 45.19 kB / 372.8 MB, free: 23.29 MB / 302.1 MB Notification: Performance of pre-optimization done (n=87): time 2.505e-06/0.2886, allocations: 0 / 372.8 MB, free: 23.29 MB / 302.1 MB Notification: Performance of matching and sorting (n=87): time 0.002052/0.2906, allocations: 1.302 MB / 374.1 MB, free: 22.59 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.374e-05/0.2907, allocations: 86.97 kB / 374.1 MB, free: 22.49 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003999/0.2911, allocations: 372 kB / 374.5 MB, free: 22.3 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.926e-05/0.2911, allocations: 39.17 kB / 374.5 MB, free: 22.25 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001889/0.2913, allocations: 379.8 kB / 374.9 MB, free: 21.96 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002065/0.2915, allocations: 299.5 kB / 375.2 MB, free: 21.73 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002422/0.2918, allocations: 173.9 kB / 375.4 MB, free: 21.64 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.133e-05/0.2919, allocations: 365 kB / 375.7 MB, free: 21.3 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000417/0.2923, allocations: 262.6 kB / 376 MB, free: 21.21 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004989/0.2928, allocations: 471.2 kB / 376.5 MB, free: 20.88 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008488/0.2937, allocations: 0.781 MB / 377.2 MB, free: 20.37 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.28e-06/0.2937, allocations: 1.375 kB / 377.2 MB, free: 20.37 MB / 302.1 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.00146/0.2951, allocations: 0.9673 MB / 378.2 MB, free: 19.93 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.163e-05/0.2952, allocations: 11.22 kB / 378.2 MB, free: 19.93 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.304e-05/0.2952, allocations: 6.531 kB / 378.2 MB, free: 19.93 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003966/0.2956, allocations: 124.8 kB / 378.3 MB, free: 19.88 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007706/0.2964, allocations: 203.6 kB / 378.5 MB, free: 19.86 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002806/0.2992, allocations: 6.118 MB / 384.7 MB, free: 13.76 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005597/0.2998, allocations: 106.5 kB / 384.8 MB, free: 13.68 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.298e-05/0.2998, allocations: 48.09 kB / 384.8 MB, free: 13.67 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * 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 (120): * Single equations (assignments): 116 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,2,100.0%), (1,2,100.0%), (1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002604/0.3001, allocations: 226.4 kB / 385 MB, free: 13.48 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001018/0.3002, allocations: 53.06 kB / 385.1 MB, free: 13.45 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001302/0.3015, allocations: 0.8541 MB / 385.9 MB, free: 13.02 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.718e-06/0.3015, allocations: 10.7 kB / 385.9 MB, free: 13.02 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.002e-06/0.3015, allocations: 1.562 kB / 385.9 MB, free: 13.02 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.919e-06/0.3016, allocations: 4.906 kB / 386 MB, free: 13.02 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002429/0.304, allocations: 1.93 MB / 387.9 MB, free: 11.83 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.452e-06/0.304, allocations: 6.812 kB / 387.9 MB, free: 11.82 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005756/0.3046, allocations: 139.6 kB / 388 MB, free: 11.81 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002657/0.3049, allocations: 110.4 kB / 388.1 MB, free: 11.75 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.271e-05/0.3049, allocations: 21.05 kB / 388.2 MB, free: 11.74 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002405/0.3073, allocations: 5.709 MB / 393.9 MB, free: 5.996 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/0.3073, allocations: 2.875 kB / 393.9 MB, free: 5.996 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001531/0.3089, allocations: 1.277 MB / 395.1 MB, free: 5.23 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001036/0.309, allocations: 150.6 kB / 395.3 MB, free: 5.086 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.665e-05/0.3091, allocations: 15.42 kB / 395.3 MB, free: 5.078 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003936/0.3095, allocations: 22.2 kB / 395.3 MB, free: 5.066 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001017/0.3096, allocations: 66.38 kB / 395.4 MB, free: 5.051 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.135e-05/0.3096, allocations: 27.84 kB / 395.4 MB, free: 5.043 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002386/0.3099, allocations: 252.1 kB / 395.7 MB, free: 4.902 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3099, allocations: 4.062 kB / 395.7 MB, free: 4.898 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008843/0.3108, allocations: 259.4 kB / 395.9 MB, free: 4.836 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 1 (constantSource.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 (78): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,2,100.0%), (1,2,100.0%), (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.001767/0.3126, allocations: 1.87 MB / 397.8 MB, free: 3.52 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001757/0.3143, allocations: 1.207 MB / 399 MB, free: 2.777 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.517e-06/0.3143, allocations: 0 / 399 MB, free: 2.777 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006809/0.315, allocations: 0.7953 MB / 399.8 MB, free: 2.195 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005719/0.3156, allocations: 62.62 kB / 399.9 MB, free: 2.152 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007224/0.3228, allocations: 6.13 MB / 406 MB, free: 14.12 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004442/0.3233, allocations: 0.9206 MB / 406.9 MB, free: 13.41 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005525/0.3239, allocations: 104.3 kB / 407 MB, free: 13.36 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003162/0.3242, allocations: 244.3 kB / 407.2 MB, free: 13.18 MB / 318.1 MB Notification: Performance of SimCode: time 4.11e-07/0.3242, allocations: 0 / 407.2 MB, free: 13.18 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03233/0.3565, allocations: 12.5 MB / 419.8 MB, free: 2.285 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002985/0.3569, allocations: 252.4 kB / 420 MB, free: 2.035 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.26/2.617, allocations: 0 / 420 MB, free: 2.035 MB / 318.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_CylinderLeakage_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_CylinderLeakage.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/Leakage/CylinderLeakage/CylinderLeakage.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches