Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001568/0.001568, allocations: 113.6 kB / 21.19 MB, free: 0.7031 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001704/0.001704, allocations: 208.6 kB / 24.49 MB, free: 4.055 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.464/1.464, allocations: 207.6 MB / 235.3 MB, free: 10 MB / 190.1 MB " [Timeout remaining time 178] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.Motor,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_HeatTransfer_Examples_Motor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.Motor,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_HeatTransfer_Examples_Motor",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001768/0.001768, allocations: 56.44 kB / 347.2 MB, free: 10.05 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2713/0.2731, allocations: 49.16 MB / 396.3 MB, free: 9.207 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.003647/0.2767, allocations: 2.25 MB / 398.6 MB, free: 7.641 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001782/0.2785, allocations: 0.9847 MB / 399.6 MB, free: 6.961 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001461/0.2786, allocations: 7.656 kB / 399.6 MB, free: 6.957 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004599/0.2791, allocations: 93.62 kB / 399.7 MB, free: 6.926 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003563/0.2795, allocations: 122.6 kB / 399.8 MB, free: 6.855 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003908/0.2798, allocations: 129.7 kB / 399.9 MB, free: 6.785 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000388/0.2802, allocations: 291 kB / 400.2 MB, free: 6.645 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002008/0.2804, allocations: 70.52 kB / 400.3 MB, free: 6.605 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001972/0.2806, allocations: 111.3 kB / 400.4 MB, free: 6.562 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002192/0.2809, allocations: 130.2 kB / 400.5 MB, free: 6.508 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.077e-05/0.2809, allocations: 18 kB / 400.5 MB, free: 6.508 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001621/0.2811, allocations: 57.17 kB / 400.6 MB, free: 6.492 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.611e-05/0.2811, allocations: 54.78 kB / 400.6 MB, free: 6.461 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001249/0.2813, allocations: 112.3 kB / 400.7 MB, free: 6.395 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004478/0.2817, allocations: 289.8 kB / 401 MB, free: 6.285 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.2817, allocations: 5.25 kB / 401 MB, free: 6.281 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.2817, allocations: 0 / 401 MB, free: 6.281 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.596e-06/0.2817, allocations: 0 / 401 MB, free: 6.281 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 41 * Number of variables: 41 Notification: Performance of Generate backend data structure: time 0.0007799/0.2825, allocations: 498.1 kB / 401.5 MB, free: 5.875 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.209e-05/0.2826, allocations: 14.2 kB / 401.5 MB, free: 5.871 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.461e-05/0.2826, allocations: 48.62 kB / 401.6 MB, free: 5.824 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001375/0.2827, allocations: 37.03 kB / 401.6 MB, free: 5.805 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000287/0.283, allocations: 189.3 kB / 401.8 MB, free: 5.633 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.992e-05/0.283, allocations: 10.06 kB / 401.8 MB, free: 5.629 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.183e-05/0.2831, allocations: 23.88 kB / 401.8 MB, free: 5.617 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003252/0.2834, allocations: 168.7 kB / 402 MB, free: 5.531 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.525e-05/0.2834, allocations: 0.7031 kB / 402 MB, free: 5.531 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.895e-05/0.2834, allocations: 10.72 kB / 402 MB, free: 5.523 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.863e-06/0.2835, allocations: 3.438 kB / 402 MB, free: 5.523 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002436/0.2837, allocations: 115.4 kB / 402.1 MB, free: 5.488 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008173/0.2845, allocations: 0.5266 MB / 402.6 MB, free: 5.117 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003116/0.2848, allocations: 154.5 kB / 402.8 MB, free: 5.047 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000157/0.285, allocations: 81.16 kB / 402.9 MB, free: 5.012 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.568e-05/0.285, allocations: 6.875 kB / 402.9 MB, free: 5.008 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002528/0.2853, allocations: 113.1 kB / 403 MB, free: 4.938 MB / 318.1 MB Notification: Performance of pre-optimization done (n=20): time 1.573e-06/0.2853, allocations: 1.188 kB / 403 MB, free: 4.938 MB / 318.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005414/0.2858, allocations: 234.3 kB / 403.2 MB, free: 4.832 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.319e-05/0.2859, allocations: 53.62 kB / 403.3 MB, free: 4.77 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002518/0.2861, allocations: 246.8 kB / 403.5 MB, free: 4.629 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.065e-05/0.2861, allocations: 38.11 kB / 403.6 MB, free: 4.59 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.964e-05/0.2862, allocations: 145.9 kB / 403.7 MB, free: 4.457 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.871e-05/0.2863, allocations: 74.88 kB / 403.8 MB, free: 4.398 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.482e-05/0.2863, allocations: 40.31 kB / 403.8 MB, free: 4.371 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.675e-05/0.2864, allocations: 337.5 kB / 404.1 MB, free: 4.043 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001207/0.2865, allocations: 51.05 kB / 404.2 MB, free: 4.027 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001377/0.2867, allocations: 81.67 kB / 404.3 MB, free: 3.977 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002441/0.2869, allocations: 150.8 kB / 404.4 MB, free: 3.887 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.2869, allocations: 0 / 404.4 MB, free: 3.887 MB / 318.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003295/0.2872, allocations: 206.4 kB / 404.6 MB, free: 3.785 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.884e-05/0.2873, allocations: 5.375 kB / 404.6 MB, free: 3.785 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.502e-06/0.2873, allocations: 5.312 kB / 404.6 MB, free: 3.781 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.877e-05/0.2873, allocations: 6.906 kB / 404.6 MB, free: 3.777 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000224/0.2875, allocations: 46.2 kB / 404.7 MB, free: 3.773 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.304e-06/0.2875, allocations: 1.219 kB / 404.7 MB, free: 3.773 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.379e-05/0.2876, allocations: 22.02 kB / 404.7 MB, free: 3.758 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.536e-05/0.2876, allocations: 13.84 kB / 404.7 MB, free: 3.75 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.lossTable.nextTimeEvent,$whenCondition1,lossTable.nextTimeEventScaled,$PRE.lossTable.nextTimeEventScaled,lossTable.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001113/0.2877, allocations: 142.1 kB / 404.9 MB, free: 3.621 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.548e-05/0.2878, allocations: 17.91 kB / 404.9 MB, free: 3.613 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003839/0.2882, allocations: 215.9 kB / 405.1 MB, free: 3.504 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-06/0.2882, allocations: 5.281 kB / 405.1 MB, free: 3.5 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.511e-06/0.2882, allocations: 1.438 kB / 405.1 MB, free: 3.5 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/0.2882, allocations: 0 / 405.1 MB, free: 3.5 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002433/0.2884, allocations: 252.7 kB / 405.3 MB, free: 3.297 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.2884, allocations: 1.25 kB / 405.3 MB, free: 3.297 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001839/0.2886, allocations: 34.17 kB / 405.4 MB, free: 3.297 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.346e-06/0.2886, allocations: 1.094 kB / 405.4 MB, free: 3.297 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.941e-05/0.2886, allocations: 6.094 kB / 405.4 MB, free: 3.293 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.028e-06/0.2886, allocations: 4.625 kB / 405.4 MB, free: 3.289 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.163e-06/0.2886, allocations: 7.938 kB / 405.4 MB, free: 3.281 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004977/0.2891, allocations: 284.6 kB / 405.7 MB, free: 3.129 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.583e-05/0.2892, allocations: 26.33 kB / 405.7 MB, free: 3.109 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.703e-05/0.2892, allocations: 11.31 kB / 405.7 MB, free: 3.102 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.746e-05/0.2893, allocations: 1.969 kB / 405.7 MB, free: 3.102 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.409e-05/0.2893, allocations: 15.16 kB / 405.7 MB, free: 3.098 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.054e-05/0.2894, allocations: 6.375 kB / 405.7 MB, free: 3.098 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001786/0.2895, allocations: 191.2 kB / 405.9 MB, free: 2.988 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2895, allocations: 0 / 405.9 MB, free: 2.988 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000298/0.2898, allocations: 61.41 kB / 406 MB, free: 2.973 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (winding.T,core.T) * Number of discrete variables: 3 ($whenCondition1,lossTable.nextTimeEvent,lossTable.nextTimeEventScaled) * Number of discrete states: 2 (lossTable.nextTimeEvent,lossTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002038/0.2919, allocations: 1.119 MB / 407.1 MB, free: 2.023 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003493/0.2922, allocations: 133.7 kB / 407.2 MB, free: 1.984 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.2922, allocations: 0 / 407.2 MB, free: 1.984 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001429/0.2924, allocations: 75.11 kB / 407.3 MB, free: 1.957 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003815/0.2927, allocations: 57.19 kB / 407.3 MB, free: 1.926 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002946/0.2957, allocations: 2.387 MB / 409.7 MB, free: 256 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004344/0.2961, allocations: 0.7471 MB / 410.5 MB, free: 15.55 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001317/0.2963, allocations: 27.28 kB / 410.5 MB, free: 15.54 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001336/0.2964, allocations: 72.73 kB / 410.6 MB, free: 15.48 MB / 334.1 MB Notification: Performance of SimCode: time 7.52e-07/0.2964, allocations: 0 / 410.6 MB, free: 15.48 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03813/0.3345, allocations: 5.57 MB / 416.1 MB, free: 12.86 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.19/11.52, allocations: 1.281 kB / 416.2 MB, free: 12.86 MB / 334.1 MB " [Timeout remaining time 648] (rm -f Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor_res.csv --start-time 0 --stop-time 7200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.01 Modelica_3_2_3_Modelica_Thermal_HeatTransfer_Examples_Motor.fmu > Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Thermal/HeatTransfer/Examples/Motor/Motor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 658] Reference file matches [Calling sys.exit(0), Time elapsed: 27.372178263001842]