Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Magnetic_FluxTubes_Shapes_Leakage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Magnetic_FluxTubes_Shapes_Leakage",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001038/0.001039, allocations: 198.4 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.29/1.29, allocations: 226.5 MB / 243.4 MB, free: 8.203 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007851/0.0007852, allocations: 99.56 kB / 295.5 MB, free: 6.902 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3149/0.3149, allocations: 44.81 MB / 392.3 MB, free: 35.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002823/0.0002827, allocations: 8 kB / 465.4 MB, free: 12.57 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3041/0.3044, allocations: 62.96 MB / 0.516 GB, free: 37 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage): time 0.002027/0.3064, allocations: 1.967 MB / 0.5179 GB, free: 35.58 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007974/0.3073, allocations: 0.6284 MB / 0.5185 GB, free: 35.12 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.26e-05/0.3074, allocations: 9.656 kB / 0.5185 GB, free: 35.12 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 5.043e-05/0.3074, allocations: 28.64 kB / 0.5185 GB, free: 35.11 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001419/0.3076, allocations: 61.94 kB / 0.5186 GB, free: 35.06 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001989/0.3078, allocations: 64.02 kB / 0.5187 GB, free: 35.03 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002301/0.308, allocations: 315.1 kB / 0.519 GB, free: 34.88 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002117/0.3082, allocations: 129.6 kB / 0.5191 GB, free: 34.81 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001709/0.3084, allocations: 117.3 kB / 0.5192 GB, free: 34.76 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001349/0.3086, allocations: 128 kB / 0.5193 GB, free: 34.7 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 3.244e-05/0.3086, allocations: 17.5 kB / 0.5193 GB, free: 34.7 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.171e-05/0.3087, allocations: 20.41 kB / 0.5194 GB, free: 34.7 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 3.234e-05/0.3087, allocations: 45.41 kB / 0.5194 GB, free: 34.68 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001015/0.3088, allocations: 156.5 kB / 0.5195 GB, free: 34.57 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002109/0.309, allocations: 285 kB / 0.5198 GB, free: 34.51 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.309, allocations: 4 kB / 0.5198 GB, free: 34.51 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.954e-06/0.309, allocations: 3.938 kB / 0.5198 GB, free: 34.5 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.54e-06/0.3091, allocations: 3.938 kB / 0.5198 GB, free: 34.5 MB / 378.7 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.0006675/0.3097, allocations: 0.5258 MB / 0.5203 GB, free: 34.05 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.308e-05/0.3098, allocations: 8.844 kB / 0.5203 GB, free: 34.05 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.272e-05/0.3098, allocations: 72.38 kB / 0.5204 GB, free: 34 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000261/0.3101, allocations: 43.17 kB / 0.5205 GB, free: 33.98 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001445/0.3103, allocations: 207 kB / 0.5207 GB, free: 33.75 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.481e-05/0.3104, allocations: 26.47 kB / 0.5207 GB, free: 33.75 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.484e-05/0.3104, allocations: 33.38 kB / 0.5207 GB, free: 33.73 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004352/0.3108, allocations: 281.2 kB / 0.521 GB, free: 33.6 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.237e-05/0.3109, allocations: 2.875 kB / 0.521 GB, free: 33.6 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.392e-05/0.3109, allocations: 8 kB / 0.521 GB, free: 33.59 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.616e-06/0.3109, allocations: 8.094 kB / 0.521 GB, free: 33.59 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003517/0.3113, allocations: 216.4 kB / 0.5212 GB, free: 33.52 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001455/0.3127, allocations: 1.035 MB / 0.5222 GB, free: 32.86 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.594e-05/0.3128, allocations: 27.27 kB / 0.5222 GB, free: 32.83 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.858e-05/0.3129, allocations: 27.33 kB / 0.5223 GB, free: 32.82 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.697e-06/0.3129, allocations: 0 / 0.5223 GB, free: 32.82 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.826e-05/0.3129, allocations: 37.64 kB / 0.5223 GB, free: 32.77 MB / 378.7 MB Notification: Performance of pre-optimization done (n=2): time 8.42e-07/0.3129, allocations: 0 / 0.5223 GB, free: 32.77 MB / 378.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001844/0.3131, allocations: 76.08 kB / 0.5224 GB, free: 32.71 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.11e-05/0.3131, allocations: 53.81 kB / 0.5224 GB, free: 32.65 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000288/0.3134, allocations: 319.8 kB / 0.5227 GB, free: 32.47 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.514e-06/0.3135, allocations: 29.64 kB / 0.5228 GB, free: 32.44 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.428e-05/0.3135, allocations: 232 kB / 0.523 GB, free: 32.24 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.065e-05/0.3136, allocations: 13.98 kB / 0.523 GB, free: 32.23 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.152e-05/0.3136, allocations: 6.844 kB / 0.523 GB, free: 32.23 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.661e-05/0.3136, allocations: 328.3 kB / 0.5233 GB, free: 31.91 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000113/0.3138, allocations: 69.38 kB / 0.5234 GB, free: 31.88 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001203/0.3139, allocations: 98.59 kB / 0.5235 GB, free: 31.83 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001685/0.3141, allocations: 125.6 kB / 0.5236 GB, free: 31.76 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.3141, allocations: 0 / 0.5236 GB, free: 31.76 MB / 378.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.000321/0.3144, allocations: 233.7 kB / 0.5238 GB, free: 31.65 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.515e-05/0.3144, allocations: 13.25 kB / 0.5238 GB, free: 31.64 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.44e-06/0.3144, allocations: 0 / 0.5238 GB, free: 31.64 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.384e-05/0.3144, allocations: 6.922 kB / 0.5238 GB, free: 31.64 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002686/0.3147, allocations: 59.61 kB / 0.5239 GB, free: 31.63 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.863e-06/0.3147, allocations: 3 kB / 0.5239 GB, free: 31.63 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002239/0.315, allocations: 44.42 kB / 0.5239 GB, free: 31.6 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.528e-05/0.315, allocations: 5.312 kB / 0.5239 GB, free: 31.6 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.453e-05/0.3151, allocations: 136 kB / 0.5241 GB, free: 31.47 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.578e-05/0.3151, allocations: 20.12 kB / 0.5241 GB, free: 31.46 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.689e-05/0.3152, allocations: 25.44 kB / 0.5241 GB, free: 31.45 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.3152, allocations: 2.844 kB / 0.5241 GB, free: 31.45 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.057e-06/0.3152, allocations: 0 / 0.5241 GB, free: 31.45 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.364e-06/0.3152, allocations: 0 / 0.5241 GB, free: 31.45 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000441/0.3156, allocations: 0.5099 MB / 0.5246 GB, free: 30.99 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.3156, allocations: 0 / 0.5246 GB, free: 30.99 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.648e-05/0.3157, allocations: 6.75 kB / 0.5246 GB, free: 30.99 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.874e-06/0.3157, allocations: 3.25 kB / 0.5246 GB, free: 30.99 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.923e-06/0.3157, allocations: 3.234 kB / 0.5246 GB, free: 30.99 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.405e-06/0.3157, allocations: 3.938 kB / 0.5246 GB, free: 30.98 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.3157, allocations: 0 / 0.5246 GB, free: 30.98 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.837e-05/0.3158, allocations: 91.84 kB / 0.5247 GB, free: 30.89 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.255e-05/0.3159, allocations: 112.8 kB / 0.5248 GB, free: 30.78 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.732e-05/0.3159, allocations: 2.531 kB / 0.5248 GB, free: 30.78 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000105/0.316, allocations: 2.5 kB / 0.5248 GB, free: 30.78 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.496e-05/0.316, allocations: 3.938 kB / 0.5248 GB, free: 30.77 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.997e-06/0.316, allocations: 2.625 kB / 0.5248 GB, free: 30.77 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001862/0.3162, allocations: 223.7 kB / 0.5251 GB, free: 30.65 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3162, allocations: 0 / 0.5251 GB, free: 30.65 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002289/0.3165, allocations: 62 kB / 0.5251 GB, free: 30.64 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002456/0.3167, allocations: 0.6416 MB / 0.5257 GB, free: 30 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002061/0.3169, allocations: 115.9 kB / 0.5259 GB, free: 29.96 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.023e-06/0.317, allocations: 0 / 0.5259 GB, free: 29.96 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 2.131e-05/0.317, allocations: 16.14 kB / 0.5259 GB, free: 29.95 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002536/0.3172, allocations: 29.61 kB / 0.5259 GB, free: 29.93 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001379/0.3186, allocations: 1.212 MB / 0.5271 GB, free: 29.18 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001384/0.3188, allocations: 0.7385 MB / 0.5278 GB, free: 28.49 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001099/0.3189, allocations: 77.12 kB / 0.5279 GB, free: 28.43 MB / 378.7 MB Notification: Performance of SimCode: time 3.1e-07/0.3189, allocations: 4 kB / 0.5279 GB, free: 28.43 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.419/2.738, allocations: 3.394 MB / 0.5312 GB, free: 28.09 MB / 378.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Magnetic_FluxTubes_Shapes_Leakage_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 ModelicaTest_trunk_cpp_ModelicaTest_Magnetic_FluxTubes_Shapes_Leakage.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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","../files/ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches