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: translateModel(ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage,tolerance=1e-05,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|quarterCylinder.G_m|quarterHollowCylinder.G_m|halfCylinder.G_m|halfHollowCylinder.G_m|quarterSphere.G_m|quarterHollowSphere.G_m|eighthOfSphere.G_m|eighthOfHollowSphere.G_m|coaxCylindersEndFaces.G_m",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage") translateModel(ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage,tolerance=1e-05,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|quarterCylinder.G_m|quarterHollowCylinder.G_m|halfCylinder.G_m|halfHollowCylinder.G_m|quarterSphere.G_m|quarterHollowSphere.G_m|eighthOfSphere.G_m|eighthOfHollowSphere.G_m|coaxCylindersEndFaces.G_m",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001276/0.001276, allocations: 199.7 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.277/1.277, allocations: 226.5 MB / 243.4 MB, free: 6.477 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008266/0.0008264, allocations: 103.1 kB / 295.5 MB, free: 6.664 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2945/0.2945, allocations: 44.82 MB / 392.3 MB, free: 35.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002873/0.0002875, allocations: 8 kB / 465.3 MB, free: 12.66 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2866/0.2869, allocations: 62.97 MB / 0.5159 GB, free: 37.18 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage): time 0.00182/0.2888, allocations: 1.966 MB / 0.5178 GB, free: 35.77 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007978/0.2896, allocations: 0.6254 MB / 0.5184 GB, free: 35.32 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.56e-05/0.2897, allocations: 2.406 kB / 0.5184 GB, free: 35.32 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 4.782e-05/0.2898, allocations: 28.66 kB / 0.5185 GB, free: 35.3 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001428/0.2899, allocations: 66.72 kB / 0.5185 GB, free: 35.25 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002061/0.2901, allocations: 63.77 kB / 0.5186 GB, free: 35.22 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002129/0.2904, allocations: 313.5 kB / 0.5189 GB, free: 35.07 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002092/0.2906, allocations: 124.1 kB / 0.519 GB, free: 35.01 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001751/0.2908, allocations: 117.8 kB / 0.5191 GB, free: 34.96 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000139/0.2909, allocations: 131.5 kB / 0.5192 GB, free: 34.9 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 3.009e-05/0.2909, allocations: 17.66 kB / 0.5192 GB, free: 34.9 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.985e-05/0.291, allocations: 18.5 kB / 0.5193 GB, free: 34.9 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 3.406e-05/0.2911, allocations: 50.28 kB / 0.5193 GB, free: 34.87 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 9.428e-05/0.2912, allocations: 151 kB / 0.5195 GB, free: 34.77 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000195/0.2914, allocations: 285.6 kB / 0.5197 GB, free: 34.71 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.628e-06/0.2914, allocations: 0 / 0.5197 GB, free: 34.71 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.064e-06/0.2914, allocations: 0 / 0.5197 GB, free: 34.71 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.551e-06/0.2914, allocations: 3.938 kB / 0.5197 GB, free: 34.7 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.0006755/0.2921, allocations: 0.5261 MB / 0.5202 GB, free: 34.26 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.611e-05/0.2921, allocations: 12.48 kB / 0.5203 GB, free: 34.26 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002729/0.2924, allocations: 50.27 kB / 0.5203 GB, free: 34.24 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001273/0.2925, allocations: 207.1 kB / 0.5205 GB, free: 34.01 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.363e-05/0.2926, allocations: 26.89 kB / 0.5205 GB, free: 34 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.385e-05/0.2927, allocations: 36.38 kB / 0.5206 GB, free: 33.98 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004009/0.2931, allocations: 282.1 kB / 0.5208 GB, free: 33.86 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.166e-05/0.2931, allocations: 0 / 0.5208 GB, free: 33.86 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.487e-05/0.2931, allocations: 11.44 kB / 0.5208 GB, free: 33.85 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.454e-06/0.2931, allocations: 6.344 kB / 0.5209 GB, free: 33.85 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003458/0.2935, allocations: 215.7 kB / 0.5211 GB, free: 33.77 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001342/0.2948, allocations: 1.027 MB / 0.5221 GB, free: 33.12 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.616e-05/0.2949, allocations: 28.86 kB / 0.5221 GB, free: 33.09 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.724e-05/0.295, allocations: 32.38 kB / 0.5221 GB, free: 33.07 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.628e-06/0.295, allocations: 3 kB / 0.5221 GB, free: 33.07 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.531e-05/0.295, allocations: 34.5 kB / 0.5222 GB, free: 33.03 MB / 378.7 MB Notification: Performance of pre-optimization done (n=2): time 1.092e-06/0.295, allocations: 0 / 0.5222 GB, free: 33.03 MB / 378.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001748/0.2952, allocations: 84.41 kB / 0.5222 GB, free: 32.96 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.985e-05/0.2952, allocations: 51.41 kB / 0.5223 GB, free: 32.9 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002804/0.2955, allocations: 319.4 kB / 0.5226 GB, free: 32.72 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.608e-06/0.2955, allocations: 32.86 kB / 0.5226 GB, free: 32.69 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.472e-05/0.2956, allocations: 232.9 kB / 0.5228 GB, free: 32.49 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.798e-06/0.2956, allocations: 17.92 kB / 0.5229 GB, free: 32.48 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.254e-05/0.2956, allocations: 6.969 kB / 0.5229 GB, free: 32.47 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.431e-05/0.2957, allocations: 328.3 kB / 0.5232 GB, free: 32.15 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000113/0.2958, allocations: 65.62 kB / 0.5232 GB, free: 32.13 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001202/0.296, allocations: 91.58 kB / 0.5233 GB, free: 32.08 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001674/0.2961, allocations: 131.1 kB / 0.5235 GB, free: 32.01 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.694e-06/0.2961, allocations: 0 / 0.5235 GB, free: 32.01 MB / 378.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003225/0.2965, allocations: 232.7 kB / 0.5237 GB, free: 31.89 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.315e-05/0.2965, allocations: 9.594 kB / 0.5237 GB, free: 31.89 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.541e-06/0.2965, allocations: 2.25 kB / 0.5237 GB, free: 31.89 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.238e-05/0.2965, allocations: 0 / 0.5237 GB, free: 31.89 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002488/0.2968, allocations: 55.47 kB / 0.5237 GB, free: 31.89 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.153e-06/0.2968, allocations: 7.156 kB / 0.5237 GB, free: 31.88 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002129/0.297, allocations: 44.09 kB / 0.5238 GB, free: 31.86 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.47e-05/0.297, allocations: 5.031 kB / 0.5238 GB, free: 31.86 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 7.991e-05/0.2971, allocations: 132.8 kB / 0.5239 GB, free: 31.73 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.69e-05/0.2972, allocations: 23.44 kB / 0.5239 GB, free: 31.71 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.397e-05/0.2972, allocations: 23.98 kB / 0.524 GB, free: 31.7 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/0.2972, allocations: 0 / 0.524 GB, free: 31.7 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.017e-06/0.2972, allocations: 0 / 0.524 GB, free: 31.7 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.2972, allocations: 7.281 kB / 0.524 GB, free: 31.7 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004173/0.2976, allocations: 0.5104 MB / 0.5245 GB, free: 31.25 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.003e-06/0.2977, allocations: 2.875 kB / 0.5245 GB, free: 31.25 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.471e-05/0.2977, allocations: 2.938 kB / 0.5245 GB, free: 31.25 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.2977, allocations: 0 / 0.5245 GB, free: 31.25 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.682e-06/0.2977, allocations: 0 / 0.5245 GB, free: 31.25 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.645e-06/0.2977, allocations: 3.938 kB / 0.5245 GB, free: 31.24 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.41e-07/0.2977, allocations: 3 kB / 0.5245 GB, free: 31.24 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.909e-05/0.2978, allocations: 103.1 kB / 0.5246 GB, free: 31.14 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.045e-05/0.2979, allocations: 109.8 kB / 0.5247 GB, free: 31.03 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.808e-05/0.2979, allocations: 0 / 0.5247 GB, free: 31.03 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.76e-05/0.298, allocations: 6.109 kB / 0.5247 GB, free: 31.03 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.281e-05/0.298, allocations: 0 / 0.5247 GB, free: 31.03 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.198e-06/0.298, allocations: 6.875 kB / 0.5247 GB, free: 31.02 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001844/0.2982, allocations: 225.8 kB / 0.5249 GB, free: 30.89 MB / 378.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2982, allocations: 3.938 kB / 0.5249 GB, free: 30.89 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000234/0.2985, allocations: 63.25 kB / 0.525 GB, free: 30.88 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 6.801e-05/0.2985, allocations: 90.84 kB / 0.5251 GB, free: 30.79 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002105/0.2988, allocations: 120.3 kB / 0.5252 GB, free: 30.75 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.2988, allocations: 2.719 kB / 0.5252 GB, free: 30.75 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 1.979e-05/0.2988, allocations: 13.72 kB / 0.5252 GB, free: 30.74 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002578/0.2991, allocations: 23.5 kB / 0.5252 GB, free: 30.72 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000553/0.2996, allocations: 483 kB / 0.5257 GB, free: 30.37 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001654/0.2998, allocations: 0.7466 MB / 0.5264 GB, free: 29.67 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.887e-05/0.2999, allocations: 18.66 kB / 0.5264 GB, free: 29.66 MB / 378.7 MB Notification: Performance of SimCode: time 4.01e-07/0.2999, allocations: 0 / 0.5264 GB, free: 29.66 MB / 378.7 MB Notification: Performance of Templates: time 0.003487/0.3034, allocations: 2.649 MB / 0.529 GB, free: 29.41 MB / 378.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.makefile (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 & ./ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage_res.mat","/var/lib/jenkins/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