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) 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 4.0.0+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001289/0.001289, allocations: 110.3 kB / 16.92 MB, free: 5.785 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.001204/0.001204, allocations: 191.3 kB / 17.85 MB, free: 5.164 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.306/1.306, allocations: 222.9 MB / 241.5 MB, free: 15.24 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00099/0.0009901, allocations: 43.83 kB / 300.7 MB, free: 5.727 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0787/0.07971, allocations: 49.46 MB / 350.2 MB, free: 4.27 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.003236/0.08298, allocations: 2.224 MB / 352.4 MB, free: 2.023 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001533/0.08453, allocations: 1.075 MB / 353.5 MB, free: 0.9414 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001106/0.08466, allocations: 0 / 353.5 MB, free: 0.9414 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003005/0.08498, allocations: 99.48 kB / 353.6 MB, free: 0.8438 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002901/0.08528, allocations: 119.3 kB / 353.7 MB, free: 0.7266 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003591/0.08565, allocations: 155.4 kB / 353.8 MB, free: 0.5742 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002721/0.08594, allocations: 278.9 kB / 354.1 MB, free: 308 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001691/0.08611, allocations: 89.06 kB / 354.2 MB, free: 208 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001404/0.08626, allocations: 115.6 kB / 354.3 MB, free: 92 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001676/0.08644, allocations: 123.5 kB / 354.4 MB, free: 15.97 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.257e-05/0.08648, allocations: 16 kB / 354.4 MB, free: 15.95 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001247/0.08661, allocations: 55.98 kB / 354.5 MB, free: 15.9 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.246e-05/0.08668, allocations: 51.84 kB / 354.5 MB, free: 15.85 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001042/0.08679, allocations: 123.3 kB / 354.7 MB, free: 15.73 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002925/0.08709, allocations: 279.4 kB / 354.9 MB, free: 15.45 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.08711, allocations: 0 / 354.9 MB, free: 15.45 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.08711, allocations: 0 / 354.9 MB, free: 15.45 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.736e-06/0.08713, allocations: 0 / 354.9 MB, free: 15.45 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.0006775/0.08781, allocations: 0.5381 MB / 355.5 MB, free: 14.87 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.397e-05/0.08785, allocations: 12.03 kB / 355.5 MB, free: 14.86 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.742e-05/0.0879, allocations: 54.72 kB / 355.5 MB, free: 14.79 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00013/0.08804, allocations: 32.56 kB / 355.6 MB, free: 14.76 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002487/0.08829, allocations: 256.7 kB / 355.8 MB, free: 14.47 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.435e-05/0.08832, allocations: 8.375 kB / 355.8 MB, free: 14.46 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.549e-05/0.08836, allocations: 23.88 kB / 355.9 MB, free: 14.44 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002825/0.08864, allocations: 169.1 kB / 356 MB, free: 14.27 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.254e-05/0.08867, allocations: 4 kB / 356 MB, free: 14.27 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.814e-05/0.08869, allocations: 15.94 kB / 356 MB, free: 14.25 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.172e-06/0.08871, allocations: 4 kB / 356 MB, free: 14.25 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002216/0.08893, allocations: 111.9 kB / 356.2 MB, free: 14.14 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007637/0.08971, allocations: 0.57 MB / 356.7 MB, free: 13.52 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002746/0.08999, allocations: 166.4 kB / 356.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000138/0.09014, allocations: 92.45 kB / 357 MB, free: 13.25 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.451e-05/0.09017, allocations: 4 kB / 357 MB, free: 13.25 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002352/0.09041, allocations: 119.3 kB / 357.1 MB, free: 13.12 MB / 302.1 MB Notification: Performance of pre-optimization done (n=20): time 1.473e-06/0.09043, allocations: 0 / 357.1 MB, free: 13.12 MB / 302.1 MB Notification: Performance of matching and sorting (n=20): time 0.0004413/0.09087, allocations: 236.3 kB / 357.3 MB, free: 12.89 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.667e-05/0.09092, allocations: 55.41 kB / 357.4 MB, free: 12.82 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002101/0.09113, allocations: 249 kB / 357.6 MB, free: 12.57 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.696e-05/0.09116, allocations: 25.7 kB / 357.7 MB, free: 12.54 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.66e-05/0.09125, allocations: 152.3 kB / 357.8 MB, free: 12.39 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.842e-05/0.0913, allocations: 63.05 kB / 357.9 MB, free: 12.32 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.014e-05/0.09137, allocations: 45.7 kB / 357.9 MB, free: 12.27 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001036/0.09148, allocations: 338.8 kB / 358.2 MB, free: 11.93 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001054/0.09159, allocations: 51.97 kB / 358.3 MB, free: 11.88 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001188/0.09172, allocations: 83.41 kB / 358.4 MB, free: 11.79 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002221/0.09195, allocations: 145 kB / 358.5 MB, free: 11.64 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.09196, allocations: 0 / 358.5 MB, free: 11.64 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003094/0.09227, allocations: 209.2 kB / 358.7 MB, free: 11.43 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.214e-05/0.09229, allocations: 4 kB / 358.7 MB, free: 11.42 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.0923, allocations: 4 kB / 358.7 MB, free: 11.42 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.154e-05/0.09232, allocations: 0 / 358.7 MB, free: 11.42 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001903/0.09251, allocations: 47.92 kB / 358.8 MB, free: 11.37 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.617e-06/0.09253, allocations: 12.03 kB / 358.8 MB, free: 11.36 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.759e-05/0.09263, allocations: 19.69 kB / 358.8 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.389e-05/0.09265, allocations: 12 kB / 358.8 MB, free: 11.33 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.0001144/0.09277, allocations: 141 kB / 358.9 MB, free: 11.18 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.075e-05/0.0928, allocations: 15.81 kB / 359 MB, free: 11.17 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.547e-05/0.09287, allocations: 34.17 kB / 359 MB, free: 11.13 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.678e-06/0.09288, allocations: 7.938 kB / 359 MB, free: 11.12 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.608e-06/0.09289, allocations: 0 / 359 MB, free: 11.12 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.0929, allocations: 0 / 359 MB, free: 11.12 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000236/0.09314, allocations: 285.4 kB / 359.3 MB, free: 10.8 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.09315, allocations: 0 / 359.3 MB, free: 10.8 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001649/0.09332, allocations: 39.92 kB / 359.3 MB, free: 10.76 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.879e-06/0.09333, allocations: 4 kB / 359.3 MB, free: 10.75 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.306e-05/0.09335, allocations: 0 / 359.3 MB, free: 10.75 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.186e-06/0.09336, allocations: 3.938 kB / 359.3 MB, free: 10.75 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.001e-06/0.09337, allocations: 0 / 359.3 MB, free: 10.75 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004347/0.09381, allocations: 296.6 kB / 359.6 MB, free: 10.44 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.381e-05/0.09388, allocations: 96.8 kB / 359.7 MB, free: 10.33 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.721e-05/0.09392, allocations: 15.94 kB / 359.7 MB, free: 10.31 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.553e-05/0.094, allocations: 4 kB / 359.7 MB, free: 10.31 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.924e-05/0.09405, allocations: 11.98 kB / 359.7 MB, free: 10.3 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.762e-05/0.09407, allocations: 7.984 kB / 359.8 MB, free: 10.29 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001436/0.09422, allocations: 184.5 kB / 359.9 MB, free: 10.11 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.09423, allocations: 0 / 359.9 MB, free: 10.11 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002488/0.09448, allocations: 55.94 kB / 360 MB, free: 10.06 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.001391/0.09588, allocations: 1.13 MB / 361.1 MB, free: 9.062 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000302/0.09619, allocations: 155.8 kB / 361.3 MB, free: 8.91 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.0962, allocations: 3.938 kB / 361.3 MB, free: 8.906 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001217/0.09633, allocations: 68.11 kB / 361.3 MB, free: 8.84 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003034/0.09664, allocations: 48.64 kB / 361.4 MB, free: 8.793 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002457/0.09911, allocations: 2.359 MB / 363.7 MB, free: 6.332 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002545/0.09937, allocations: 0.7519 MB / 364.5 MB, free: 5.555 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001023/0.09948, allocations: 29.92 kB / 364.5 MB, free: 5.523 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.609e-05/0.09959, allocations: 67.42 kB / 364.6 MB, free: 5.457 MB / 302.1 MB Notification: Performance of SimCode: time 3.1e-07/0.09959, allocations: 0 / 364.6 MB, free: 5.457 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02891/0.1285, allocations: 5.173 MB / 369.8 MB, free: 392 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.896/8.025, allocations: 11.97 kB / 369.8 MB, free: 384 kB / 302.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Thermal_HeatTransfer_Examples_Motor.fmu > Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_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