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.001113/0.001113, allocations: 117.7 kB / 17.78 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00104/0.00104, allocations: 199.8 kB / 18.73 MB, free: 4.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.279/1.279, allocations: 227.4 MB / 246.9 MB, free: 10.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001057/0.001057, allocations: 59.91 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2498/0.2509, allocations: 50.55 MB / 408.7 MB, free: 1.508 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.003088/0.254, allocations: 2.246 MB / 411 MB, free: 15.25 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001698/0.2557, allocations: 1.223 MB / 412.2 MB, free: 14.02 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.061e-05/0.2558, allocations: 7.938 kB / 412.2 MB, free: 14.01 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003106/0.2562, allocations: 87.5 kB / 412.3 MB, free: 13.93 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003513/0.2565, allocations: 171.1 kB / 412.5 MB, free: 13.76 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002384/0.2568, allocations: 115.6 kB / 412.6 MB, free: 13.64 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002878/0.2571, allocations: 294.8 kB / 412.9 MB, free: 13.36 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001859/0.2573, allocations: 88.58 kB / 413 MB, free: 13.27 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001313/0.2574, allocations: 111.6 kB / 413.1 MB, free: 13.16 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000169/0.2576, allocations: 131.4 kB / 413.2 MB, free: 13.03 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.869e-05/0.2576, allocations: 20 kB / 413.2 MB, free: 13.01 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001121/0.2577, allocations: 44 kB / 413.3 MB, free: 12.96 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.84e-05/0.2578, allocations: 59.75 kB / 413.3 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001152/0.2579, allocations: 123.3 kB / 413.4 MB, free: 12.79 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000307/0.2582, allocations: 288.8 kB / 413.7 MB, free: 12.5 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.2583, allocations: 0 / 413.7 MB, free: 12.5 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.033e-06/0.2583, allocations: 4 kB / 413.7 MB, free: 12.5 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.022e-06/0.2583, allocations: 0 / 413.7 MB, free: 12.5 MB / 334.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.000739/0.259, allocations: 0.5533 MB / 414.3 MB, free: 11.9 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.637e-05/0.2591, allocations: 16.02 kB / 414.3 MB, free: 11.88 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.976e-05/0.2591, allocations: 46.73 kB / 414.3 MB, free: 11.83 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001261/0.2593, allocations: 32.66 kB / 414.4 MB, free: 11.8 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003025/0.2596, allocations: 259.7 kB / 414.6 MB, free: 11.5 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.931e-05/0.2596, allocations: 16.38 kB / 414.6 MB, free: 11.49 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.418e-05/0.2596, allocations: 23.84 kB / 414.7 MB, free: 11.46 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002852/0.2599, allocations: 153.6 kB / 414.8 MB, free: 11.31 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.143e-05/0.2599, allocations: 0 / 414.8 MB, free: 11.31 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.015e-05/0.26, allocations: 8 kB / 414.8 MB, free: 11.3 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.785e-06/0.26, allocations: 4 kB / 414.8 MB, free: 11.3 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002344/0.2602, allocations: 119.7 kB / 414.9 MB, free: 11.18 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008844/0.2611, allocations: 0.5741 MB / 415.5 MB, free: 10.55 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002981/0.2614, allocations: 150.5 kB / 415.7 MB, free: 10.4 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001602/0.2616, allocations: 96.81 kB / 415.8 MB, free: 10.3 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.672e-05/0.2616, allocations: 3.938 kB / 415.8 MB, free: 10.3 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002187/0.2619, allocations: 113.8 kB / 415.9 MB, free: 10.18 MB / 334.1 MB Notification: Performance of pre-optimization done (n=20): time 1.392e-06/0.2619, allocations: 0 / 415.9 MB, free: 10.18 MB / 334.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005025/0.2624, allocations: 233.6 kB / 416.1 MB, free: 9.941 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.038e-05/0.2624, allocations: 51.41 kB / 416.1 MB, free: 9.879 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002769/0.2627, allocations: 265 kB / 416.4 MB, free: 9.609 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.299e-05/0.2628, allocations: 33.58 kB / 416.4 MB, free: 9.57 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.315e-05/0.2629, allocations: 152.4 kB / 416.6 MB, free: 9.418 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.397e-05/0.2629, allocations: 67 kB / 416.7 MB, free: 9.352 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.359e-05/0.263, allocations: 45.7 kB / 416.7 MB, free: 9.301 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001195/0.2631, allocations: 334.8 kB / 417 MB, free: 8.965 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001089/0.2632, allocations: 51.97 kB / 417.1 MB, free: 8.914 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001261/0.2634, allocations: 87.34 kB / 417.2 MB, free: 8.816 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002217/0.2636, allocations: 154.3 kB / 417.3 MB, free: 8.656 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.2636, allocations: 0 / 417.3 MB, free: 8.656 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003142/0.2639, allocations: 201.2 kB / 417.5 MB, free: 8.453 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.633e-05/0.2639, allocations: 7.984 kB / 417.5 MB, free: 8.445 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.969e-06/0.264, allocations: 4 kB / 417.5 MB, free: 8.441 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.015e-05/0.264, allocations: 4.094 kB / 417.5 MB, free: 8.438 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002047/0.2642, allocations: 47.86 kB / 417.6 MB, free: 8.391 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.251e-06/0.2642, allocations: 4 kB / 417.6 MB, free: 8.387 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.007e-05/0.2643, allocations: 19.84 kB / 417.6 MB, free: 8.367 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.336e-05/0.2643, allocations: 8 kB / 417.6 MB, free: 8.359 MB / 334.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.0001255/0.2645, allocations: 153.6 kB / 417.8 MB, free: 8.199 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.271e-05/0.2645, allocations: 19.72 kB / 417.8 MB, free: 8.18 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.475e-05/0.2646, allocations: 30.17 kB / 417.8 MB, free: 8.148 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.439e-06/0.2646, allocations: 7.938 kB / 417.8 MB, free: 8.141 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.2646, allocations: 4 kB / 417.8 MB, free: 8.137 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.2646, allocations: 0 / 417.8 MB, free: 8.137 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002491/0.2648, allocations: 289.4 kB / 418.1 MB, free: 7.805 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.2649, allocations: 0 / 418.1 MB, free: 7.805 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001694/0.265, allocations: 31.98 kB / 418.1 MB, free: 7.773 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.265, allocations: 3.938 kB / 418.1 MB, free: 7.77 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.547e-05/0.2651, allocations: 4 kB / 418.1 MB, free: 7.766 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.466e-06/0.2651, allocations: 7.938 kB / 418.1 MB, free: 7.758 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.2651, allocations: 0 / 418.1 MB, free: 7.758 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004419/0.2655, allocations: 287 kB / 418.4 MB, free: 7.461 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.477e-05/0.2656, allocations: 100.8 kB / 418.5 MB, free: 7.344 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.522e-05/0.2656, allocations: 7.938 kB / 418.5 MB, free: 7.336 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.861e-05/0.2657, allocations: 7.984 kB / 418.5 MB, free: 7.328 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.953e-05/0.2658, allocations: 11.98 kB / 418.5 MB, free: 7.316 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.74e-05/0.2658, allocations: 4 kB / 418.6 MB, free: 7.312 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001575/0.2659, allocations: 200.4 kB / 418.7 MB, free: 7.117 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2659, allocations: 4 kB / 418.8 MB, free: 7.113 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002486/0.2662, allocations: 52.06 kB / 418.8 MB, free: 7.062 MB / 334.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.001476/0.2677, allocations: 1.127 MB / 419.9 MB, free: 6.055 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002904/0.268, allocations: 150.7 kB / 420.1 MB, free: 5.91 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.268, allocations: 4.062 kB / 420.1 MB, free: 5.906 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001393/0.2681, allocations: 75.91 kB / 420.2 MB, free: 5.832 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003184/0.2685, allocations: 40.41 kB / 420.2 MB, free: 5.793 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002713/0.2712, allocations: 2.385 MB / 422.6 MB, free: 3.301 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003221/0.2715, allocations: 0.748 MB / 423.3 MB, free: 2.527 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.942e-05/0.2716, allocations: 33.86 kB / 423.4 MB, free: 2.492 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001088/0.2718, allocations: 79.41 kB / 423.4 MB, free: 2.414 MB / 334.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2718, allocations: 0 / 423.4 MB, free: 2.414 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02316/0.2949, allocations: 5.435 MB / 428.9 MB, free: 13.08 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.358/7.653, allocations: 4.156 kB / 428.9 MB, free: 13.07 MB / 350.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor_res.mat --tempDir=temp_Modelica_trunk_Modelica_Thermal_HeatTransfer_Examples_Motor_fmu --startTime=0 --stopTime=7200 --timeout=50 --tolerance=1e-06 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.mat","/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) Reference file matches