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.001218/0.001218, allocations: 116.6 kB / 18.49 MB, free: 4.566 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.001148/0.001148, allocations: 189 kB / 21.43 MB, free: 1.641 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.332/1.332, allocations: 225.6 MB / 249.8 MB, free: 3.492 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.Motor,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_Motor",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001457/0.001457, allocations: 47.92 kB / 366.3 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08742/0.08888, allocations: 52.15 MB / 418.5 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.003481/0.09236, allocations: 2.244 MB / 420.7 MB, free: 10.36 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001755/0.09412, allocations: 1.095 MB / 421.8 MB, free: 9.262 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.89e-05/0.09422, allocations: 0 / 421.8 MB, free: 9.262 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003168/0.09453, allocations: 95.5 kB / 421.9 MB, free: 9.168 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003058/0.09484, allocations: 119.3 kB / 422 MB, free: 9.051 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003601/0.0952, allocations: 147.5 kB / 422.2 MB, free: 8.906 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003418/0.09554, allocations: 286.8 kB / 422.4 MB, free: 8.625 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000168/0.09571, allocations: 72.59 kB / 422.5 MB, free: 8.551 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001489/0.09586, allocations: 111.6 kB / 422.6 MB, free: 8.441 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001866/0.09604, allocations: 127.5 kB / 422.7 MB, free: 8.316 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.703e-05/0.09608, allocations: 20 kB / 422.8 MB, free: 8.297 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000125/0.09621, allocations: 55.92 kB / 422.8 MB, free: 8.242 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.386e-05/0.09628, allocations: 51.83 kB / 422.9 MB, free: 8.191 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001236/0.0964, allocations: 115.4 kB / 423 MB, free: 8.078 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003668/0.09677, allocations: 286.8 kB / 423.3 MB, free: 7.797 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.317e-06/0.09677, allocations: 0 / 423.3 MB, free: 7.797 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.09677, allocations: 11.94 kB / 423.3 MB, free: 7.785 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.169e-06/0.09678, allocations: 0 / 423.3 MB, free: 7.785 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.0008272/0.09761, allocations: 0.5455 MB / 423.8 MB, free: 7.191 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.473e-05/0.09764, allocations: 8.031 kB / 423.8 MB, free: 7.184 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.416e-05/0.09766, allocations: 4.188 kB / 423.8 MB, free: 7.18 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.026e-05/0.09771, allocations: 54.73 kB / 423.9 MB, free: 7.117 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001302/0.09784, allocations: 36.73 kB / 423.9 MB, free: 7.082 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003551/0.09819, allocations: 260.8 kB / 424.2 MB, free: 6.785 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.765e-05/0.09822, allocations: 20.12 kB / 424.2 MB, free: 6.766 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.548e-05/0.09825, allocations: 12 kB / 424.2 MB, free: 6.754 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003175/0.09857, allocations: 169.2 kB / 424.4 MB, free: 6.582 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.557e-05/0.09859, allocations: 3.953 kB / 424.4 MB, free: 6.578 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.216e-05/0.09861, allocations: 8 kB / 424.4 MB, free: 6.57 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.274e-06/0.09862, allocations: 7.938 kB / 424.4 MB, free: 6.562 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002633/0.09888, allocations: 115.9 kB / 424.5 MB, free: 6.449 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001035/0.09992, allocations: 0.5587 MB / 425.1 MB, free: 5.84 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003176/0.1002, allocations: 154.5 kB / 425.2 MB, free: 5.68 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001578/0.1004, allocations: 83.7 kB / 425.3 MB, free: 5.598 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.511e-05/0.1004, allocations: 4 kB / 425.3 MB, free: 5.594 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002248/0.1006, allocations: 115.6 kB / 425.4 MB, free: 5.469 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 1.513e-06/0.1006, allocations: 0 / 425.4 MB, free: 5.469 MB / 350.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005222/0.1012, allocations: 231.7 kB / 425.6 MB, free: 5.238 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.67e-05/0.1012, allocations: 59.36 kB / 425.7 MB, free: 5.168 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002606/0.1015, allocations: 260.9 kB / 426 MB, free: 4.902 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.259e-05/0.1015, allocations: 29.7 kB / 426 MB, free: 4.867 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001027/0.1016, allocations: 144.5 kB / 426.1 MB, free: 4.723 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.492e-05/0.1017, allocations: 71.41 kB / 426.2 MB, free: 4.652 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.885e-05/0.1017, allocations: 41.72 kB / 426.2 MB, free: 4.605 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001434/0.1019, allocations: 334.8 kB / 426.6 MB, free: 4.27 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001171/0.102, allocations: 47.97 kB / 426.6 MB, free: 4.223 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001438/0.1021, allocations: 92 kB / 426.7 MB, free: 4.121 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002573/0.1024, allocations: 145.2 kB / 426.8 MB, free: 3.969 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.1024, allocations: 0 / 426.8 MB, free: 3.969 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003631/0.1028, allocations: 205.5 kB / 427 MB, free: 3.762 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.376e-05/0.1028, allocations: 15.94 kB / 427.1 MB, free: 3.746 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.608e-06/0.1028, allocations: 0 / 427.1 MB, free: 3.746 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.088e-05/0.1028, allocations: 7.922 kB / 427.1 MB, free: 3.738 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002029/0.103, allocations: 47.92 kB / 427.1 MB, free: 3.691 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.07e-06/0.103, allocations: 0 / 427.1 MB, free: 3.691 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.792e-05/0.1031, allocations: 19.84 kB / 427.1 MB, free: 3.672 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.411e-05/0.1031, allocations: 8 kB / 427.1 MB, free: 3.664 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.0001379/0.1033, allocations: 145.8 kB / 427.3 MB, free: 3.512 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.876e-05/0.1033, allocations: 23.86 kB / 427.3 MB, free: 3.488 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.846e-05/0.1034, allocations: 30.17 kB / 427.3 MB, free: 3.457 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.115e-06/0.1034, allocations: 7.938 kB / 427.3 MB, free: 3.449 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.1034, allocations: 0 / 427.3 MB, free: 3.449 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.21e-06/0.1034, allocations: 3.984 kB / 427.3 MB, free: 3.445 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002845/0.1037, allocations: 285.4 kB / 427.6 MB, free: 3.117 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.1037, allocations: 0 / 427.6 MB, free: 3.117 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001772/0.1038, allocations: 39.92 kB / 427.7 MB, free: 3.078 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.884e-06/0.1038, allocations: 0 / 427.7 MB, free: 3.078 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.048e-05/0.1039, allocations: 4 kB / 427.7 MB, free: 3.074 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.063e-05/0.1039, allocations: 7.938 kB / 427.7 MB, free: 3.066 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.1039, allocations: 8 kB / 427.7 MB, free: 3.059 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004998/0.1044, allocations: 284.9 kB / 428 MB, free: 2.766 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.566e-05/0.1044, allocations: 92.98 kB / 428 MB, free: 2.656 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.063e-05/0.1045, allocations: 7.938 kB / 428.1 MB, free: 2.648 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.982e-05/0.1046, allocations: 7.938 kB / 428.1 MB, free: 2.641 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.914e-05/0.1046, allocations: 23.86 kB / 428.1 MB, free: 2.617 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.011e-05/0.1046, allocations: 8 kB / 428.1 MB, free: 2.609 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001727/0.1048, allocations: 188.5 kB / 428.3 MB, free: 2.422 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1048, allocations: 0 / 428.3 MB, free: 2.422 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002688/0.1051, allocations: 51.94 kB / 428.3 MB, free: 2.371 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.002095/0.1072, allocations: 1.12 MB / 429.5 MB, free: 1.383 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000299/0.1075, allocations: 143.8 kB / 429.6 MB, free: 1.242 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.1075, allocations: 0 / 429.6 MB, free: 1.242 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001385/0.1076, allocations: 65.64 kB / 429.7 MB, free: 1.18 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003149/0.1079, allocations: 46.52 kB / 429.7 MB, free: 1.137 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002949/0.1109, allocations: 2.366 MB / 432.1 MB, free: 14.67 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003915/0.1113, allocations: 0.748 MB / 432.8 MB, free: 13.89 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001018/0.1114, allocations: 29.94 kB / 432.8 MB, free: 13.86 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001148/0.1115, allocations: 75.41 kB / 432.9 MB, free: 13.79 MB / 366.1 MB Notification: Performance of SimCode: time 3.5e-07/0.1115, allocations: 0 / 432.9 MB, free: 13.79 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02415/0.1356, allocations: 5.384 MB / 438.3 MB, free: 8.508 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.005/8.141, allocations: 3.75 kB / 438.3 MB, free: 8.508 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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/HeatTransfer/Examples/Motor/Motor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/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 651] Reference file matches [Calling sys.exit(0), Time elapsed: 36.91442230500979]