Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.0007974/0.0007974, allocations: 79.7 kB / 20.67 MB, free: 3.891 MB / 18.57 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.000817/0.000817, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8749/0.8749, allocations: 177.1 MB / 204.2 MB, free: 5.715 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4_1_0_Modelica_Thermal_HeatTransfer_Examples_Motor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.Motor,fileNamePrefix="Modelica_4_1_0_Modelica_Thermal_HeatTransfer_Examples_Motor",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.453e-06/1.453e-06, allocations: 0 / 324.5 MB, free: 15.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.761e-05/1.907e-05, allocations: 2.281 kB / 324.5 MB, free: 15.95 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.002538/0.002557, allocations: 2.163 MB / 326.7 MB, free: 13.77 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001387/0.003944, allocations: 1.173 MB / 327.9 MB, free: 12.59 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001206/0.004065, allocations: 8 kB / 327.9 MB, free: 12.58 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000349/0.004414, allocations: 95.44 kB / 328 MB, free: 12.49 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003838/0.004797, allocations: 170.9 kB / 328.1 MB, free: 12.32 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002318/0.005029, allocations: 115.5 kB / 328.3 MB, free: 12.21 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000263/0.005292, allocations: 310.6 kB / 328.6 MB, free: 11.9 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001652/0.005457, allocations: 68.56 kB / 328.6 MB, free: 11.84 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001559/0.005613, allocations: 159.6 kB / 328.8 MB, free: 11.68 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000137/0.00575, allocations: 111.7 kB / 328.9 MB, free: 11.57 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.546e-05/0.005776, allocations: 20 kB / 328.9 MB, free: 11.55 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001033/0.005879, allocations: 51.92 kB / 329 MB, free: 11.5 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.247e-05/0.005942, allocations: 55.83 kB / 329 MB, free: 11.45 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.873e-05/0.00601, allocations: 79.77 kB / 329.1 MB, free: 11.37 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000285/0.006295, allocations: 291 kB / 329.4 MB, free: 11.08 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.046e-06/0.006298, allocations: 0 / 329.4 MB, free: 11.08 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.0063, allocations: 0 / 329.4 MB, free: 11.08 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.41e-06/0.006305, allocations: 3.938 kB / 329.4 MB, free: 11.08 MB / 298.7 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.0006187/0.006924, allocations: 0.4886 MB / 329.9 MB, free: 10.56 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.948e-05/0.006963, allocations: 8.031 kB / 329.9 MB, free: 10.55 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.266e-05/0.007006, allocations: 50.73 kB / 329.9 MB, free: 10.5 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001034/0.007109, allocations: 32.75 kB / 330 MB, free: 10.46 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002949/0.007404, allocations: 201.2 kB / 330.2 MB, free: 10.24 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.893e-05/0.007423, allocations: 16.31 kB / 330.2 MB, free: 10.23 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.755e-05/0.007451, allocations: 20.38 kB / 330.2 MB, free: 10.21 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002285/0.007679, allocations: 161.9 kB / 330.4 MB, free: 10.04 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.177e-05/0.007691, allocations: 4 kB / 330.4 MB, free: 10.04 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.492e-05/0.007706, allocations: 8 kB / 330.4 MB, free: 10.03 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.002e-06/0.007712, allocations: 4 kB / 330.4 MB, free: 10.03 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000175/0.007887, allocations: 123.7 kB / 330.5 MB, free: 9.906 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005911/0.008478, allocations: 0.4954 MB / 331 MB, free: 9.367 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002236/0.008702, allocations: 158.5 kB / 331.1 MB, free: 9.203 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.325e-05/0.008795, allocations: 81.17 kB / 331.2 MB, free: 9.121 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.788e-05/0.008813, allocations: 4 kB / 331.2 MB, free: 9.117 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001587/0.008972, allocations: 119.3 kB / 331.3 MB, free: 8.988 MB / 298.7 MB Notification: Performance of pre-optimization done (n=20): time 2.275e-06/0.008974, allocations: 3.984 kB / 331.3 MB, free: 8.984 MB / 298.7 MB Notification: Performance of matching and sorting (n=20): time 0.000341/0.009315, allocations: 233.4 kB / 331.6 MB, free: 8.75 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.324e-05/0.009348, allocations: 59.34 kB / 331.6 MB, free: 8.68 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001791/0.009527, allocations: 273.7 kB / 331.9 MB, free: 8.406 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.627e-05/0.009543, allocations: 29.7 kB / 331.9 MB, free: 8.371 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.304e-05/0.009616, allocations: 152.3 kB / 332.1 MB, free: 8.219 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.049e-05/0.009657, allocations: 79.38 kB / 332.2 MB, free: 8.141 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.561e-05/0.009703, allocations: 37.72 kB / 332.2 MB, free: 8.098 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.593e-05/0.009789, allocations: 338.8 kB / 332.5 MB, free: 7.758 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.03e-05/0.009859, allocations: 55.97 kB / 332.6 MB, free: 7.703 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.304e-05/0.009942, allocations: 87.39 kB / 332.7 MB, free: 7.605 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001565/0.0101, allocations: 150.4 kB / 332.8 MB, free: 7.449 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.0101, allocations: 0 / 332.8 MB, free: 7.449 MB / 298.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002131/0.01031, allocations: 209.4 kB / 333 MB, free: 7.238 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.527e-05/0.01033, allocations: 8 kB / 333 MB, free: 7.23 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.48e-06/0.01033, allocations: 0 / 333 MB, free: 7.23 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.504e-05/0.01035, allocations: 4 kB / 333 MB, free: 7.227 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001319/0.01048, allocations: 47.86 kB / 333.1 MB, free: 7.18 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.491e-06/0.01049, allocations: 3.984 kB / 333.1 MB, free: 7.176 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.45e-05/0.01054, allocations: 27.81 kB / 333.1 MB, free: 7.148 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.839e-06/0.01055, allocations: 4 kB / 333.1 MB, free: 7.145 MB / 298.7 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 9.742e-05/0.01065, allocations: 145.8 kB / 333.2 MB, free: 6.992 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.248e-05/0.01067, allocations: 31.91 kB / 333.3 MB, free: 6.961 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002564/0.01093, allocations: 215.7 kB / 333.5 MB, free: 6.746 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.01093, allocations: 4 kB / 333.5 MB, free: 6.742 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.01094, allocations: 0 / 333.5 MB, free: 6.742 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.01094, allocations: 0 / 333.5 MB, free: 6.742 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001815/0.01112, allocations: 248.5 kB / 333.7 MB, free: 6.457 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.402e-06/0.01112, allocations: 0 / 333.7 MB, free: 6.457 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001103/0.01123, allocations: 43.92 kB / 333.8 MB, free: 6.414 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.01123, allocations: 0 / 333.8 MB, free: 6.414 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.395e-05/0.01125, allocations: 11.98 kB / 333.8 MB, free: 6.402 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.01125, allocations: 0 / 333.8 MB, free: 6.402 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.01125, allocations: 4 kB / 333.8 MB, free: 6.398 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003159/0.01157, allocations: 314.6 kB / 334.1 MB, free: 6.078 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.258e-05/0.01159, allocations: 19.8 kB / 334.1 MB, free: 6.059 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.129e-05/0.01161, allocations: 8 kB / 334.1 MB, free: 6.051 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.782e-05/0.01165, allocations: 3.984 kB / 334.1 MB, free: 6.047 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.572e-05/0.01169, allocations: 19.92 kB / 334.2 MB, free: 6.027 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.706e-05/0.0117, allocations: 7.984 kB / 334.2 MB, free: 6.02 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001141/0.01182, allocations: 197.2 kB / 334.4 MB, free: 5.824 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01182, allocations: 0 / 334.4 MB, free: 5.824 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001792/0.012, allocations: 67.88 kB / 334.4 MB, free: 5.758 MB / 298.7 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 (22): * Single equations (assignments): 20 * 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.001093/0.01309, allocations: 1.166 MB / 335.6 MB, free: 4.75 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002269/0.01332, allocations: 146.6 kB / 335.7 MB, free: 4.609 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.01332, allocations: 0 / 335.7 MB, free: 4.609 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.683e-05/0.0134, allocations: 71.91 kB / 335.8 MB, free: 4.539 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002385/0.01364, allocations: 63.39 kB / 335.9 MB, free: 4.48 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002197/0.01584, allocations: 2.384 MB / 338.2 MB, free: 1.984 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001078/0.01595, allocations: 146.2 kB / 338.4 MB, free: 1.82 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 9.316e-05/0.01604, allocations: 29.92 kB / 338.4 MB, free: 1.789 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001023/0.01614, allocations: 80.47 kB / 338.5 MB, free: 1.711 MB / 298.7 MB Notification: Performance of SimCode: time 1.443e-06/0.01614, allocations: 0 / 338.5 MB, free: 1.711 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02067/0.03681, allocations: 6.364 MB / 344.9 MB, free: 11.43 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.066/7.102, allocations: 13.98 kB / 344.9 MB, free: 11.42 MB / 314.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; mkfifo Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe >> ../files/Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.Motor.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_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_4_1_0_Modelica_Thermal_HeatTransfer_Examples_Motor.fmu > Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.Motor_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Thermal/HeatTransfer/Examples/Motor/Motor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.Motor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 655] "" Variables in the reference:time,core.T,winding.T Variables in the result:time,core.T,winding.T [Calling sys.exit(0), Time elapsed: 22.452750609256327]