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.0009447/0.0009448, allocations: 204 kB / 15.8 MB, free: 6.305 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.227/1.227, allocations: 226.6 MB / 243.1 MB, free: 14.11 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007197/0.0007199, allocations: 100.7 kB / 295.1 MB, free: 10.04 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1824/0.1824, allocations: 44.84 MB / 392 MB, free: 9.297 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003868/0.0003867, allocations: 8 kB / 464.7 MB, free: 49.76 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0994/0.09981, allocations: 62.96 MB / 0.5153 GB, free: 2.754 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage): time 0.002426/0.1023, allocations: 1.96 MB / 0.5173 GB, free: 0.7773 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001106/0.1034, allocations: 0.6276 MB / 0.5179 GB, free: 148 kB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001552/0.1036, allocations: 4 kB / 0.5179 GB, free: 144 kB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 7.151e-05/0.1037, allocations: 27.78 kB / 0.5179 GB, free: 116 kB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002066/0.1039, allocations: 59.52 kB / 0.518 GB, free: 56 kB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.174/0.2779, allocations: 61.33 kB / 0.518 GB, free: 9.832 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004933/0.2784, allocations: 313.6 kB / 0.5183 GB, free: 9.832 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002657/0.2787, allocations: 117.1 kB / 0.5184 GB, free: 9.816 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002504/0.279, allocations: 116 kB / 0.5185 GB, free: 9.801 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001883/0.2792, allocations: 123.8 kB / 0.5186 GB, free: 9.777 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 3.851e-05/0.2792, allocations: 24.59 kB / 0.5187 GB, free: 9.773 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.664e-05/0.2793, allocations: 19.17 kB / 0.5187 GB, free: 9.773 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 4.984e-05/0.2793, allocations: 50.14 kB / 0.5187 GB, free: 9.766 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 6.424e-05/0.2794, allocations: 77.11 kB / 0.5188 GB, free: 9.727 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003377/0.2798, allocations: 281.2 kB / 0.5191 GB, free: 9.711 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.2798, allocations: 0 / 0.5191 GB, free: 9.711 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2798, allocations: 1.062 kB / 0.5191 GB, free: 9.711 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.683e-06/0.2798, allocations: 0 / 0.5191 GB, free: 9.711 MB / 346.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.0007298/0.2805, allocations: 0.531 MB / 0.5196 GB, free: 9.285 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.682e-05/0.2806, allocations: 10.53 kB / 0.5196 GB, free: 9.285 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002724/0.2809, allocations: 45.11 kB / 0.5197 GB, free: 9.27 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001506/0.281, allocations: 211.3 kB / 0.5199 GB, free: 9.043 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.439e-05/0.2811, allocations: 30.98 kB / 0.5199 GB, free: 9.039 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.354e-05/0.2812, allocations: 28.06 kB / 0.5199 GB, free: 9.039 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004858/0.2817, allocations: 280.3 kB / 0.5202 GB, free: 9 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.13e-05/0.2817, allocations: 0 / 0.5202 GB, free: 9 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.843e-05/0.2817, allocations: 13.81 kB / 0.5202 GB, free: 9 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.05e-05/0.2817, allocations: 7.438 kB / 0.5202 GB, free: 9 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004383/0.2822, allocations: 216.6 kB / 0.5204 GB, free: 8.992 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00153/0.2837, allocations: 1.023 MB / 0.5214 GB, free: 8.578 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.029e-05/0.2838, allocations: 35.69 kB / 0.5214 GB, free: 8.551 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.772e-05/0.2838, allocations: 21.25 kB / 0.5215 GB, free: 8.543 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.079e-05/0.2839, allocations: 1.125 kB / 0.5215 GB, free: 8.543 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.322e-05/0.2839, allocations: 40.06 kB / 0.5215 GB, free: 8.5 MB / 346.7 MB Notification: Performance of pre-optimization done (n=2): time 1.062e-06/0.2839, allocations: 0 / 0.5215 GB, free: 8.5 MB / 346.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001745/0.2841, allocations: 76.94 kB / 0.5216 GB, free: 8.453 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.909e-05/0.2841, allocations: 53.61 kB / 0.5216 GB, free: 8.391 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003329/0.2844, allocations: 316.9 kB / 0.5219 GB, free: 8.273 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.536e-06/0.2844, allocations: 27.05 kB / 0.522 GB, free: 8.242 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.597e-05/0.2845, allocations: 237.1 kB / 0.5222 GB, free: 8.074 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.196e-05/0.2846, allocations: 12.02 kB / 0.5222 GB, free: 8.07 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.111e-05/0.2846, allocations: 4.375 kB / 0.5222 GB, free: 8.07 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.635e-05/0.2846, allocations: 344.5 kB / 0.5225 GB, free: 7.746 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001284/0.2848, allocations: 62.5 kB / 0.5226 GB, free: 7.746 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001413/0.2849, allocations: 97.64 kB / 0.5227 GB, free: 7.727 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000162/0.2851, allocations: 78.77 kB / 0.5227 GB, free: 7.723 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.2851, allocations: 1.062 kB / 0.5227 GB, free: 7.723 MB / 346.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003532/0.2855, allocations: 236 kB / 0.523 GB, free: 7.672 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.288e-05/0.2855, allocations: 5.094 kB / 0.523 GB, free: 7.672 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.119e-06/0.2855, allocations: 1.469 kB / 0.523 GB, free: 7.672 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.704e-05/0.2855, allocations: 6.266 kB / 0.523 GB, free: 7.668 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002885/0.2858, allocations: 58.7 kB / 0.523 GB, free: 7.664 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.973e-06/0.2858, allocations: 2.344 kB / 0.523 GB, free: 7.664 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002305/0.2861, allocations: 41.17 kB / 0.5231 GB, free: 7.641 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.582e-05/0.2861, allocations: 10.06 kB / 0.5231 GB, free: 7.641 MB / 346.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.369e-05/0.2862, allocations: 140.8 kB / 0.5232 GB, free: 7.516 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.872e-05/0.2862, allocations: 21.75 kB / 0.5232 GB, free: 7.504 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.672e-05/0.2863, allocations: 29.53 kB / 0.5233 GB, free: 7.496 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.375e-06/0.2863, allocations: 0.6562 kB / 0.5233 GB, free: 7.496 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.496e-06/0.2863, allocations: 0 / 0.5233 GB, free: 7.496 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.795e-06/0.2863, allocations: 1.812 kB / 0.5233 GB, free: 7.496 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000475/0.2868, allocations: 0.5066 MB / 0.5238 GB, free: 7.102 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.2868, allocations: 1.5 kB / 0.5238 GB, free: 7.102 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.839e-05/0.2868, allocations: 3.031 kB / 0.5238 GB, free: 7.102 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.2868, allocations: 1.188 kB / 0.5238 GB, free: 7.102 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.774e-06/0.2868, allocations: 1.812 kB / 0.5238 GB, free: 7.102 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.754e-06/0.2868, allocations: 0.75 kB / 0.5238 GB, free: 7.102 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.2868, allocations: 1.438 kB / 0.5238 GB, free: 7.102 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001006/0.2869, allocations: 104.7 kB / 0.5239 GB, free: 7.012 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.31e-05/0.287, allocations: 97.66 kB / 0.524 GB, free: 6.91 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.889e-05/0.287, allocations: 2.266 kB / 0.524 GB, free: 6.91 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00011/0.2872, allocations: 4.125 kB / 0.524 GB, free: 6.91 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.845e-05/0.2872, allocations: 5.953 kB / 0.524 GB, free: 6.906 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.885e-06/0.2872, allocations: 1.438 kB / 0.524 GB, free: 6.906 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002592/0.2875, allocations: 224.6 kB / 0.5242 GB, free: 6.828 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2875, allocations: 2.078 kB / 0.5242 GB, free: 6.828 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002389/0.2877, allocations: 75.8 kB / 0.5243 GB, free: 6.809 MB / 346.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 7.597e-05/0.2878, allocations: 92.02 kB / 0.5244 GB, free: 6.719 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002565/0.288, allocations: 114 kB / 0.5245 GB, free: 6.715 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.2881, allocations: 0 / 0.5245 GB, free: 6.715 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 2.265e-05/0.2881, allocations: 9.938 kB / 0.5245 GB, free: 6.715 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002382/0.2883, allocations: 24.61 kB / 0.5245 GB, free: 6.707 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006213/0.289, allocations: 487.2 kB / 0.525 GB, free: 6.367 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001805/0.2892, allocations: 0.7394 MB / 0.5257 GB, free: 5.672 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.754e-05/0.2892, allocations: 25.77 kB / 0.5257 GB, free: 5.66 MB / 346.7 MB Notification: Performance of SimCode: time 2.6e-07/0.2892, allocations: 0 / 0.5257 GB, free: 5.66 MB / 346.7 MB Notification: Performance of Templates: time 0.004377/0.2936, allocations: 2.675 MB / 0.5283 GB, free: 5.406 MB / 346.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