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.001264/0.001264, allocations: 107.2 kB / 18.34 MB, free: 4.832 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.001138/0.001139, allocations: 192.1 kB / 19.28 MB, free: 3.898 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.302/1.302, allocations: 205.1 MB / 225.2 MB, free: 12.26 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.001214/0.001214, allocations: 47.92 kB / 282.1 MB, free: 2.438 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09209/0.09331, allocations: 46.62 MB / 328.7 MB, free: 3.738 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage): time 0.004418/0.09777, allocations: 2.711 MB / 331.4 MB, free: 1.004 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00196/0.09976, allocations: 1.196 MB / 332.6 MB, free: 15.8 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001395/0.09995, allocations: 8 kB / 332.6 MB, free: 15.79 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001509/0.1015, allocations: 0.6184 MB / 333.3 MB, free: 15.17 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003137/0.1018, allocations: 127.1 kB / 333.4 MB, free: 15.04 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001302/0.1031, allocations: 0.6848 MB / 334.1 MB, free: 14.36 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003945/0.1035, allocations: 290.6 kB / 334.4 MB, free: 14.07 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004586/0.104, allocations: 274.7 kB / 334.6 MB, free: 13.81 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001876/0.1042, allocations: 123.6 kB / 334.7 MB, free: 13.69 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002429/0.1044, allocations: 175.3 kB / 334.9 MB, free: 13.52 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.806e-05/0.1045, allocations: 28 kB / 334.9 MB, free: 13.49 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003128/0.1048, allocations: 175.9 kB / 335.1 MB, free: 13.32 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.064e-05/0.1049, allocations: 55.83 kB / 335.2 MB, free: 13.26 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001317/0.105, allocations: 159.1 kB / 335.3 MB, free: 13.11 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005177/0.1055, allocations: 494.5 kB / 335.8 MB, free: 12.62 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.502e-06/0.1055, allocations: 3.984 kB / 335.8 MB, free: 12.62 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.1055, allocations: 0 / 335.8 MB, free: 12.62 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.843e-06/0.1056, allocations: 0 / 335.8 MB, free: 12.62 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.001622/0.1072, allocations: 0.7177 MB / 336.5 MB, free: 11.85 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.296e-05/0.1072, allocations: 8.031 kB / 336.5 MB, free: 11.84 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007903/0.108, allocations: 112.6 kB / 336.6 MB, free: 11.73 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003771/0.1084, allocations: 268.4 kB / 336.9 MB, free: 11.43 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.128e-05/0.1085, allocations: 29.03 kB / 336.9 MB, free: 11.4 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.623e-05/0.1085, allocations: 32.36 kB / 337 MB, free: 11.37 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005094/0.109, allocations: 344.9 kB / 337.3 MB, free: 11.02 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.719e-05/0.1091, allocations: 0 / 337.3 MB, free: 11.02 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.085e-05/0.1091, allocations: 12 kB / 337.3 MB, free: 11.01 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.648e-06/0.1091, allocations: 8 kB / 337.3 MB, free: 11 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003955/0.1095, allocations: 238.5 kB / 337.6 MB, free: 10.77 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001853/0.1114, allocations: 1.443 MB / 339 MB, free: 9.18 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006624/0.112, allocations: 0.6926 MB / 339.7 MB, free: 8.367 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001563/0.1122, allocations: 112.8 kB / 339.8 MB, free: 8.254 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001102/0.1123, allocations: 88.98 kB / 339.9 MB, free: 8.148 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.365e-05/0.1124, allocations: 34.56 kB / 339.9 MB, free: 8.105 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 1.483e-06/0.1124, allocations: 4 kB / 339.9 MB, free: 8.102 MB / 286.1 MB Notification: Performance of matching and sorting (n=24): time 0.001229/0.1136, allocations: 487.4 kB / 340.4 MB, free: 7.598 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.899e-05/0.1137, allocations: 63.34 kB / 340.5 MB, free: 7.523 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001683/0.1138, allocations: 175.3 kB / 340.6 MB, free: 7.34 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.263e-05/0.1139, allocations: 29.7 kB / 340.7 MB, free: 7.305 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001114/0.114, allocations: 175.9 kB / 340.8 MB, free: 7.125 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.021e-05/0.114, allocations: 82.83 kB / 340.9 MB, free: 7.043 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.659e-05/0.1141, allocations: 57.89 kB / 341 MB, free: 6.98 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001149/0.1143, allocations: 326.8 kB / 341.3 MB, free: 6.652 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001233/0.1144, allocations: 68.53 kB / 341.4 MB, free: 6.586 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001762/0.1146, allocations: 132.2 kB / 341.5 MB, free: 6.434 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002757/0.1149, allocations: 216 kB / 341.7 MB, free: 6.199 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.1149, allocations: 0 / 341.7 MB, free: 6.199 MB / 286.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005429/0.1154, allocations: 332.7 kB / 342 MB, free: 5.867 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.64e-05/0.1154, allocations: 4 kB / 342 MB, free: 5.863 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.775e-06/0.1154, allocations: 7.984 kB / 342 MB, free: 5.855 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003159/0.1158, allocations: 72.75 kB / 342.1 MB, free: 5.781 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001531/0.1159, allocations: 43.92 kB / 342.2 MB, free: 5.738 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001964/0.1179, allocations: 2.025 MB / 344.2 MB, free: 3.574 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001384/0.1181, allocations: 31.72 kB / 344.2 MB, free: 3.543 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.852e-05/0.1181, allocations: 8 kB / 344.2 MB, free: 3.535 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.0001492/0.1182, allocations: 149.8 kB / 344.4 MB, free: 3.379 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.426e-05/0.1183, allocations: 19.75 kB / 344.4 MB, free: 3.359 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005504/0.1188, allocations: 284.9 kB / 344.7 MB, free: 3.078 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.588e-06/0.1189, allocations: 4 kB / 344.7 MB, free: 3.074 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.484e-06/0.1189, allocations: 0 / 344.7 MB, free: 3.074 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.531e-06/0.1189, allocations: 4 kB / 344.7 MB, free: 3.07 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009181/0.1198, allocations: 0.6982 MB / 345.4 MB, free: 2.309 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.1198, allocations: 0 / 345.4 MB, free: 2.309 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001162/0.1199, allocations: 27.98 kB / 345.4 MB, free: 2.281 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002241/0.1202, allocations: 80.95 kB / 345.5 MB, free: 2.199 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.548e-05/0.1202, allocations: 7.938 kB / 345.5 MB, free: 2.191 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001732/0.1219, allocations: 2.033 MB / 347.5 MB, free: 16 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.1219, allocations: 0 / 347.5 MB, free: 16 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006524/0.1226, allocations: 444.5 kB / 347.9 MB, free: 15.56 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.671e-05/0.1227, allocations: 108.8 kB / 348.1 MB, free: 15.44 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.52e-05/0.1227, allocations: 12.12 kB / 348.1 MB, free: 15.43 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001158/0.1229, allocations: 4 kB / 348.1 MB, free: 15.42 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.277e-05/0.1229, allocations: 23.91 kB / 348.1 MB, free: 15.4 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.283e-05/0.1229, allocations: 8 kB / 348.1 MB, free: 15.39 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.232e-05/0.123, allocations: 127.5 kB / 348.2 MB, free: 15.27 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.123, allocations: 0 / 348.2 MB, free: 15.27 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000479/0.1235, allocations: 91.75 kB / 348.3 MB, free: 15.18 MB / 302.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.0002208/0.1237, allocations: 115.2 kB / 348.4 MB, free: 15.05 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006049/0.1244, allocations: 354.3 kB / 348.8 MB, free: 14.7 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.1244, allocations: 0.7188 kB / 348.8 MB, free: 14.7 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003103/0.1247, allocations: 246.5 kB / 349 MB, free: 14.44 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003115/0.125, allocations: 19.92 kB / 349 MB, free: 14.42 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009855/0.126, allocations: 0.5667 MB / 349.6 MB, free: 13.82 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003262/0.1264, allocations: 0.756 MB / 350.4 MB, free: 13.04 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001006/0.1265, allocations: 25.94 kB / 350.4 MB, free: 13.02 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.806e-05/0.1265, allocations: 19.44 kB / 350.4 MB, free: 13 MB / 302.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1265, allocations: 0 / 350.4 MB, free: 13 MB / 302.1 MB Notification: Performance of Templates: time 0.005983/0.1325, allocations: 2.516 MB / 352.9 MB, free: 10.48 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/Leakage/GeneralLeakage/GeneralLeakage.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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