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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001826/0.001826, allocations: 121.3 kB / 18.45 MB, free: 4.617 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00205/0.00205, allocations: 193.2 kB / 21.4 MB, free: 1.684 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.447/1.447, allocations: 207.6 MB / 231.8 MB, free: 4.078 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.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"}) [Timeout 660] "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.001686/0.001686, allocations: 51.92 kB / 342.2 MB, free: 10.06 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09242/0.0941, allocations: 49.13 MB / 391.4 MB, free: 8.762 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.004136/0.09824, allocations: 2.22 MB / 393.6 MB, free: 6.531 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001881/0.1001, allocations: 0.9827 MB / 394.6 MB, free: 5.539 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001173/0.1002, allocations: 4 kB / 394.6 MB, free: 5.535 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003952/0.1006, allocations: 103.5 kB / 394.7 MB, free: 5.434 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003301/0.101, allocations: 119.3 kB / 394.8 MB, free: 5.316 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003583/0.1013, allocations: 131.6 kB / 394.9 MB, free: 5.188 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003626/0.1017, allocations: 282.8 kB / 395.2 MB, free: 4.91 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000246/0.1019, allocations: 72.52 kB / 395.3 MB, free: 4.84 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001648/0.1021, allocations: 111.6 kB / 395.4 MB, free: 4.73 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001998/0.1023, allocations: 131.5 kB / 395.5 MB, free: 4.602 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.433e-05/0.1023, allocations: 16 kB / 395.5 MB, free: 4.586 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001211/0.1024, allocations: 55.92 kB / 395.6 MB, free: 4.531 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.369e-05/0.1025, allocations: 47.84 kB / 395.6 MB, free: 4.484 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001538/0.1027, allocations: 119.3 kB / 395.7 MB, free: 4.367 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000372/0.103, allocations: 286.8 kB / 396 MB, free: 4.086 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.716e-06/0.1031, allocations: 3.938 kB / 396 MB, free: 4.082 MB / 318.1 MB Notification: Performance of FrontEnd: time 8.42e-07/0.1031, allocations: 0 / 396 MB, free: 4.082 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.61e-06/0.1031, allocations: 0 / 396 MB, free: 4.082 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.0008744/0.1039, allocations: 0.5533 MB / 396.6 MB, free: 3.48 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.687e-05/0.104, allocations: 12.03 kB / 396.6 MB, free: 3.469 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.316e-05/0.104, allocations: 54.73 kB / 396.6 MB, free: 3.406 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001314/0.1042, allocations: 32.75 kB / 396.7 MB, free: 3.375 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004134/0.1046, allocations: 252.9 kB / 396.9 MB, free: 3.086 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.956e-05/0.1046, allocations: 12.36 kB / 396.9 MB, free: 3.074 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.026e-05/0.1046, allocations: 23.94 kB / 396.9 MB, free: 3.051 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003354/0.105, allocations: 161.2 kB / 397.1 MB, free: 2.887 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.413e-05/0.105, allocations: 0 / 397.1 MB, free: 2.887 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.093e-05/0.105, allocations: 12 kB / 397.1 MB, free: 2.875 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.336e-06/0.105, allocations: 4 kB / 397.1 MB, free: 2.871 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002476/0.1053, allocations: 115.9 kB / 397.2 MB, free: 2.758 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009277/0.1062, allocations: 0.5626 MB / 397.8 MB, free: 2.145 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003132/0.1065, allocations: 154.5 kB / 397.9 MB, free: 1.984 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001483/0.1067, allocations: 80.83 kB / 398 MB, free: 1.902 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.507e-05/0.1067, allocations: 0 / 398 MB, free: 1.902 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002829/0.107, allocations: 119.2 kB / 398.1 MB, free: 1.773 MB / 318.1 MB Notification: Performance of pre-optimization done (n=20): time 1.463e-06/0.107, allocations: 4 kB / 398.1 MB, free: 1.77 MB / 318.1 MB Notification: Performance of matching and sorting (n=20): time 0.0004927/0.1075, allocations: 237.7 kB / 398.4 MB, free: 1.531 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.191e-05/0.1075, allocations: 51.41 kB / 398.4 MB, free: 1.469 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003145/0.1078, allocations: 253 kB / 398.7 MB, free: 1.211 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.06e-05/0.1078, allocations: 29.7 kB / 398.7 MB, free: 1.176 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001069/0.1079, allocations: 148.4 kB / 398.8 MB, free: 1.027 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.632e-05/0.108, allocations: 75.34 kB / 398.9 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.424e-05/0.1081, allocations: 41.72 kB / 399 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001584/0.1082, allocations: 338.8 kB / 399.3 MB, free: 0.5664 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001148/0.1084, allocations: 55.91 kB / 399.3 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001904/0.1086, allocations: 87.28 kB / 399.4 MB, free: 424 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002622/0.1088, allocations: 155.3 kB / 399.6 MB, free: 256 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.1088, allocations: 0 / 399.6 MB, free: 256 kB / 318.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003473/0.1092, allocations: 205.4 kB / 399.8 MB, free: 44 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.299e-05/0.1092, allocations: 4 kB / 399.8 MB, free: 40 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.648e-06/0.1092, allocations: 0 / 399.8 MB, free: 40 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.242e-05/0.1092, allocations: 4 kB / 399.8 MB, free: 36 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002315/0.1094, allocations: 47.91 kB / 399.8 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.024e-05/0.1094, allocations: 4 kB / 399.8 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.276e-05/0.1095, allocations: 27.88 kB / 399.9 MB, free: 15.96 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.327e-05/0.1095, allocations: 4 kB / 399.9 MB, free: 15.95 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.0001339/0.1097, allocations: 145.7 kB / 400 MB, free: 15.8 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.618e-05/0.1097, allocations: 23.89 kB / 400 MB, free: 15.78 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.916e-05/0.1098, allocations: 26.19 kB / 400.1 MB, free: 15.75 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.36e-06/0.1098, allocations: 3.938 kB / 400.1 MB, free: 15.75 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.1098, allocations: 4 kB / 400.1 MB, free: 15.74 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.069e-06/0.1098, allocations: 3.984 kB / 400.1 MB, free: 15.74 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003436/0.1102, allocations: 285.4 kB / 400.4 MB, free: 15.41 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.1102, allocations: 4 kB / 400.4 MB, free: 15.41 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001805/0.1103, allocations: 35.92 kB / 400.4 MB, free: 15.37 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.63e-06/0.1103, allocations: 4 kB / 400.4 MB, free: 15.37 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.741e-05/0.1104, allocations: 8 kB / 400.4 MB, free: 15.36 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.316e-06/0.1104, allocations: 3.938 kB / 400.4 MB, free: 15.36 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.1104, allocations: 0 / 400.4 MB, free: 15.36 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005393/0.1109, allocations: 280.9 kB / 400.7 MB, free: 15.06 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.398e-05/0.111, allocations: 97.06 kB / 400.8 MB, free: 14.95 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.292e-05/0.111, allocations: 7.938 kB / 400.8 MB, free: 14.94 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.159e-05/0.1111, allocations: 11.98 kB / 400.8 MB, free: 14.93 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.834e-05/0.1111, allocations: 7.984 kB / 400.8 MB, free: 14.92 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.117e-05/0.1111, allocations: 15.94 kB / 400.8 MB, free: 14.91 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001853/0.1113, allocations: 184.5 kB / 401 MB, free: 14.72 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1113, allocations: 3.938 kB / 401 MB, free: 14.72 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002659/0.1116, allocations: 59.88 kB / 401.1 MB, free: 14.66 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.002296/0.1139, allocations: 1.134 MB / 402.2 MB, free: 13.5 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003715/0.1143, allocations: 139.8 kB / 402.3 MB, free: 13.36 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.1143, allocations: 0 / 402.3 MB, free: 13.36 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001346/0.1144, allocations: 63.92 kB / 402.4 MB, free: 13.3 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003521/0.1148, allocations: 60.5 kB / 402.5 MB, free: 13.24 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003165/0.1179, allocations: 2.363 MB / 404.8 MB, free: 10.77 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003969/0.1183, allocations: 0.7519 MB / 405.6 MB, free: 9.996 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001058/0.1184, allocations: 29.92 kB / 405.6 MB, free: 9.965 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001685/0.1186, allocations: 71.42 kB / 405.7 MB, free: 9.895 MB / 334.1 MB Notification: Performance of SimCode: time 5.31e-07/0.1186, allocations: 0 / 405.7 MB, free: 9.895 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03999/0.1586, allocations: 5.329 MB / 411 MB, free: 4.48 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.355/8.513, allocations: 7.984 kB / 411 MB, free: 4.473 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Thermal_HeatTransfer_Examples_Motor_fmu --startTime=0 --stopTime=7200 --stepSize=0.01 --timeout=50 --tolerance=1e-06 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.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Thermal/HeatTransfer/Examples/Motor/Motor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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 654] Reference file matches [Calling sys.exit(0), Time elapsed: 29.6549788499251]