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.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: "" <> 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001752/0.001752, allocations: 104.5 kB / 17.58 MB, free: 5.426 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.002222/0.002222, allocations: 191.9 kB / 18.5 MB, free: 4.516 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.468/2.468, allocations: 205.1 MB / 224.4 MB, free: 12.3 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.002601/0.002601, allocations: 56.14 kB / 280.8 MB, free: 3.09 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1608/0.1635, allocations: 46.62 MB / 327.4 MB, free: 4.398 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.007178/0.1707, allocations: 2.224 MB / 329.6 MB, free: 2.148 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.003215/0.174, allocations: 0.9596 MB / 330.6 MB, free: 1.18 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003506/0.1744, allocations: 4 kB / 330.6 MB, free: 1.176 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006873/0.1752, allocations: 99.5 kB / 330.7 MB, free: 1.078 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007823/0.176, allocations: 123.2 kB / 330.8 MB, free: 0.957 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007632/0.1768, allocations: 123.6 kB / 330.9 MB, free: 0.8359 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007914/0.1776, allocations: 278.9 kB / 331.2 MB, free: 0.5625 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004534/0.1781, allocations: 88.36 kB / 331.3 MB, free: 488 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004057/0.1785, allocations: 115.6 kB / 331.4 MB, free: 372 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003541/0.1789, allocations: 127.5 kB / 331.5 MB, free: 244 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 8.352e-05/0.179, allocations: 16 kB / 331.5 MB, free: 228 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003335/0.1793, allocations: 51.98 kB / 331.6 MB, free: 176 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001533/0.1795, allocations: 59.77 kB / 331.6 MB, free: 116 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003497/0.1798, allocations: 119.5 kB / 331.7 MB, free: 15.99 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006602/0.1805, allocations: 279.2 kB / 332 MB, free: 15.72 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.562e-06/0.1805, allocations: 0 / 332 MB, free: 15.72 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.1806, allocations: 0 / 332 MB, free: 15.72 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.104e-05/0.1806, allocations: 0 / 332 MB, free: 15.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: 41 * Number of variables: 41 Notification: Performance of Generate backend data structure: time 0.001482/0.1821, allocations: 0.5381 MB / 332.6 MB, free: 15.14 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.08e-05/0.1822, allocations: 12.03 kB / 332.6 MB, free: 15.12 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.884e-05/0.1823, allocations: 50.73 kB / 332.6 MB, free: 15.07 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002721/0.1826, allocations: 32.56 kB / 332.6 MB, free: 15.04 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005218/0.1831, allocations: 260.7 kB / 332.9 MB, free: 14.74 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.54e-05/0.1831, allocations: 12.38 kB / 332.9 MB, free: 14.73 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.905e-05/0.1832, allocations: 27.86 kB / 332.9 MB, free: 14.7 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005832/0.1838, allocations: 165.1 kB / 333.1 MB, free: 14.54 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.58e-05/0.1839, allocations: 0 / 333.1 MB, free: 14.54 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.667e-05/0.1839, allocations: 15.98 kB / 333.1 MB, free: 14.52 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.185e-05/0.1839, allocations: 4 kB / 333.1 MB, free: 14.52 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004382/0.1844, allocations: 107.9 kB / 333.2 MB, free: 14.41 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001512/0.1859, allocations: 0.5663 MB / 333.8 MB, free: 13.79 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005782/0.1865, allocations: 158.5 kB / 333.9 MB, free: 13.63 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000261/0.1868, allocations: 92.83 kB / 334 MB, free: 13.54 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.298e-05/0.1869, allocations: 7.984 kB / 334 MB, free: 13.53 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000482/0.1874, allocations: 111.7 kB / 334.2 MB, free: 13.41 MB / 286.1 MB Notification: Performance of pre-optimization done (n=20): time 3.015e-06/0.1874, allocations: 0 / 334.2 MB, free: 13.41 MB / 286.1 MB Notification: Performance of matching and sorting (n=20): time 0.00086/0.1883, allocations: 237.2 kB / 334.4 MB, free: 13.17 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.214e-05/0.1883, allocations: 55.41 kB / 334.4 MB, free: 13.1 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004448/0.1888, allocations: 249 kB / 334.7 MB, free: 12.85 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.634e-05/0.1888, allocations: 33.7 kB / 334.7 MB, free: 12.81 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001699/0.189, allocations: 148.3 kB / 334.9 MB, free: 12.66 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001094/0.1892, allocations: 67.08 kB / 334.9 MB, free: 12.59 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000141/0.1893, allocations: 45.7 kB / 335 MB, free: 12.54 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002172/0.1895, allocations: 330.8 kB / 335.3 MB, free: 12.21 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002026/0.1898, allocations: 51.97 kB / 335.3 MB, free: 12.16 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002369/0.19, allocations: 87.41 kB / 335.4 MB, free: 12.06 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004305/0.1905, allocations: 147.3 kB / 335.6 MB, free: 11.91 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.1905, allocations: 0 / 335.6 MB, free: 11.91 MB / 286.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0006423/0.1911, allocations: 201.2 kB / 335.8 MB, free: 11.7 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.786e-05/0.1912, allocations: 12.03 kB / 335.8 MB, free: 11.69 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.614e-06/0.1912, allocations: 4 kB / 335.8 MB, free: 11.69 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.565e-05/0.1912, allocations: 0 / 335.8 MB, free: 11.69 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003683/0.1916, allocations: 47.92 kB / 335.8 MB, free: 11.64 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.7e-05/0.1916, allocations: 11.92 kB / 335.8 MB, free: 11.63 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002072/0.1919, allocations: 15.84 kB / 335.9 MB, free: 11.61 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.885e-05/0.1919, allocations: 8 kB / 335.9 MB, free: 11.61 MB / 286.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.0002334/0.1922, allocations: 145.8 kB / 336 MB, free: 11.45 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.443e-05/0.1922, allocations: 19.72 kB / 336 MB, free: 11.43 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001149/0.1924, allocations: 30.19 kB / 336.1 MB, free: 11.4 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.437e-05/0.1924, allocations: 11.92 kB / 336.1 MB, free: 11.39 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.083e-06/0.1924, allocations: 0 / 336.1 MB, free: 11.39 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.59e-05/0.1925, allocations: 7.984 kB / 336.1 MB, free: 11.38 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004742/0.1929, allocations: 289.3 kB / 336.4 MB, free: 11.05 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.199e-06/0.193, allocations: 0 / 336.4 MB, free: 11.05 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003314/0.1933, allocations: 31.98 kB / 336.4 MB, free: 11.02 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.909e-06/0.1933, allocations: 4 kB / 336.4 MB, free: 11.02 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.933e-05/0.1934, allocations: 7.938 kB / 336.4 MB, free: 11.01 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.586e-06/0.1934, allocations: 7.922 kB / 336.4 MB, free: 11 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.1934, allocations: 0 / 336.4 MB, free: 11 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008211/0.1942, allocations: 288.8 kB / 336.7 MB, free: 10.7 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001129/0.1944, allocations: 92.95 kB / 336.8 MB, free: 10.59 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.371e-05/0.1944, allocations: 7.938 kB / 336.8 MB, free: 10.58 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001384/0.1946, allocations: 7.984 kB / 336.8 MB, free: 10.57 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.035e-05/0.1947, allocations: 11.98 kB / 336.8 MB, free: 10.56 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.365e-05/0.1947, allocations: 8 kB / 336.8 MB, free: 10.55 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002812/0.195, allocations: 188.5 kB / 337 MB, free: 10.37 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.195, allocations: 0 / 337 MB, free: 10.37 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005441/0.1956, allocations: 63.83 kB / 337.1 MB, free: 10.31 MB / 286.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.nextTimeEventScaled,lossTable.nextTimeEvent) * 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.00283/0.1984, allocations: 1.127 MB / 338.2 MB, free: 9.168 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.000594/0.199, allocations: 156.8 kB / 338.3 MB, free: 9.016 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.1991, allocations: 0 / 338.3 MB, free: 9.016 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002292/0.1993, allocations: 75.86 kB / 338.4 MB, free: 8.941 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006476/0.2, allocations: 44.64 kB / 338.5 MB, free: 8.898 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005734/0.2057, allocations: 2.369 MB / 340.8 MB, free: 6.426 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000564/0.2063, allocations: 0.7363 MB / 341.6 MB, free: 5.664 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.000239/0.2066, allocations: 33.92 kB / 341.6 MB, free: 5.633 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001995/0.2068, allocations: 75.41 kB / 341.7 MB, free: 5.559 MB / 286.1 MB Notification: Performance of SimCode: time 9.82e-07/0.2068, allocations: 0 / 341.7 MB, free: 5.559 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03939/0.2462, allocations: 5.168 MB / 346.8 MB, free: 336 kB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.31/12.56, allocations: 12.03 kB / 346.9 MB, free: 324 kB / 286.1 MB (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) 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) "Warning: Resultfile and Reference have different end time points! Reffile[1440025]=7200.000000 File[98317]=1024.060000 " Variables in the reference:time,core.T,winding.T Variables in the result:time,core.T,winding.T