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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001248/0.001248, allocations: 110.5 kB / 17.73 MB, free: 5.359 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00125/0.00125, allocations: 187.1 kB / 18.66 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.408/1.408, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB 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.00223/0.00223, allocations: 55.92 kB / 328 MB, free: 3.836 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1008/0.103, allocations: 46.62 MB / 374.6 MB, free: 5.105 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.004368/0.1074, allocations: 2.228 MB / 376.9 MB, free: 2.863 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002239/0.1097, allocations: 0.9594 MB / 377.8 MB, free: 1.895 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001399/0.1099, allocations: 7.938 kB / 377.8 MB, free: 1.887 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004469/0.1104, allocations: 95.55 kB / 377.9 MB, free: 1.793 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004152/0.1108, allocations: 119.2 kB / 378 MB, free: 1.676 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004682/0.1113, allocations: 135.6 kB / 378.2 MB, free: 1.543 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004508/0.1117, allocations: 286.8 kB / 378.4 MB, free: 1.262 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002515/0.112, allocations: 80.58 kB / 378.5 MB, free: 1.184 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002117/0.1122, allocations: 115.6 kB / 378.6 MB, free: 1.07 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000251/0.1125, allocations: 127.5 kB / 378.8 MB, free: 0.9453 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.64e-05/0.1125, allocations: 20 kB / 378.8 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001728/0.1127, allocations: 43.94 kB / 378.8 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001089/0.1128, allocations: 63.75 kB / 378.9 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000169/0.113, allocations: 119.3 kB / 379 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005369/0.1136, allocations: 282.8 kB / 379.3 MB, free: 436 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.097e-06/0.1136, allocations: 4 kB / 379.3 MB, free: 432 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.1136, allocations: 0 / 379.3 MB, free: 432 kB / 318.1 MB Notification: Performance of Transformations before backend: time 7.234e-06/0.1136, allocations: 0 / 379.3 MB, free: 432 kB / 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.1846/0.2983, allocations: 0.5458 MB / 379.8 MB, free: 13.03 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.025e-05/0.2983, allocations: 10.28 kB / 379.8 MB, free: 13.03 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.344e-05/0.2984, allocations: 48.36 kB / 379.9 MB, free: 12.99 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001522/0.2985, allocations: 34.34 kB / 379.9 MB, free: 12.98 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003454/0.2989, allocations: 257.4 kB / 380.2 MB, free: 12.77 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.447e-05/0.2989, allocations: 11.31 kB / 380.2 MB, free: 12.77 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.786e-05/0.2989, allocations: 18.06 kB / 380.2 MB, free: 12.77 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003147/0.2993, allocations: 166.1 kB / 380.4 MB, free: 12.73 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.504e-05/0.2993, allocations: 4.703 kB / 380.4 MB, free: 12.72 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.93e-05/0.2993, allocations: 8.25 kB / 380.4 MB, free: 12.72 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.494e-06/0.2993, allocations: 5.062 kB / 380.4 MB, free: 12.72 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002413/0.2996, allocations: 114.2 kB / 380.5 MB, free: 12.72 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008159/0.3004, allocations: 0.5593 MB / 381.1 MB, free: 12.43 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002921/0.3007, allocations: 169 kB / 381.2 MB, free: 12.41 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001418/0.3009, allocations: 86.44 kB / 381.3 MB, free: 12.4 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.276e-05/0.3009, allocations: 3.641 kB / 381.3 MB, free: 12.4 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002171/0.3011, allocations: 118.7 kB / 381.4 MB, free: 12.35 MB / 318.1 MB Notification: Performance of pre-optimization done (n=20): time 1.813e-06/0.3011, allocations: 0 / 381.4 MB, free: 12.35 MB / 318.1 MB Notification: Performance of matching and sorting (n=20): time 0.0004782/0.3016, allocations: 236.8 kB / 381.7 MB, free: 12.3 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.494e-05/0.3016, allocations: 54.09 kB / 381.7 MB, free: 12.24 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002726/0.3019, allocations: 251.7 kB / 382 MB, free: 12.13 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.821e-05/0.302, allocations: 34.5 kB / 382 MB, free: 12.1 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.57e-05/0.302, allocations: 143.1 kB / 382.1 MB, free: 11.99 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.255e-05/0.3021, allocations: 76.88 kB / 382.2 MB, free: 11.93 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.3e-05/0.3022, allocations: 40.48 kB / 382.2 MB, free: 11.9 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.265e-05/0.3023, allocations: 336.5 kB / 382.6 MB, free: 11.58 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001386/0.3024, allocations: 54.05 kB / 382.6 MB, free: 11.56 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001391/0.3026, allocations: 94.73 kB / 382.7 MB, free: 11.5 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000262/0.3028, allocations: 140.7 kB / 382.9 MB, free: 11.43 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.3028, allocations: 3.812 kB / 382.9 MB, free: 11.43 MB / 318.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000405/0.3033, allocations: 209.8 kB / 383.1 MB, free: 11.32 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.911e-05/0.3033, allocations: 5.969 kB / 383.1 MB, free: 11.32 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.293e-06/0.3033, allocations: 1.094 kB / 383.1 MB, free: 11.32 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.786e-05/0.3033, allocations: 1.688 kB / 383.1 MB, free: 11.32 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000235/0.3036, allocations: 48.33 kB / 383.1 MB, free: 11.32 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.133e-06/0.3036, allocations: 3.344 kB / 383.1 MB, free: 11.32 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001029/0.3037, allocations: 18.56 kB / 383.1 MB, free: 11.31 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.007e-05/0.3037, allocations: 11.38 kB / 383.1 MB, free: 11.3 MB / 318.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.0001238/0.3038, allocations: 155.6 kB / 383.3 MB, free: 11.17 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.417e-05/0.3039, allocations: 22.94 kB / 383.3 MB, free: 11.16 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.27e-05/0.304, allocations: 28.77 kB / 383.3 MB, free: 11.14 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.279e-06/0.304, allocations: 5.344 kB / 383.4 MB, free: 11.14 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.367e-06/0.304, allocations: 3.391 kB / 383.4 MB, free: 11.14 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.593e-06/0.304, allocations: 1.312 kB / 383.4 MB, free: 11.14 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000281/0.3043, allocations: 292.2 kB / 383.6 MB, free: 10.89 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.3043, allocations: 0.5625 kB / 383.6 MB, free: 10.89 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001756/0.3045, allocations: 32.8 kB / 383.7 MB, free: 10.89 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.767e-06/0.3045, allocations: 1.859 kB / 383.7 MB, free: 10.89 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.646e-05/0.3045, allocations: 10.19 kB / 383.7 MB, free: 10.89 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.186e-06/0.3045, allocations: 1.219 kB / 383.7 MB, free: 10.89 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.3045, allocations: 4.828 kB / 383.7 MB, free: 10.88 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004542/0.305, allocations: 283.5 kB / 384 MB, free: 10.73 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.679e-05/0.305, allocations: 100.4 kB / 384.1 MB, free: 10.62 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.455e-05/0.3051, allocations: 5.734 kB / 384.1 MB, free: 10.62 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.36e-05/0.3052, allocations: 3.375 kB / 384.1 MB, free: 10.62 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.811e-05/0.3052, allocations: 22.75 kB / 384.1 MB, free: 10.61 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.915e-05/0.3052, allocations: 6.609 kB / 384.1 MB, free: 10.61 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000142/0.3054, allocations: 186.2 kB / 384.3 MB, free: 10.5 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3054, allocations: 0 / 384.3 MB, free: 10.5 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002628/0.3057, allocations: 61.98 kB / 384.4 MB, free: 10.48 MB / 318.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.001858/0.3075, allocations: 1.124 MB / 385.5 MB, free: 9.586 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003249/0.3079, allocations: 141.4 kB / 385.6 MB, free: 9.543 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.3079, allocations: 3.938 kB / 385.6 MB, free: 9.539 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001283/0.308, allocations: 78.45 kB / 385.7 MB, free: 9.512 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003397/0.3084, allocations: 56.97 kB / 385.7 MB, free: 9.477 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002387/0.3108, allocations: 2.378 MB / 388.1 MB, free: 7.809 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001892/0.311, allocations: 0.7462 MB / 388.9 MB, free: 7.109 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001174/0.3111, allocations: 27.72 kB / 388.9 MB, free: 7.105 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001019/0.3112, allocations: 72.11 kB / 389 MB, free: 7.055 MB / 318.1 MB Notification: Performance of SimCode: time 3.61e-07/0.3112, allocations: 0 / 389 MB, free: 7.055 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0276/0.3388, allocations: 5.272 MB / 394.2 MB, free: 6.074 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.354/8.693, allocations: 17.39 kB / 394.3 MB, free: 6.059 MB / 318.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Thermal_HeatTransfer_Examples_Motor.fmu > Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Thermal/HeatTransfer/Examples/Motor/Motor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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