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.001774/0.001774, allocations: 117.9 kB / 18.45 MB, free: 4.609 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.002103/0.002103, allocations: 215.3 kB / 21.41 MB, free: 1.648 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.412/1.412, allocations: 207.6 MB / 231.8 MB, free: 4.082 MB / 174.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.001718/0.001718, allocations: 55.92 kB / 342.3 MB, free: 10.01 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0916/0.09332, allocations: 49.13 MB / 391.4 MB, free: 8.715 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.004006/0.09732, allocations: 2.22 MB / 393.6 MB, free: 6.484 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001764/0.09909, allocations: 0.9789 MB / 394.6 MB, free: 5.496 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001211/0.09921, allocations: 7.938 kB / 394.6 MB, free: 5.488 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003676/0.09958, allocations: 95.5 kB / 394.7 MB, free: 5.395 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003258/0.0999, allocations: 123.3 kB / 394.8 MB, free: 5.273 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003768/0.1003, allocations: 135.6 kB / 395 MB, free: 5.141 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003479/0.1006, allocations: 286.8 kB / 395.2 MB, free: 4.859 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001852/0.1008, allocations: 64.53 kB / 395.3 MB, free: 4.797 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001558/0.101, allocations: 115.6 kB / 395.4 MB, free: 4.684 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002001/0.1012, allocations: 135.5 kB / 395.5 MB, free: 4.551 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.663e-05/0.1012, allocations: 16 kB / 395.6 MB, free: 4.535 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000133/0.1013, allocations: 47.98 kB / 395.6 MB, free: 4.488 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.467e-05/0.1014, allocations: 63.75 kB / 395.7 MB, free: 4.426 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001201/0.1015, allocations: 107.4 kB / 395.8 MB, free: 4.32 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003844/0.1019, allocations: 294.8 kB / 396.1 MB, free: 4.031 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.291e-06/0.1019, allocations: 3.984 kB / 396.1 MB, free: 4.027 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.1019, allocations: 0 / 396.1 MB, free: 4.027 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.033e-06/0.1019, allocations: 0 / 396.1 MB, free: 4.027 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.0008729/0.1028, allocations: 0.5455 MB / 396.6 MB, free: 3.434 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.102e-05/0.1029, allocations: 8.031 kB / 396.6 MB, free: 3.426 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.178e-05/0.1029, allocations: 50.73 kB / 396.7 MB, free: 3.367 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001423/0.1031, allocations: 36.75 kB / 396.7 MB, free: 3.332 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003977/0.1035, allocations: 252.9 kB / 397 MB, free: 3.043 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.534e-05/0.1035, allocations: 16.38 kB / 397 MB, free: 3.027 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.905e-05/0.1035, allocations: 19.94 kB / 397 MB, free: 3.008 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003327/0.1039, allocations: 165.1 kB / 397.1 MB, free: 2.84 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.343e-05/0.1039, allocations: 0 / 397.1 MB, free: 2.84 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.995e-05/0.1039, allocations: 4 kB / 397.2 MB, free: 2.836 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.833e-06/0.1039, allocations: 4 kB / 397.2 MB, free: 2.832 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002781/0.1042, allocations: 123.9 kB / 397.3 MB, free: 2.711 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001025/0.1052, allocations: 0.5664 MB / 397.8 MB, free: 2.094 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003292/0.1055, allocations: 150.5 kB / 398 MB, free: 1.938 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001606/0.1057, allocations: 84.83 kB / 398.1 MB, free: 1.852 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.316e-05/0.1057, allocations: 4 kB / 398.1 MB, free: 1.848 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002519/0.106, allocations: 119.3 kB / 398.2 MB, free: 1.719 MB / 318.1 MB Notification: Performance of pre-optimization done (n=20): time 1.423e-06/0.106, allocations: 0 / 398.2 MB, free: 1.719 MB / 318.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005462/0.1065, allocations: 233.7 kB / 398.4 MB, free: 1.484 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.62e-05/0.1066, allocations: 55.41 kB / 398.5 MB, free: 1.418 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002798/0.1069, allocations: 253 kB / 398.7 MB, free: 1.16 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.396e-05/0.1069, allocations: 29.64 kB / 398.8 MB, free: 1.125 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001164/0.107, allocations: 152.4 kB / 398.9 MB, free: 0.9727 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.497e-05/0.1071, allocations: 71.36 kB / 399 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.641e-05/0.1072, allocations: 41.7 kB / 399 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001821/0.1073, allocations: 338.8 kB / 399.3 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001186/0.1075, allocations: 47.97 kB / 399.4 MB, free: 480 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001474/0.1076, allocations: 91.34 kB / 399.5 MB, free: 376 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002675/0.1079, allocations: 143.3 kB / 399.6 MB, free: 220 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.1079, allocations: 0 / 399.6 MB, free: 220 kB / 318.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003961/0.1083, allocations: 205.4 kB / 399.8 MB, free: 8 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.449e-05/0.1083, allocations: 12.05 kB / 399.8 MB, free: 15.99 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.832e-06/0.1083, allocations: 0 / 399.8 MB, free: 15.99 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.084e-05/0.1083, allocations: 4 kB / 399.8 MB, free: 15.99 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002335/0.1086, allocations: 51.86 kB / 399.9 MB, free: 15.94 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.434e-05/0.1086, allocations: 7.922 kB / 399.9 MB, free: 15.93 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001104/0.1087, allocations: 23.83 kB / 399.9 MB, free: 15.91 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.758e-05/0.1087, allocations: 8 kB / 399.9 MB, free: 15.9 MB / 334.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.0001682/0.1089, allocations: 141.7 kB / 400.1 MB, free: 15.75 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.078e-05/0.1089, allocations: 23.91 kB / 400.1 MB, free: 15.73 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.796e-05/0.109, allocations: 26.19 kB / 400.1 MB, free: 15.7 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.386e-06/0.109, allocations: 7.938 kB / 400.1 MB, free: 15.7 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.069e-05/0.109, allocations: 3.984 kB / 400.1 MB, free: 15.69 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.708e-06/0.109, allocations: 0 / 400.1 MB, free: 15.69 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003595/0.1094, allocations: 285.4 kB / 400.4 MB, free: 15.36 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.1094, allocations: 3.938 kB / 400.4 MB, free: 15.36 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001941/0.1096, allocations: 39.98 kB / 400.4 MB, free: 15.32 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.863e-06/0.1096, allocations: 0 / 400.4 MB, free: 15.32 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.606e-05/0.1096, allocations: 0 / 400.4 MB, free: 15.32 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.385e-05/0.1096, allocations: 7.938 kB / 400.5 MB, free: 15.31 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.917e-06/0.1096, allocations: 7.984 kB / 400.5 MB, free: 15.3 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005317/0.1102, allocations: 280.8 kB / 400.7 MB, free: 15.01 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.847e-05/0.1102, allocations: 93 kB / 400.8 MB, free: 14.9 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.677e-05/0.1103, allocations: 11.94 kB / 400.8 MB, free: 14.89 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.08e-05/0.1104, allocations: 11.92 kB / 400.8 MB, free: 14.88 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.649e-05/0.1104, allocations: 11.98 kB / 400.9 MB, free: 14.87 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.141e-05/0.1104, allocations: 8 kB / 400.9 MB, free: 14.86 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001819/0.1106, allocations: 192.5 kB / 401.1 MB, free: 14.67 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1106, allocations: 0 / 401.1 MB, free: 14.67 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002941/0.1109, allocations: 63.88 kB / 401.1 MB, free: 14.61 MB / 334.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.002263/0.1132, allocations: 1.122 MB / 402.2 MB, free: 13.45 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003657/0.1135, allocations: 144 kB / 402.4 MB, free: 13.31 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.073e-06/0.1135, allocations: 0 / 402.4 MB, free: 13.31 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001501/0.1137, allocations: 67.91 kB / 402.4 MB, free: 13.25 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003837/0.1141, allocations: 52.5 kB / 402.5 MB, free: 13.2 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003358/0.1174, allocations: 2.363 MB / 404.9 MB, free: 10.73 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000422/0.1178, allocations: 0.748 MB / 405.6 MB, free: 9.957 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001202/0.118, allocations: 33.92 kB / 405.6 MB, free: 9.922 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001276/0.1181, allocations: 75.34 kB / 405.7 MB, free: 9.848 MB / 334.1 MB Notification: Performance of SimCode: time 9.61e-07/0.1181, allocations: 0 / 405.7 MB, free: 9.848 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04148/0.1596, allocations: 5.328 MB / 411 MB, free: 4.438 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.302/8.462, allocations: 12 kB / 411.1 MB, free: 4.426 MB / 334.1 MB " [Timeout remaining time 651] (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: 24.20739834300184]