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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001594/0.001594, allocations: 117.8 kB / 18.49 MB, free: 4.566 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001809/0.001809, allocations: 190.7 kB / 21.43 MB, free: 1.641 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.43/1.43, allocations: 225.6 MB / 249.8 MB, free: 3.633 MB / 190.1 MB " [Timeout remaining time 178] 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: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001607/0.001607, allocations: 43.94 kB / 366.3 MB, free: 0.9414 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09395/0.09555, allocations: 52.15 MB / 418.5 MB, free: 12.7 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage): time 0.003973/0.09953, allocations: 2.851 MB / 421.3 MB, free: 9.832 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001834/0.1014, allocations: 1.168 MB / 422.5 MB, free: 8.66 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001231/0.1015, allocations: 7.938 kB / 422.5 MB, free: 8.652 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001503/0.103, allocations: 0.6145 MB / 423.1 MB, free: 8.035 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003048/0.1033, allocations: 131.1 kB / 423.3 MB, free: 7.906 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001323/0.1046, allocations: 0.6877 MB / 423.9 MB, free: 7.219 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003856/0.105, allocations: 302.5 kB / 424.2 MB, free: 6.922 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003738/0.1054, allocations: 210.8 kB / 424.4 MB, free: 6.711 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001742/0.1055, allocations: 135.5 kB / 424.6 MB, free: 6.578 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002056/0.1058, allocations: 159.4 kB / 424.7 MB, free: 6.422 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.614e-05/0.1058, allocations: 24 kB / 424.8 MB, free: 6.398 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003188/0.1061, allocations: 187.8 kB / 424.9 MB, free: 6.215 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.939e-05/0.1062, allocations: 63.72 kB / 425 MB, free: 6.152 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001285/0.1063, allocations: 143.3 kB / 425.1 MB, free: 6.012 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005805/0.1069, allocations: 0.4904 MB / 425.6 MB, free: 5.52 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.1069, allocations: 3.938 kB / 425.6 MB, free: 5.516 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1069, allocations: 3.938 kB / 425.6 MB, free: 5.512 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.751e-06/0.1069, allocations: 0 / 425.6 MB, free: 5.512 MB / 350.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.001621/0.1085, allocations: 0.7365 MB / 426.4 MB, free: 4.727 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.699e-05/0.1085, allocations: 8.031 kB / 426.4 MB, free: 4.719 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.878e-05/0.1086, allocations: 8.844 kB / 426.4 MB, free: 4.711 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.94e-05/0.1086, allocations: 74.72 kB / 426.5 MB, free: 4.629 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007848/0.1094, allocations: 112.7 kB / 426.6 MB, free: 4.52 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003767/0.1098, allocations: 264.6 kB / 426.8 MB, free: 4.223 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.7e-05/0.1098, allocations: 29.02 kB / 426.9 MB, free: 4.191 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.947e-05/0.1099, allocations: 31.94 kB / 426.9 MB, free: 4.16 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005165/0.1104, allocations: 329.1 kB / 427.2 MB, free: 3.828 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.665e-05/0.1104, allocations: 7.953 kB / 427.2 MB, free: 3.82 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.809e-05/0.1104, allocations: 8 kB / 427.2 MB, free: 3.812 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.157e-06/0.1105, allocations: 8 kB / 427.2 MB, free: 3.805 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004012/0.1109, allocations: 246.5 kB / 427.5 MB, free: 3.562 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001921/0.1128, allocations: 1.428 MB / 428.9 MB, free: 2 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000684/0.1135, allocations: 0.6886 MB / 429.6 MB, free: 1.191 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001509/0.1136, allocations: 96.75 kB / 429.7 MB, free: 1.094 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.806e-05/0.1137, allocations: 81.11 kB / 429.8 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.945e-05/0.1137, allocations: 42.55 kB / 429.8 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.463e-06/0.1137, allocations: 0 / 429.8 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.001198/0.1149, allocations: 488.4 kB / 430.3 MB, free: 452 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.594e-05/0.115, allocations: 55.41 kB / 430.3 MB, free: 384 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001709/0.1151, allocations: 179.9 kB / 430.5 MB, free: 188 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.479e-05/0.1152, allocations: 33.7 kB / 430.6 MB, free: 148 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001207/0.1153, allocations: 176.6 kB / 430.7 MB, free: 15.96 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.874e-05/0.1154, allocations: 87.27 kB / 430.8 MB, free: 15.88 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.932e-05/0.1154, allocations: 49.94 kB / 430.9 MB, free: 15.82 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001403/0.1156, allocations: 330.8 kB / 431.2 MB, free: 15.49 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001166/0.1157, allocations: 68.55 kB / 431.2 MB, free: 15.43 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001682/0.1159, allocations: 140 kB / 431.4 MB, free: 15.27 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002989/0.1162, allocations: 216.2 kB / 431.6 MB, free: 15.03 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.729e-06/0.1162, allocations: 7.75 kB / 431.6 MB, free: 15.03 MB / 366.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005546/0.1167, allocations: 332.8 kB / 431.9 MB, free: 14.7 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.409e-05/0.1167, allocations: 4 kB / 431.9 MB, free: 14.69 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.596e-06/0.1167, allocations: 7.938 kB / 431.9 MB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003018/0.117, allocations: 72.75 kB / 432 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001492/0.1172, allocations: 43.97 kB / 432.1 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002064/0.1193, allocations: 2.029 MB / 434.1 MB, free: 12.39 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001316/0.1194, allocations: 31.81 kB / 434.1 MB, free: 12.36 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.718e-05/0.1194, allocations: 8 kB / 434.1 MB, free: 12.36 MB / 366.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.000144/0.1196, allocations: 141.8 kB / 434.3 MB, free: 12.21 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.535e-05/0.1196, allocations: 19.84 kB / 434.3 MB, free: 12.19 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005579/0.1202, allocations: 291.3 kB / 434.6 MB, free: 11.89 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.831e-06/0.1202, allocations: 4 kB / 434.6 MB, free: 11.89 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.524e-06/0.1202, allocations: 0 / 434.6 MB, free: 11.89 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.771e-06/0.1202, allocations: 3.984 kB / 434.6 MB, free: 11.89 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009665/0.1211, allocations: 0.6868 MB / 435.3 MB, free: 11.14 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.1211, allocations: 0 / 435.3 MB, free: 11.14 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001141/0.1213, allocations: 23.94 kB / 435.3 MB, free: 11.11 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002315/0.1215, allocations: 84.67 kB / 435.4 MB, free: 11.03 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.499e-05/0.1215, allocations: 4 kB / 435.4 MB, free: 11.02 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00194/0.1234, allocations: 2.022 MB / 437.4 MB, free: 8.859 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.1234, allocations: 0 / 437.4 MB, free: 8.859 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006584/0.1241, allocations: 453.1 kB / 437.8 MB, free: 8.398 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001015/0.1242, allocations: 117.1 kB / 437.9 MB, free: 8.266 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.98e-05/0.1242, allocations: 0 / 437.9 MB, free: 8.266 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001133/0.1243, allocations: 8 kB / 438 MB, free: 8.258 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.913e-05/0.1244, allocations: 19.97 kB / 438 MB, free: 8.238 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.116e-05/0.1244, allocations: 4 kB / 438 MB, free: 8.234 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000107/0.1245, allocations: 131.2 kB / 438.1 MB, free: 8.105 MB / 366.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.1245, allocations: 0 / 438.1 MB, free: 8.105 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00047/0.125, allocations: 96.06 kB / 438.2 MB, free: 8.012 MB / 366.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.001053/0.126, allocations: 1.021 MB / 439.2 MB, free: 6.965 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006123/0.1266, allocations: 338.4 kB / 439.6 MB, free: 6.621 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.1266, allocations: 0 / 439.6 MB, free: 6.621 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003289/0.127, allocations: 238.9 kB / 439.8 MB, free: 6.375 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000316/0.1273, allocations: 26.03 kB / 439.8 MB, free: 6.352 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003211/0.1305, allocations: 2.506 MB / 442.3 MB, free: 3.727 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004063/0.1309, allocations: 0.756 MB / 443.1 MB, free: 2.941 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.552e-05/0.131, allocations: 21.94 kB / 443.1 MB, free: 2.922 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001114/0.1311, allocations: 75.41 kB / 443.2 MB, free: 2.848 MB / 366.1 MB Notification: Performance of SimCode: time 3.9e-07/0.1311, allocations: 0 / 443.2 MB, free: 2.848 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2477/0.3788, allocations: 5.148 MB / 448.3 MB, free: 30.04 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.02/10.39, allocations: 13.56 kB / 448.3 MB, free: 30.03 MB / 366.1 MB " [Timeout remaining time 649] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/Leakage/GeneralLeakage/GeneralLeakage.csv","/var/lib/jenkins1/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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 12.823744977999013]