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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001096/0.001096, allocations: 106 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001215/0.001215, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.345/1.345, allocations: 227.4 MB / 246.8 MB, free: 10.57 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001178/0.001178, allocations: 62.27 kB / 307 MB, free: 0.5273 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08963/0.09083, allocations: 50.52 MB / 357.6 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.003817/0.09469, allocations: 2.251 MB / 359.8 MB, free: 11.74 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002064/0.09679, allocations: 1.231 MB / 361.1 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001266/0.09693, allocations: 4 kB / 361.1 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003639/0.09734, allocations: 91.5 kB / 361.1 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004096/0.09776, allocations: 167 kB / 361.3 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000251/0.09802, allocations: 115.6 kB / 361.4 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003381/0.09837, allocations: 294.8 kB / 361.7 MB, free: 9.844 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002141/0.0986, allocations: 84.56 kB / 361.8 MB, free: 9.758 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001525/0.09876, allocations: 111.6 kB / 361.9 MB, free: 9.648 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000192/0.09896, allocations: 135.4 kB / 362 MB, free: 9.516 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.818e-05/0.09901, allocations: 24 kB / 362.1 MB, free: 9.492 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001371/0.09915, allocations: 47.98 kB / 362.1 MB, free: 9.445 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.492e-05/0.09925, allocations: 55.81 kB / 362.2 MB, free: 9.391 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001271/0.09939, allocations: 115.4 kB / 362.3 MB, free: 9.277 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003794/0.09977, allocations: 287.3 kB / 362.6 MB, free: 8.996 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.09979, allocations: 0 / 362.6 MB, free: 8.996 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.0998, allocations: 0 / 362.6 MB, free: 8.996 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.103e-06/0.09981, allocations: 4 kB / 362.6 MB, free: 8.992 MB / 302.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.0009247/0.1007, allocations: 0.5574 MB / 363.1 MB, free: 8.387 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.118e-05/0.1008, allocations: 8.031 kB / 363.1 MB, free: 8.379 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.744e-05/0.1009, allocations: 50.73 kB / 363.2 MB, free: 8.32 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001497/0.101, allocations: 28.64 kB / 363.2 MB, free: 8.293 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003421/0.1014, allocations: 263.4 kB / 363.5 MB, free: 7.996 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.098e-05/0.1014, allocations: 12.38 kB / 363.5 MB, free: 7.984 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.391e-05/0.1015, allocations: 23.94 kB / 363.5 MB, free: 7.961 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003122/0.1018, allocations: 161.6 kB / 363.7 MB, free: 7.797 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.221e-05/0.1018, allocations: 0 / 363.7 MB, free: 7.797 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.014e-05/0.1018, allocations: 8 kB / 363.7 MB, free: 7.789 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.983e-06/0.1018, allocations: 4 kB / 363.7 MB, free: 7.785 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002315/0.1021, allocations: 119.7 kB / 363.8 MB, free: 7.668 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008333/0.1029, allocations: 0.5702 MB / 364.3 MB, free: 7.047 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002967/0.1032, allocations: 162.5 kB / 364.5 MB, free: 6.879 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001466/0.1034, allocations: 88.77 kB / 364.6 MB, free: 6.789 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.852e-05/0.1034, allocations: 4 kB / 364.6 MB, free: 6.785 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002859/0.1037, allocations: 121.8 kB / 364.7 MB, free: 6.656 MB / 302.1 MB Notification: Performance of pre-optimization done (n=20): time 1.673e-06/0.1037, allocations: 0 / 364.7 MB, free: 6.656 MB / 302.1 MB Notification: Performance of matching and sorting (n=20): time 0.0004951/0.1042, allocations: 229.6 kB / 364.9 MB, free: 6.426 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.758e-05/0.1043, allocations: 59.34 kB / 365 MB, free: 6.355 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002516/0.1045, allocations: 253 kB / 365.2 MB, free: 6.098 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.465e-05/0.1046, allocations: 33.7 kB / 365.3 MB, free: 6.059 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001038/0.1047, allocations: 144.3 kB / 365.4 MB, free: 5.914 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.03e-05/0.1047, allocations: 75.03 kB / 365.5 MB, free: 5.84 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.582e-05/0.1048, allocations: 41.61 kB / 365.5 MB, free: 5.793 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001365/0.105, allocations: 342.8 kB / 365.9 MB, free: 5.449 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001085/0.1051, allocations: 47.98 kB / 365.9 MB, free: 5.402 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001294/0.1052, allocations: 88.42 kB / 366 MB, free: 5.305 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002517/0.1055, allocations: 151.4 kB / 366.2 MB, free: 5.145 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.908e-06/0.1055, allocations: 4 kB / 366.2 MB, free: 5.141 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003279/0.1058, allocations: 193.3 kB / 366.3 MB, free: 4.945 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.645e-05/0.1059, allocations: 4 kB / 366.3 MB, free: 4.941 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.14e-06/0.1059, allocations: 0 / 366.3 MB, free: 4.941 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.511e-05/0.1059, allocations: 4 kB / 366.4 MB, free: 4.938 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002113/0.1061, allocations: 59.94 kB / 366.4 MB, free: 4.879 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.814e-06/0.1061, allocations: 4 kB / 366.4 MB, free: 4.875 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.029e-05/0.1062, allocations: 15.75 kB / 366.4 MB, free: 4.859 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.44e-05/0.1062, allocations: 8 kB / 366.4 MB, free: 4.852 MB / 302.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.0001477/0.1064, allocations: 153.2 kB / 366.6 MB, free: 4.695 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.448e-05/0.1064, allocations: 23.72 kB / 366.6 MB, free: 4.672 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.103e-05/0.1065, allocations: 30.17 kB / 366.6 MB, free: 4.641 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.811e-06/0.1065, allocations: 7.938 kB / 366.6 MB, free: 4.633 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.868e-06/0.1065, allocations: 4 kB / 366.7 MB, free: 4.629 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.478e-06/0.1065, allocations: 0 / 366.7 MB, free: 4.629 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002841/0.1068, allocations: 297.4 kB / 366.9 MB, free: 4.289 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.1068, allocations: 0 / 366.9 MB, free: 4.289 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001814/0.107, allocations: 35.92 kB / 367 MB, free: 4.254 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.658e-06/0.107, allocations: 4 kB / 367 MB, free: 4.25 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.559e-05/0.1071, allocations: 4 kB / 367 MB, free: 4.246 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.966e-06/0.1071, allocations: 3.938 kB / 367 MB, free: 4.242 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.1071, allocations: 0 / 367 MB, free: 4.242 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004584/0.1075, allocations: 289 kB / 367.3 MB, free: 3.945 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.426e-05/0.1076, allocations: 96.84 kB / 367.4 MB, free: 3.832 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.478e-05/0.1076, allocations: 7.938 kB / 367.4 MB, free: 3.824 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.703e-05/0.1077, allocations: 4 kB / 367.4 MB, free: 3.82 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.171e-05/0.1078, allocations: 11.98 kB / 367.4 MB, free: 3.809 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.018e-05/0.1078, allocations: 15.92 kB / 367.4 MB, free: 3.793 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001662/0.108, allocations: 188.5 kB / 367.6 MB, free: 3.609 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.108, allocations: 0 / 367.6 MB, free: 3.609 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002846/0.1083, allocations: 59.84 kB / 367.6 MB, free: 3.551 MB / 302.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.001546/0.1098, allocations: 1.121 MB / 368.8 MB, free: 2.539 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000343/0.1102, allocations: 159.4 kB / 368.9 MB, free: 2.387 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.1102, allocations: 4.188 kB / 368.9 MB, free: 2.383 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001308/0.1103, allocations: 74.14 kB / 369 MB, free: 2.312 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000332/0.1107, allocations: 44.39 kB / 369 MB, free: 2.27 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1454/0.2561, allocations: 2.374 MB / 371.4 MB, free: 19.3 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001934/0.2563, allocations: 0.7546 MB / 372.2 MB, free: 18.6 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001605/0.2565, allocations: 25.58 kB / 372.2 MB, free: 18.6 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001184/0.2566, allocations: 73.98 kB / 372.3 MB, free: 18.59 MB / 302.1 MB Notification: Performance of SimCode: time 4.6e-07/0.2566, allocations: 2.531 kB / 372.3 MB, free: 18.59 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02489/0.2815, allocations: 5.246 MB / 377.5 MB, free: 18.01 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.494/7.775, allocations: 17.38 kB / 377.5 MB, free: 18.01 MB / 302.1 MB (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) diffSimulationResults("Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor_res.csv","/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_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[1440025]=7200.000000 File[98317]=1024.060000 " Variables in the reference:time,core.T,winding.T Variables in the result:time,core.T,winding.T