Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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.001946/0.001946, allocations: 124.8 kB / 17.79 MB, free: 5.266 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.002068/0.002068, allocations: 186.9 kB / 20.73 MB, free: 2.332 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.362/1.362, allocations: 225.6 MB / 249.1 MB, free: 3.645 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Thermal_HeatTransfer_Examples_Motor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.Motor,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_Motor",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001543/0.001543, allocations: 43.92 kB / 365.6 MB, free: 0.9102 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09841/0.09995, allocations: 52.15 MB / 417.8 MB, free: 12.67 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.003759/0.1037, allocations: 2.244 MB / 420 MB, free: 10.41 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001802/0.1055, allocations: 1.095 MB / 421.1 MB, free: 9.312 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.983e-05/0.1056, allocations: 7.938 kB / 421.1 MB, free: 9.305 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003357/0.1059, allocations: 87.56 kB / 421.2 MB, free: 9.219 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003031/0.1063, allocations: 123.2 kB / 421.3 MB, free: 9.098 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003643/0.1066, allocations: 147.5 kB / 421.5 MB, free: 8.953 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003264/0.1069, allocations: 290.8 kB / 421.7 MB, free: 8.668 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001729/0.1071, allocations: 60.61 kB / 421.8 MB, free: 8.605 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001555/0.1073, allocations: 119.5 kB / 421.9 MB, free: 8.488 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001886/0.1075, allocations: 127.5 kB / 422 MB, free: 8.363 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.156e-05/0.1075, allocations: 16 kB / 422.1 MB, free: 8.348 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001198/0.1076, allocations: 55.98 kB / 422.1 MB, free: 8.293 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.518e-05/0.1077, allocations: 55.81 kB / 422.2 MB, free: 8.238 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001166/0.1078, allocations: 107.4 kB / 422.3 MB, free: 8.133 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003637/0.1082, allocations: 294.7 kB / 422.6 MB, free: 7.844 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/0.1082, allocations: 7.984 kB / 422.6 MB, free: 7.836 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.1082, allocations: 0 / 422.6 MB, free: 7.836 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.27e-06/0.1082, allocations: 0 / 422.6 MB, free: 7.836 MB / 350.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.0008062/0.109, allocations: 0.5455 MB / 423.1 MB, free: 7.242 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.386e-05/0.109, allocations: 8.031 kB / 423.1 MB, free: 7.234 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.591e-05/0.1091, allocations: 54.73 kB / 423.2 MB, free: 7.172 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001476/0.1092, allocations: 36.75 kB / 423.2 MB, free: 7.137 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003591/0.1096, allocations: 256.8 kB / 423.5 MB, free: 6.844 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.481e-05/0.1096, allocations: 12.38 kB / 423.5 MB, free: 6.832 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.099e-05/0.1096, allocations: 19.94 kB / 423.5 MB, free: 6.812 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003163/0.11, allocations: 165.1 kB / 423.7 MB, free: 6.645 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.643e-05/0.11, allocations: 3.953 kB / 423.7 MB, free: 6.641 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.915e-05/0.11, allocations: 11.94 kB / 423.7 MB, free: 6.629 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.234e-06/0.11, allocations: 4 kB / 423.7 MB, free: 6.625 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002482/0.1102, allocations: 115.9 kB / 423.8 MB, free: 6.512 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008665/0.1111, allocations: 0.5665 MB / 424.4 MB, free: 5.895 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003028/0.1114, allocations: 146.5 kB / 424.5 MB, free: 5.742 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001513/0.1116, allocations: 84.2 kB / 424.6 MB, free: 5.66 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.568e-05/0.1116, allocations: 4 kB / 424.6 MB, free: 5.656 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002442/0.1118, allocations: 118 kB / 424.7 MB, free: 5.531 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 1.493e-06/0.1118, allocations: 0 / 424.7 MB, free: 5.531 MB / 350.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005029/0.1123, allocations: 233.4 kB / 424.9 MB, free: 5.297 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.08e-05/0.1124, allocations: 55.36 kB / 425 MB, free: 5.23 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002621/0.1126, allocations: 257 kB / 425.2 MB, free: 4.969 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.832e-05/0.1127, allocations: 33.7 kB / 425.3 MB, free: 4.93 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001088/0.1128, allocations: 144.5 kB / 425.4 MB, free: 4.785 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.085e-05/0.1128, allocations: 67.42 kB / 425.5 MB, free: 4.719 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.244e-05/0.1129, allocations: 45.7 kB / 425.5 MB, free: 4.668 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001513/0.1131, allocations: 330.8 kB / 425.8 MB, free: 4.336 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001157/0.1132, allocations: 51.97 kB / 425.9 MB, free: 4.285 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001387/0.1133, allocations: 84 kB / 426 MB, free: 4.191 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002518/0.1136, allocations: 155.3 kB / 426.1 MB, free: 4.027 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.1136, allocations: 0 / 426.1 MB, free: 4.027 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000346/0.1139, allocations: 203.2 kB / 426.3 MB, free: 3.824 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.395e-05/0.1139, allocations: 4 kB / 426.3 MB, free: 3.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.319e-06/0.1139, allocations: 4.094 kB / 426.3 MB, free: 3.816 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.323e-05/0.114, allocations: 4 kB / 426.3 MB, free: 3.812 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002127/0.1142, allocations: 51.92 kB / 426.4 MB, free: 3.762 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.058e-05/0.1142, allocations: 7.938 kB / 426.4 MB, free: 3.754 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.466e-05/0.1143, allocations: 23.83 kB / 426.4 MB, free: 3.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.284e-05/0.1143, allocations: 4 kB / 426.4 MB, free: 3.727 MB / 350.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.0001314/0.1144, allocations: 145.8 kB / 426.6 MB, free: 3.574 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.082e-05/0.1145, allocations: 27.8 kB / 426.6 MB, free: 3.547 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.044e-05/0.1145, allocations: 30.19 kB / 426.6 MB, free: 3.516 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.41e-06/0.1145, allocations: 3.938 kB / 426.6 MB, free: 3.512 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.591e-06/0.1145, allocations: 4 kB / 426.6 MB, free: 3.508 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.1145, allocations: 3.984 kB / 426.6 MB, free: 3.504 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002813/0.1148, allocations: 289.4 kB / 426.9 MB, free: 3.172 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.1148, allocations: 0 / 426.9 MB, free: 3.172 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001733/0.115, allocations: 35.92 kB / 426.9 MB, free: 3.137 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.115, allocations: 0 / 426.9 MB, free: 3.137 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.555e-05/0.115, allocations: 4 kB / 427 MB, free: 3.133 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.787e-06/0.115, allocations: 3.938 kB / 427 MB, free: 3.129 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.115, allocations: 0 / 427 MB, free: 3.129 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004954/0.1155, allocations: 290.7 kB / 427.2 MB, free: 2.828 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.134e-05/0.1156, allocations: 96.98 kB / 427.3 MB, free: 2.715 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.46e-05/0.1156, allocations: 7.938 kB / 427.3 MB, free: 2.707 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.075e-05/0.1157, allocations: 15.92 kB / 427.4 MB, free: 2.691 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.467e-05/0.1157, allocations: 11.94 kB / 427.4 MB, free: 2.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.173e-05/0.1158, allocations: 12 kB / 427.4 MB, free: 2.668 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001732/0.1159, allocations: 184.5 kB / 427.6 MB, free: 2.484 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1159, allocations: 4 kB / 427.6 MB, free: 2.48 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002573/0.1162, allocations: 55.92 kB / 427.6 MB, free: 2.426 MB / 350.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.002038/0.1182, allocations: 1.121 MB / 428.7 MB, free: 1.449 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003009/0.1185, allocations: 141.3 kB / 428.9 MB, free: 1.312 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.1185, allocations: 0 / 428.9 MB, free: 1.312 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001294/0.1187, allocations: 67.91 kB / 428.9 MB, free: 1.246 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003143/0.119, allocations: 44.64 kB / 429 MB, free: 1.203 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002853/0.1218, allocations: 2.361 MB / 431.4 MB, free: 14.74 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003384/0.1222, allocations: 0.7519 MB / 432.1 MB, free: 13.96 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001029/0.1223, allocations: 29.92 kB / 432.1 MB, free: 13.93 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001056/0.1224, allocations: 71.41 kB / 432.2 MB, free: 13.86 MB / 366.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1224, allocations: 0 / 432.2 MB, free: 13.86 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02763/0.15, allocations: 5.348 MB / 437.6 MB, free: 8.594 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.764/7.914, allocations: 8.047 kB / 437.6 MB, free: 8.586 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_Motor_fmu --startTime=0 --stopTime=7200 --stepSize=0.01 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_Motor.fmu > Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/HeatTransfer/Examples/Motor/Motor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 655] Reference file matches [Calling sys.exit(0), Time elapsed: 28.161403174046427]