Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|leakageWithCoefficient.port_p.reference.gamma",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage") translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|leakageWithCoefficient.port_p.reference.gamma",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001208/0.001208, allocations: 114.6 kB / 17.28 MB, free: 6.219 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.001236/0.001236, allocations: 189.3 kB / 18.2 MB, free: 5.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.504/1.504, allocations: 205.1 MB / 224.1 MB, free: 12.36 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001351/0.001351, allocations: 55.92 kB / 280.2 MB, free: 3.48 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08057/0.08193, allocations: 46.63 MB / 326.8 MB, free: 4.777 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage): time 0.003992/0.08595, allocations: 2.738 MB / 329.5 MB, free: 2.016 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001867/0.08785, allocations: 1.177 MB / 330.7 MB, free: 0.832 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001791/0.08807, allocations: 8 kB / 330.7 MB, free: 0.8242 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001473/0.08955, allocations: 0.576 MB / 331.3 MB, free: 252 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003438/0.08991, allocations: 111.3 kB / 331.4 MB, free: 140 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001232/0.09115, allocations: 0.6461 MB / 332.1 MB, free: 15.49 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003888/0.09155, allocations: 294.7 kB / 332.3 MB, free: 15.2 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004793/0.09204, allocations: 302.7 kB / 332.6 MB, free: 14.91 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001884/0.09224, allocations: 127.6 kB / 332.8 MB, free: 14.78 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002018/0.09245, allocations: 167.3 kB / 332.9 MB, free: 14.62 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.17e-05/0.0925, allocations: 24 kB / 332.9 MB, free: 14.59 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003414/0.09285, allocations: 179.8 kB / 333.1 MB, free: 14.42 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.595e-05/0.0929, allocations: 55.84 kB / 333.2 MB, free: 14.36 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001274/0.09304, allocations: 151.2 kB / 333.3 MB, free: 14.21 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005342/0.09358, allocations: 498.7 kB / 333.8 MB, free: 13.73 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.09359, allocations: 0 / 333.8 MB, free: 13.73 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.694e-06/0.0936, allocations: 4 kB / 333.8 MB, free: 13.72 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.295e-05/0.09362, allocations: 0 / 333.8 MB, free: 13.72 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.00155/0.09517, allocations: 0.7216 MB / 334.5 MB, free: 12.95 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.384e-05/0.09522, allocations: 8.031 kB / 334.5 MB, free: 12.94 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008048/0.09603, allocations: 120.5 kB / 334.7 MB, free: 12.82 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003012/0.09634, allocations: 256.4 kB / 334.9 MB, free: 12.54 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.721e-05/0.09637, allocations: 29.03 kB / 334.9 MB, free: 12.51 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.408e-05/0.09643, allocations: 32.36 kB / 335 MB, free: 12.48 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005426/0.09698, allocations: 337 kB / 335.3 MB, free: 12.14 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.734e-05/0.09701, allocations: 0 / 335.3 MB, free: 12.14 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.995e-05/0.09705, allocations: 12 kB / 335.3 MB, free: 12.12 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.277e-06/0.09707, allocations: 12 kB / 335.3 MB, free: 12.11 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003809/0.09745, allocations: 242.5 kB / 335.6 MB, free: 11.88 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001909/0.09937, allocations: 1.447 MB / 337 MB, free: 10.29 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006264/0.1, allocations: 0.6966 MB / 337.7 MB, free: 9.469 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001504/0.1002, allocations: 112.7 kB / 337.8 MB, free: 9.355 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.769e-05/0.1003, allocations: 96.97 kB / 337.9 MB, free: 9.242 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.805e-05/0.1003, allocations: 30.56 kB / 337.9 MB, free: 9.203 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 1.293e-06/0.1003, allocations: 0 / 337.9 MB, free: 9.203 MB / 286.1 MB Notification: Performance of matching and sorting (n=24): time 0.001173/0.1015, allocations: 495.4 kB / 338.4 MB, free: 8.691 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.307e-05/0.1015, allocations: 59.41 kB / 338.5 MB, free: 8.621 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001514/0.1017, allocations: 175.3 kB / 338.7 MB, free: 8.438 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.984e-05/0.1017, allocations: 29.7 kB / 338.7 MB, free: 8.402 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001008/0.1018, allocations: 171.9 kB / 338.9 MB, free: 8.227 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.562e-05/0.1019, allocations: 82.84 kB / 338.9 MB, free: 8.145 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.298e-05/0.102, allocations: 61.89 kB / 339 MB, free: 8.078 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001343/0.1021, allocations: 330.8 kB / 339.3 MB, free: 7.746 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001103/0.1022, allocations: 60.55 kB / 339.4 MB, free: 7.688 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001496/0.1024, allocations: 132.2 kB / 339.5 MB, free: 7.535 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002782/0.1027, allocations: 220.9 kB / 339.7 MB, free: 7.297 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.1027, allocations: 0 / 339.7 MB, free: 7.297 MB / 286.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005421/0.1032, allocations: 335.7 kB / 340 MB, free: 6.961 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.77e-05/0.1033, allocations: 4 kB / 340.1 MB, free: 6.957 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.1033, allocations: 0 / 340.1 MB, free: 6.957 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003084/0.1036, allocations: 76.81 kB / 340.1 MB, free: 6.879 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001489/0.1038, allocations: 43.95 kB / 340.2 MB, free: 6.836 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001916/0.1057, allocations: 2.041 MB / 342.2 MB, free: 4.656 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001305/0.1058, allocations: 27.69 kB / 342.2 MB, free: 4.629 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.927e-05/0.1059, allocations: 12 kB / 342.3 MB, free: 4.617 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (25): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001347/0.106, allocations: 145.8 kB / 342.4 MB, free: 4.465 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.296e-05/0.106, allocations: 19.75 kB / 342.4 MB, free: 4.445 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005117/0.1066, allocations: 284.8 kB / 342.7 MB, free: 4.164 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-06/0.1066, allocations: 11.98 kB / 342.7 MB, free: 4.152 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.028e-06/0.1066, allocations: 4 kB / 342.7 MB, free: 4.148 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.02e-06/0.1066, allocations: 3.984 kB / 342.7 MB, free: 4.145 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009568/0.1076, allocations: 0.694 MB / 343.4 MB, free: 3.391 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.1076, allocations: 0 / 343.4 MB, free: 3.391 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001177/0.1077, allocations: 20 kB / 343.4 MB, free: 3.371 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002282/0.1079, allocations: 88.67 kB / 343.5 MB, free: 3.281 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.675e-05/0.108, allocations: 4 kB / 343.5 MB, free: 3.277 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001812/0.1098, allocations: 2.03 MB / 345.5 MB, free: 1.105 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.327e-06/0.1098, allocations: 4.031 kB / 345.5 MB, free: 1.102 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006098/0.1104, allocations: 443.9 kB / 346 MB, free: 0.6484 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.94e-05/0.1105, allocations: 108.9 kB / 346.1 MB, free: 0.5234 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.558e-05/0.1106, allocations: 4 kB / 346.1 MB, free: 0.5195 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001138/0.1107, allocations: 4 kB / 346.1 MB, free: 0.5156 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.499e-05/0.1107, allocations: 15.97 kB / 346.1 MB, free: 0.5 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.426e-05/0.1108, allocations: 12 kB / 346.1 MB, free: 500 kB / 286.1 MB Notification: Performance of sorting global known variables: time 9.51e-05/0.1109, allocations: 127.2 kB / 346.2 MB, free: 372 kB / 286.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1109, allocations: 0 / 346.2 MB, free: 372 kB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005007/0.1114, allocations: 99.62 kB / 346.3 MB, free: 272 kB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (15): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002256/0.1116, allocations: 123.3 kB / 346.5 MB, free: 140 kB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0006987/0.1123, allocations: 362.5 kB / 346.8 MB, free: 15.77 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.1123, allocations: 0 / 346.8 MB, free: 15.77 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003436/0.1127, allocations: 242.5 kB / 347.1 MB, free: 15.52 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003722/0.1131, allocations: 16 kB / 347.1 MB, free: 15.5 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001165/0.1142, allocations: 0.693 MB / 347.8 MB, free: 14.78 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003524/0.1146, allocations: 0.7521 MB / 348.5 MB, free: 14 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001171/0.1147, allocations: 25.94 kB / 348.5 MB, free: 13.98 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.51e-05/0.1148, allocations: 15.44 kB / 348.6 MB, free: 13.96 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1148, allocations: 0 / 348.6 MB, free: 13.96 MB / 302.1 MB Notification: Performance of Templates: time 0.006444/0.1212, allocations: 2.541 MB / 351.1 MB, free: 11.42 MB / 302.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.sim & ./Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/Leakage/GeneralLeakage/GeneralLeakage.csv","../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches