Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001398/0.001398, allocations: 131.4 kB / 17.8 MB, free: 5.219 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001477/0.001477, allocations: 211.6 kB / 20.75 MB, free: 2.27 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.462/1.462, allocations: 230.4 MB / 254 MB, free: 15.13 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.Motor,fileNamePrefix="Modelica_trunk_Modelica_Thermal_HeatTransfer_Examples_Motor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.Motor,fileNamePrefix="Modelica_trunk_Modelica_Thermal_HeatTransfer_Examples_Motor",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002025/0.002025, allocations: 63.88 kB / 373 MB, free: 10.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0945/0.09652, allocations: 53.38 MB / 426.3 MB, free: 4.617 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.004026/0.1005, allocations: 2.27 MB / 428.6 MB, free: 2.336 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00208/0.1026, allocations: 1.223 MB / 429.8 MB, free: 1.105 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001056/0.1027, allocations: 7.938 kB / 429.8 MB, free: 1.098 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003285/0.1031, allocations: 95.5 kB / 429.9 MB, free: 1.004 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000405/0.1035, allocations: 159.1 kB / 430.1 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002809/0.1037, allocations: 123.6 kB / 430.2 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003675/0.1041, allocations: 294.7 kB / 430.5 MB, free: 448 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001764/0.1043, allocations: 64.58 kB / 430.6 MB, free: 380 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001603/0.1045, allocations: 119.6 kB / 430.7 MB, free: 260 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001957/0.1046, allocations: 135.4 kB / 430.8 MB, free: 124 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.114e-05/0.1047, allocations: 16 kB / 430.8 MB, free: 108 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001315/0.1048, allocations: 55.92 kB / 430.9 MB, free: 52 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.811e-05/0.1049, allocations: 55.84 kB / 430.9 MB, free: 15.99 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001286/0.105, allocations: 119.3 kB / 431 MB, free: 15.88 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003939/0.1054, allocations: 298.7 kB / 431.3 MB, free: 15.59 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.349e-06/0.1054, allocations: 0 / 431.3 MB, free: 15.59 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1054, allocations: 0 / 431.3 MB, free: 15.59 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.016e-05/0.1054, allocations: 0 / 431.3 MB, free: 15.59 MB / 366.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.0009703/0.1064, allocations: 0.5686 MB / 431.9 MB, free: 14.97 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.787e-05/0.1065, allocations: 12.03 kB / 431.9 MB, free: 14.96 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.934e-05/0.1065, allocations: 46.73 kB / 432 MB, free: 14.9 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001396/0.1067, allocations: 32.75 kB / 432 MB, free: 14.87 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003872/0.107, allocations: 255.9 kB / 432.2 MB, free: 14.58 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.221e-05/0.1071, allocations: 16.38 kB / 432.3 MB, free: 14.57 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.319e-05/0.1071, allocations: 24.31 kB / 432.3 MB, free: 14.54 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000341/0.1074, allocations: 161.7 kB / 432.4 MB, free: 14.38 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.277e-05/0.1075, allocations: 0 / 432.4 MB, free: 14.38 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.367e-05/0.1075, allocations: 7.984 kB / 432.5 MB, free: 14.37 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.714e-06/0.1075, allocations: 4 kB / 432.5 MB, free: 14.37 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000268/0.1078, allocations: 123.5 kB / 432.6 MB, free: 14.25 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009708/0.1087, allocations: 0.5664 MB / 433.1 MB, free: 13.63 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003459/0.1091, allocations: 152.5 kB / 433.3 MB, free: 13.47 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001681/0.1092, allocations: 76.83 kB / 433.4 MB, free: 13.39 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.701e-05/0.1093, allocations: 4.344 kB / 433.4 MB, free: 13.39 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002501/0.1095, allocations: 122 kB / 433.5 MB, free: 13.26 MB / 366.1 MB Notification: Performance of pre-optimization done (n=20): time 2.024e-06/0.1095, allocations: 3.938 kB / 433.5 MB, free: 13.26 MB / 366.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005427/0.1101, allocations: 229.5 kB / 433.7 MB, free: 13.03 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.929e-05/0.1101, allocations: 51.41 kB / 433.8 MB, free: 12.96 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002996/0.1104, allocations: 265 kB / 434 MB, free: 12.7 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.654e-05/0.1104, allocations: 25.7 kB / 434.1 MB, free: 12.66 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001214/0.1106, allocations: 152.4 kB / 434.2 MB, free: 12.51 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.709e-05/0.1106, allocations: 75.34 kB / 434.3 MB, free: 12.44 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.001e-05/0.1107, allocations: 49.67 kB / 434.3 MB, free: 12.38 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000153/0.1109, allocations: 334.8 kB / 434.7 MB, free: 12.05 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001211/0.111, allocations: 51.97 kB / 434.7 MB, free: 12 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001424/0.1111, allocations: 79.41 kB / 434.8 MB, free: 11.91 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002724/0.1114, allocations: 159.3 kB / 434.9 MB, free: 11.74 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.1114, allocations: 0 / 434.9 MB, free: 11.74 MB / 366.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003894/0.1118, allocations: 208.7 kB / 435.1 MB, free: 11.53 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.478e-05/0.1118, allocations: 4 kB / 435.1 MB, free: 11.53 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.553e-06/0.1118, allocations: 4 kB / 435.1 MB, free: 11.52 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.312e-05/0.1118, allocations: 0 / 435.1 MB, free: 11.52 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002237/0.1121, allocations: 47.92 kB / 435.2 MB, free: 11.48 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.126e-06/0.1121, allocations: 7.938 kB / 435.2 MB, free: 11.47 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001157/0.1122, allocations: 27.91 kB / 435.2 MB, free: 11.44 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.546e-05/0.1122, allocations: 8 kB / 435.2 MB, free: 11.43 MB / 366.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.0001962/0.1124, allocations: 143.9 kB / 435.4 MB, free: 11.29 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.913e-05/0.1124, allocations: 19.86 kB / 435.4 MB, free: 11.27 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.462e-05/0.1125, allocations: 30.12 kB / 435.4 MB, free: 11.23 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.29e-06/0.1125, allocations: 4 kB / 435.4 MB, free: 11.23 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.143e-06/0.1125, allocations: 3.984 kB / 435.4 MB, free: 11.23 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/0.1125, allocations: 3.938 kB / 435.4 MB, free: 11.22 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003362/0.1129, allocations: 293.4 kB / 435.7 MB, free: 10.89 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.1129, allocations: 0 / 435.7 MB, free: 10.89 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001898/0.113, allocations: 31.98 kB / 435.8 MB, free: 10.86 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.113, allocations: 0 / 435.8 MB, free: 10.86 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.347e-05/0.1131, allocations: 7.984 kB / 435.8 MB, free: 10.85 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.757e-06/0.1131, allocations: 4 kB / 435.8 MB, free: 10.84 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.1131, allocations: 0 / 435.8 MB, free: 10.84 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000544/0.1136, allocations: 291.6 kB / 436.1 MB, free: 10.54 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.075e-05/0.1137, allocations: 101 kB / 436.2 MB, free: 10.43 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.603e-05/0.1137, allocations: 7.984 kB / 436.2 MB, free: 10.42 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.421e-05/0.1138, allocations: 4 kB / 436.2 MB, free: 10.41 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.458e-05/0.1139, allocations: 15.92 kB / 436.2 MB, free: 10.4 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.969e-05/0.1139, allocations: 4 kB / 436.2 MB, free: 10.39 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001986/0.1141, allocations: 196.5 kB / 436.4 MB, free: 10.2 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1141, allocations: 0 / 436.4 MB, free: 10.2 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002877/0.1144, allocations: 63.83 kB / 436.4 MB, free: 10.14 MB / 366.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.002342/0.1167, allocations: 1.116 MB / 437.6 MB, free: 9.133 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003448/0.1171, allocations: 135.8 kB / 437.7 MB, free: 9 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.671e-06/0.1171, allocations: 4 kB / 437.7 MB, free: 8.996 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000143/0.1172, allocations: 67.91 kB / 437.8 MB, free: 8.93 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003515/0.1176, allocations: 48.53 kB / 437.8 MB, free: 8.883 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003299/0.1209, allocations: 2.396 MB / 440.2 MB, free: 6.387 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004632/0.1213, allocations: 0.7519 MB / 441 MB, free: 5.609 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001177/0.1214, allocations: 29.92 kB / 441 MB, free: 5.578 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001385/0.1216, allocations: 71.41 kB / 441.1 MB, free: 5.508 MB / 366.1 MB Notification: Performance of SimCode: time 8.42e-07/0.1216, allocations: 3.938 kB / 441.1 MB, free: 5.504 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04187/0.1635, allocations: 5.408 MB / 446.5 MB, free: 160 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.232/8.395, allocations: 4.375 kB / 446.5 MB, free: 156 kB / 366.1 MB " [Timeout remaining time 651] (rm -f Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe >> ../files/Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Thermal_HeatTransfer_Examples_Motor.fmu > Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Thermal/HeatTransfer/Examples/Motor/Motor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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.50790802296251]