Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_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.0009878/0.0009878, allocations: 107.9 kB / 16.92 MB, free: 6.332 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.0009627/0.0009627, allocations: 191.4 kB / 17.85 MB, free: 5.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.281/1.281, allocations: 222.9 MB / 241.5 MB, free: 15.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001024/0.001024, allocations: 51.33 kB / 300.6 MB, free: 5.895 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08697/0.08801, allocations: 49.44 MB / 350.1 MB, free: 4.445 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage): time 0.003837/0.09189, allocations: 2.835 MB / 352.9 MB, free: 1.586 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001597/0.0935, allocations: 1.153 MB / 354 MB, free: 440 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000134/0.09365, allocations: 11.94 kB / 354.1 MB, free: 428 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001357/0.09502, allocations: 0.6204 MB / 354.7 MB, free: 15.8 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000259/0.09529, allocations: 131.1 kB / 354.8 MB, free: 15.67 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001171/0.09647, allocations: 0.6689 MB / 355.5 MB, free: 15 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003372/0.09682, allocations: 302.6 kB / 355.8 MB, free: 14.7 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004137/0.09724, allocations: 271 kB / 356 MB, free: 14.44 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001606/0.09741, allocations: 131.5 kB / 356.2 MB, free: 14.31 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002028/0.09762, allocations: 171.4 kB / 356.3 MB, free: 14.14 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.612e-05/0.09767, allocations: 24 kB / 356.4 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002974/0.09797, allocations: 179.9 kB / 356.5 MB, free: 13.94 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.744e-05/0.09803, allocations: 63.7 kB / 356.6 MB, free: 13.88 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001235/0.09816, allocations: 147.3 kB / 356.7 MB, free: 13.73 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004957/0.09866, allocations: 0.4907 MB / 357.2 MB, free: 13.24 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.09867, allocations: 0 / 357.2 MB, free: 13.24 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.09868, allocations: 0 / 357.2 MB, free: 13.24 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.785e-06/0.09869, allocations: 0 / 357.2 MB, free: 13.24 MB / 302.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.001515/0.1002, allocations: 0.7216 MB / 357.9 MB, free: 12.47 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.233e-05/0.1003, allocations: 8.031 kB / 358 MB, free: 12.46 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007751/0.101, allocations: 116.5 kB / 358.1 MB, free: 12.35 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002898/0.1013, allocations: 260.5 kB / 358.3 MB, free: 12.05 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.174e-05/0.1014, allocations: 32.97 kB / 358.4 MB, free: 12.02 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.032e-05/0.1014, allocations: 28.38 kB / 358.4 MB, free: 12 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005122/0.1019, allocations: 341 kB / 358.7 MB, free: 11.65 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.966e-05/0.102, allocations: 0 / 358.7 MB, free: 11.65 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.936e-05/0.102, allocations: 12 kB / 358.7 MB, free: 11.64 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.769e-06/0.102, allocations: 8 kB / 358.7 MB, free: 11.63 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003891/0.1024, allocations: 246.5 kB / 359 MB, free: 11.39 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001783/0.1042, allocations: 1.439 MB / 360.4 MB, free: 9.812 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006114/0.1048, allocations: 0.7073 MB / 361.1 MB, free: 8.988 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001436/0.105, allocations: 104.8 kB / 361.2 MB, free: 8.883 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.231e-05/0.1051, allocations: 93.03 kB / 361.3 MB, free: 8.773 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.93e-05/0.1051, allocations: 30.56 kB / 361.3 MB, free: 8.734 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.483e-06/0.1051, allocations: 0 / 361.3 MB, free: 8.734 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.001162/0.1063, allocations: 0.4892 MB / 361.8 MB, free: 8.219 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.939e-05/0.1063, allocations: 55.41 kB / 361.9 MB, free: 8.152 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001726/0.1065, allocations: 177.1 kB / 362.1 MB, free: 7.965 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.842e-05/0.1066, allocations: 29.7 kB / 362.1 MB, free: 7.93 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001093/0.1067, allocations: 168 kB / 362.3 MB, free: 7.758 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.728e-05/0.1068, allocations: 90.73 kB / 362.3 MB, free: 7.668 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.563e-05/0.1068, allocations: 57.98 kB / 362.4 MB, free: 7.605 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001196/0.107, allocations: 326.8 kB / 362.7 MB, free: 7.277 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001142/0.1071, allocations: 64.53 kB / 362.8 MB, free: 7.215 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001464/0.1072, allocations: 129 kB / 362.9 MB, free: 7.066 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003014/0.1076, allocations: 228.9 kB / 363.1 MB, free: 6.82 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.1076, allocations: 0 / 363.1 MB, free: 6.82 MB / 302.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.000526/0.1081, allocations: 331.5 kB / 363.5 MB, free: 6.488 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.529e-05/0.1081, allocations: 11.92 kB / 363.5 MB, free: 6.477 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.1081, allocations: 0 / 363.5 MB, free: 6.477 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002939/0.1084, allocations: 77.03 kB / 363.5 MB, free: 6.398 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001419/0.1086, allocations: 43.92 kB / 363.6 MB, free: 6.355 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001811/0.1104, allocations: 2.029 MB / 365.6 MB, free: 4.188 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001252/0.1105, allocations: 31.69 kB / 365.6 MB, free: 4.156 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.643e-05/0.1106, allocations: 8 kB / 365.7 MB, free: 4.148 MB / 302.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.0001288/0.1107, allocations: 149.7 kB / 365.8 MB, free: 3.992 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.168e-05/0.1107, allocations: 19.75 kB / 365.8 MB, free: 3.973 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005075/0.1113, allocations: 291.7 kB / 366.1 MB, free: 3.688 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.379e-06/0.1113, allocations: 4 kB / 366.1 MB, free: 3.684 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.725e-06/0.1113, allocations: 0 / 366.1 MB, free: 3.684 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.489e-06/0.1113, allocations: 288 / 366.1 MB, free: 3.684 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008694/0.1122, allocations: 0.6977 MB / 366.8 MB, free: 2.926 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.1122, allocations: 0 / 366.8 MB, free: 2.926 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000109/0.1123, allocations: 31.92 kB / 366.8 MB, free: 2.895 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002158/0.1125, allocations: 76.73 kB / 366.9 MB, free: 2.816 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.633e-05/0.1125, allocations: 8 kB / 366.9 MB, free: 2.809 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001749/0.1143, allocations: 2.029 MB / 369 MB, free: 0.6367 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/0.1143, allocations: 4.031 kB / 369 MB, free: 0.6328 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005735/0.1149, allocations: 451.7 kB / 369.4 MB, free: 176 kB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.704e-05/0.115, allocations: 112.9 kB / 369.5 MB, free: 44 kB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.409e-05/0.115, allocations: 4 kB / 369.5 MB, free: 40 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001102/0.1151, allocations: 4 kB / 369.5 MB, free: 36 kB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.553e-05/0.1152, allocations: 23.97 kB / 369.5 MB, free: 12 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.838e-06/0.1152, allocations: 4 kB / 369.5 MB, free: 8 kB / 302.1 MB Notification: Performance of sorting global known variables: time 0.1668/0.282, allocations: 124 kB / 369.7 MB, free: 25.31 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.51e-07/0.2821, allocations: 3.844 kB / 369.7 MB, free: 25.31 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000734/0.2828, allocations: 93.34 kB / 369.8 MB, free: 25.31 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.0002334/0.2831, allocations: 116.2 kB / 369.9 MB, free: 25.22 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006533/0.2837, allocations: 364.5 kB / 370.2 MB, free: 25.1 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.2837, allocations: 0 / 370.2 MB, free: 25.1 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002698/0.284, allocations: 252.1 kB / 370.5 MB, free: 24.99 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000371/0.2844, allocations: 21.06 kB / 370.5 MB, free: 24.99 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009238/0.2853, allocations: 0.5691 MB / 371.1 MB, free: 24.75 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002125/0.2855, allocations: 0.7561 MB / 371.8 MB, free: 24.05 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001039/0.2857, allocations: 22.11 kB / 371.8 MB, free: 24.05 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.412e-05/0.2857, allocations: 15.78 kB / 371.9 MB, free: 24.04 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2857, allocations: 0 / 371.9 MB, free: 24.04 MB / 302.1 MB Notification: Performance of Templates: time 0.006068/0.2918, allocations: 2.614 MB / 374.5 MB, free: 23.89 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/Leakage/GeneralLeakage/GeneralLeakage.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches