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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001095/0.001095, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001268/0.001268, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8586/0.8586, allocations: 177 MB / 204.1 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 179] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.613e-06/1.613e-06, allocations: 0 / 324.5 MB, free: 15.92 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.086e-05/1.247e-05, allocations: 3.266 kB / 324.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.002145/0.002157, allocations: 2.16 MB / 326.7 MB, free: 13.73 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001318/0.003475, allocations: 1.172 MB / 327.8 MB, free: 12.55 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001029/0.003578, allocations: 7.938 kB / 327.8 MB, free: 12.55 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002988/0.003877, allocations: 91.45 kB / 327.9 MB, free: 12.46 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003339/0.004211, allocations: 171 kB / 328.1 MB, free: 12.29 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002057/0.004416, allocations: 127.4 kB / 328.2 MB, free: 12.16 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002397/0.004656, allocations: 302.6 kB / 328.5 MB, free: 11.87 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001354/0.004792, allocations: 64.56 kB / 328.6 MB, free: 11.8 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000136/0.004928, allocations: 163.6 kB / 328.7 MB, free: 11.64 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001457/0.005073, allocations: 103.7 kB / 328.8 MB, free: 11.54 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.477e-05/0.005098, allocations: 20 kB / 328.9 MB, free: 11.52 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.187e-05/0.00519, allocations: 55.86 kB / 328.9 MB, free: 11.47 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.049e-05/0.00525, allocations: 63.75 kB / 329 MB, free: 11.41 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.964e-05/0.00531, allocations: 79.83 kB / 329 MB, free: 11.33 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002477/0.005558, allocations: 295 kB / 329.3 MB, free: 11.04 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.184e-06/0.00556, allocations: 0 / 329.3 MB, free: 11.04 MB / 298.7 MB Notification: Performance of FrontEnd: time 6.81e-07/0.005561, allocations: 0 / 329.3 MB, free: 11.04 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.127e-06/0.005565, allocations: 0 / 329.3 MB, free: 11.04 MB / 298.7 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.0005552/0.00612, allocations: 489.4 kB / 329.8 MB, free: 10.53 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.777e-05/0.006158, allocations: 11.98 kB / 329.8 MB, free: 10.52 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.865e-05/0.006196, allocations: 50.73 kB / 329.9 MB, free: 10.46 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.106e-05/0.006287, allocations: 32.75 kB / 329.9 MB, free: 10.43 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002196/0.006507, allocations: 201.2 kB / 330.1 MB, free: 10.21 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.679e-05/0.006524, allocations: 12.38 kB / 330.1 MB, free: 10.2 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.793e-05/0.006552, allocations: 20.31 kB / 330.1 MB, free: 10.18 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002115/0.006763, allocations: 162.2 kB / 330.3 MB, free: 10.01 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.033e-05/0.006773, allocations: 192 / 330.3 MB, free: 10.01 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.62e-05/0.00679, allocations: 12.12 kB / 330.3 MB, free: 10 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-06/0.006795, allocations: 4 kB / 330.3 MB, free: 9.996 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001751/0.00697, allocations: 123.7 kB / 330.4 MB, free: 9.875 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000548/0.007518, allocations: 0.4954 MB / 330.9 MB, free: 9.336 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002059/0.007724, allocations: 161.2 kB / 331.1 MB, free: 9.172 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.224e-05/0.007816, allocations: 81.17 kB / 331.2 MB, free: 9.09 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.465e-05/0.007831, allocations: 0 / 331.2 MB, free: 9.09 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000147/0.007978, allocations: 123.2 kB / 331.3 MB, free: 8.957 MB / 298.7 MB Notification: Performance of pre-optimization done (n=20): time 1.173e-06/0.007979, allocations: 0 / 331.3 MB, free: 8.957 MB / 298.7 MB Notification: Performance of matching and sorting (n=20): time 0.0003173/0.008296, allocations: 248.5 kB / 331.5 MB, free: 8.711 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.853e-05/0.008325, allocations: 59.39 kB / 331.6 MB, free: 8.641 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001728/0.008498, allocations: 261.8 kB / 331.8 MB, free: 8.379 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.625e-05/0.008514, allocations: 37.64 kB / 331.9 MB, free: 8.336 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.718e-05/0.008581, allocations: 152.3 kB / 332 MB, free: 8.184 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.95e-05/0.008621, allocations: 71.39 kB / 332.1 MB, free: 8.113 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.479e-05/0.008666, allocations: 41.7 kB / 332.1 MB, free: 8.066 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.974e-05/0.008745, allocations: 334.8 kB / 332.5 MB, free: 7.73 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.752e-05/0.008813, allocations: 51.98 kB / 332.5 MB, free: 7.68 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.827e-05/0.008901, allocations: 91.39 kB / 332.6 MB, free: 7.578 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001599/0.009061, allocations: 155.3 kB / 332.8 MB, free: 7.414 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.009063, allocations: 0 / 332.8 MB, free: 7.414 MB / 298.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002075/0.00927, allocations: 212.3 kB / 333 MB, free: 7.203 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.08e-05/0.009281, allocations: 4 kB / 333 MB, free: 7.199 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/0.009285, allocations: 4 kB / 333 MB, free: 7.195 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.01e-05/0.009296, allocations: 96 / 333 MB, free: 7.195 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001236/0.009419, allocations: 51.91 kB / 333 MB, free: 7.145 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.1e-06/0.009424, allocations: 4 kB / 333 MB, free: 7.141 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.143e-05/0.009476, allocations: 15.89 kB / 333 MB, free: 7.125 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.448e-06/0.009485, allocations: 8 kB / 333 MB, free: 7.117 MB / 298.7 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 8.794e-05/0.009573, allocations: 145.8 kB / 333.2 MB, free: 6.965 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.152e-05/0.009595, allocations: 27.81 kB / 333.2 MB, free: 6.938 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002388/0.009833, allocations: 219.6 kB / 333.4 MB, free: 6.719 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/0.009835, allocations: 0 / 333.4 MB, free: 6.719 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.968e-06/0.009839, allocations: 4 kB / 333.4 MB, free: 6.715 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.009843, allocations: 7.984 kB / 333.4 MB, free: 6.707 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001818/0.01003, allocations: 252.5 kB / 333.7 MB, free: 6.418 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.764e-06/0.01003, allocations: 3.984 kB / 333.7 MB, free: 6.414 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001019/0.01013, allocations: 43.92 kB / 333.7 MB, free: 6.371 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.01013, allocations: 0 / 333.7 MB, free: 6.371 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.063e-05/0.01014, allocations: 4 kB / 333.7 MB, free: 6.367 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.61e-07/0.01014, allocations: 0 / 333.7 MB, free: 6.367 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.01014, allocations: 0 / 333.7 MB, free: 6.367 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003173/0.01046, allocations: 305.9 kB / 334 MB, free: 6.051 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.484e-05/0.01048, allocations: 27.81 kB / 334.1 MB, free: 6.023 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.985e-05/0.0105, allocations: 12.06 kB / 334.1 MB, free: 6.012 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.485e-05/0.01054, allocations: 0 / 334.1 MB, free: 6.012 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.093e-05/0.01057, allocations: 15.97 kB / 334.1 MB, free: 5.996 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.3e-05/0.01058, allocations: 8 kB / 334.1 MB, free: 5.988 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001428/0.01073, allocations: 205.1 kB / 334.3 MB, free: 5.785 MB / 298.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.01073, allocations: 3.938 kB / 334.3 MB, free: 5.781 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001861/0.01091, allocations: 63.83 kB / 334.4 MB, free: 5.719 MB / 298.7 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.nextTimeEvent,lossTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 20 * 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.001044/0.01196, allocations: 1.158 MB / 335.5 MB, free: 4.684 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001953/0.01215, allocations: 151.8 kB / 335.7 MB, free: 4.535 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.413e-06/0.01215, allocations: 0 / 335.7 MB, free: 4.535 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.019e-05/0.01223, allocations: 71.91 kB / 335.7 MB, free: 4.465 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002036/0.01244, allocations: 54.72 kB / 335.8 MB, free: 4.418 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001897/0.01433, allocations: 2.377 MB / 338.2 MB, free: 1.926 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.188e-05/0.01442, allocations: 138.2 kB / 338.3 MB, free: 1.77 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 7.233e-05/0.01449, allocations: 37.86 kB / 338.3 MB, free: 1.73 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.77e-05/0.01457, allocations: 76.47 kB / 338.4 MB, free: 1.656 MB / 298.7 MB Notification: Performance of SimCode: time 6.12e-07/0.01457, allocations: 0 / 338.4 MB, free: 1.656 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01672/0.03128, allocations: 6.379 MB / 344.8 MB, free: 11.32 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.995/7.026, allocations: 3.984 kB / 344.8 MB, free: 11.31 MB / 314.7 MB " [Timeout remaining time 653] (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 1 Modelica_trunk_Modelica_Thermal_HeatTransfer_Examples_Motor.fmu > Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Thermal/HeatTransfer/Examples/Motor/Motor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 656] "" Variables in the reference:time,core.T,winding.T Variables in the result:time,core.T,winding.T [Calling sys.exit(0), Time elapsed: 13.461365889757872]