Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001644/0.001644, allocations: 122.2 kB / 18.5 MB, free: 4.562 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.001656/0.001656, allocations: 215.1 kB / 21.45 MB, free: 1.617 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.372/1.372, allocations: 230.6 MB / 254.8 MB, free: 15.23 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4_1_0_Modelica_Thermal_HeatTransfer_Examples_Motor",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.Motor,fileNamePrefix="Modelica_4_1_0_Modelica_Thermal_HeatTransfer_Examples_Motor",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001942/0.001942, allocations: 51.94 kB / 373.7 MB, free: 10.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1056/0.1076, allocations: 53.34 MB / 427 MB, free: 4.836 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.00365/0.1112, allocations: 2.266 MB / 429.3 MB, free: 2.555 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002339/0.1135, allocations: 1.227 MB / 430.5 MB, free: 1.32 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001183/0.1137, allocations: 7.938 kB / 430.5 MB, free: 1.312 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003781/0.114, allocations: 91.5 kB / 430.6 MB, free: 1.223 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004259/0.1145, allocations: 159.1 kB / 430.8 MB, free: 1.066 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002913/0.1148, allocations: 119.6 kB / 430.9 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003904/0.1152, allocations: 294.7 kB / 431.2 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002115/0.1154, allocations: 68.59 kB / 431.2 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001714/0.1155, allocations: 119.6 kB / 431.3 MB, free: 484 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002086/0.1157, allocations: 135.4 kB / 431.5 MB, free: 348 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.424e-05/0.1158, allocations: 19.94 kB / 431.5 MB, free: 328 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001366/0.1159, allocations: 51.98 kB / 431.5 MB, free: 276 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.45e-05/0.116, allocations: 55.77 kB / 431.6 MB, free: 220 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001438/0.1161, allocations: 119.3 kB / 431.7 MB, free: 100 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003991/0.1165, allocations: 294.8 kB / 432 MB, free: 15.81 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.1165, allocations: 0 / 432 MB, free: 15.81 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1165, allocations: 4 kB / 432 MB, free: 15.8 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.382e-06/0.1166, allocations: 0 / 432 MB, free: 15.8 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.0009043/0.1175, allocations: 0.5647 MB / 432.6 MB, free: 15.19 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.627e-05/0.1175, allocations: 8.031 kB / 432.6 MB, free: 15.18 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.848e-05/0.1175, allocations: 8.188 kB / 432.6 MB, free: 15.18 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.931e-05/0.1176, allocations: 50.73 kB / 432.6 MB, free: 15.12 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001311/0.1177, allocations: 36.73 kB / 432.7 MB, free: 15.08 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003523/0.118, allocations: 255.9 kB / 432.9 MB, free: 14.79 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.012e-05/0.1181, allocations: 24.06 kB / 432.9 MB, free: 14.77 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.681e-05/0.1181, allocations: 12 kB / 433 MB, free: 14.76 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003289/0.1185, allocations: 161.4 kB / 433.1 MB, free: 14.59 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.549e-05/0.1185, allocations: 3.984 kB / 433.1 MB, free: 14.59 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.954e-05/0.1185, allocations: 4 kB / 433.1 MB, free: 14.59 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.124e-06/0.1185, allocations: 4 kB / 433.1 MB, free: 14.58 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002554/0.1188, allocations: 127.7 kB / 433.2 MB, free: 14.46 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009327/0.1197, allocations: 0.5625 MB / 433.8 MB, free: 13.84 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003344/0.12, allocations: 150.5 kB / 434 MB, free: 13.69 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001613/0.1202, allocations: 80.83 kB / 434 MB, free: 13.61 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.018e-05/0.1202, allocations: 4.344 kB / 434 MB, free: 13.6 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002397/0.1205, allocations: 115.2 kB / 434.2 MB, free: 13.48 MB / 366.1 MB Notification: Performance of pre-optimization done (n=20): time 1.532e-06/0.1205, allocations: 0 / 434.2 MB, free: 13.48 MB / 366.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005337/0.121, allocations: 231 kB / 434.4 MB, free: 13.25 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.841e-05/0.121, allocations: 55.41 kB / 434.4 MB, free: 13.18 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000294/0.1213, allocations: 264.9 kB / 434.7 MB, free: 12.91 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.775e-05/0.1214, allocations: 37.64 kB / 434.7 MB, free: 12.87 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001085/0.1215, allocations: 152.4 kB / 434.9 MB, free: 12.71 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.712e-05/0.1215, allocations: 67.42 kB / 434.9 MB, free: 12.65 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.179e-05/0.1216, allocations: 49.66 kB / 435 MB, free: 12.59 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001525/0.1218, allocations: 330.8 kB / 435.3 MB, free: 12.26 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001195/0.1219, allocations: 51.97 kB / 435.4 MB, free: 12.21 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00014/0.122, allocations: 91.34 kB / 435.5 MB, free: 12.11 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002547/0.1223, allocations: 143.4 kB / 435.6 MB, free: 11.96 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.1223, allocations: 0 / 435.6 MB, free: 11.96 MB / 366.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003551/0.1226, allocations: 211.2 kB / 435.8 MB, free: 11.75 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.371e-05/0.1226, allocations: 8.094 kB / 435.8 MB, free: 11.74 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.1227, allocations: 4 kB / 435.8 MB, free: 11.73 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.654e-05/0.1227, allocations: 7.875 kB / 435.8 MB, free: 11.73 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002056/0.1229, allocations: 43.92 kB / 435.9 MB, free: 11.68 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.777e-06/0.1229, allocations: 4 kB / 435.9 MB, free: 11.68 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.111e-05/0.123, allocations: 15.89 kB / 435.9 MB, free: 11.66 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.737e-05/0.123, allocations: 11.98 kB / 435.9 MB, free: 11.65 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.0001449/0.1231, allocations: 143.8 kB / 436 MB, free: 11.5 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.92e-05/0.1232, allocations: 19.86 kB / 436.1 MB, free: 11.48 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.55e-05/0.1233, allocations: 34.17 kB / 436.1 MB, free: 11.45 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.432e-06/0.1233, allocations: 7.938 kB / 436.1 MB, free: 11.44 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/0.1233, allocations: 0 / 436.1 MB, free: 11.44 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/0.1233, allocations: 3.984 kB / 436.1 MB, free: 11.44 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003055/0.1236, allocations: 285.4 kB / 436.4 MB, free: 11.11 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.223e-06/0.1236, allocations: 0 / 436.4 MB, free: 11.11 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001746/0.1238, allocations: 35.98 kB / 436.4 MB, free: 11.07 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.834e-06/0.1238, allocations: 0 / 436.4 MB, free: 11.07 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.653e-05/0.1238, allocations: 7.984 kB / 436.4 MB, free: 11.07 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.226e-06/0.1238, allocations: 11.92 kB / 436.4 MB, free: 11.05 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.1238, allocations: 0 / 436.4 MB, free: 11.05 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005063/0.1243, allocations: 289.8 kB / 436.7 MB, free: 10.75 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.839e-05/0.1244, allocations: 92.98 kB / 436.8 MB, free: 10.64 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.629e-05/0.1244, allocations: 15.94 kB / 436.8 MB, free: 10.63 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.594e-05/0.1245, allocations: 3.984 kB / 436.8 MB, free: 10.62 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.039e-05/0.1245, allocations: 15.98 kB / 436.8 MB, free: 10.61 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.748e-05/0.1246, allocations: 4 kB / 436.8 MB, free: 10.61 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001862/0.1247, allocations: 204.5 kB / 437 MB, free: 10.41 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1247, allocations: 0 / 437 MB, free: 10.41 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002865/0.125, allocations: 55.89 kB / 437.1 MB, free: 10.35 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.002162/0.1272, allocations: 1.121 MB / 438.2 MB, free: 9.367 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003108/0.1275, allocations: 143 kB / 438.4 MB, free: 9.23 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.1275, allocations: 0 / 438.4 MB, free: 9.23 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001423/0.1276, allocations: 67.91 kB / 438.4 MB, free: 9.164 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003369/0.128, allocations: 46.28 kB / 438.5 MB, free: 9.121 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003119/0.1311, allocations: 2.402 MB / 440.9 MB, free: 6.621 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004292/0.1315, allocations: 0.748 MB / 441.6 MB, free: 5.844 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001057/0.1316, allocations: 29.89 kB / 441.7 MB, free: 5.812 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001196/0.1318, allocations: 79.34 kB / 441.7 MB, free: 5.734 MB / 366.1 MB Notification: Performance of SimCode: time 4.91e-07/0.1318, allocations: 0 / 441.7 MB, free: 5.734 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02402/0.1558, allocations: 5.435 MB / 447.2 MB, free: 396 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.927/8.083, allocations: 12.44 kB / 447.2 MB, free: 384 kB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; mkfifo Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe >> ../files/Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.Motor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.Motor_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Thermal_HeatTransfer_Examples_Motor_fmu --startTime=0 --stopTime=7200 --stepSize=0.01 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Thermal_HeatTransfer_Examples_Motor.fmu > Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.Motor_res.mat","/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_4.1.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: 37.07667919702362]