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.0009706/0.0009706, 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.0008593/0.0008593, 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.8766/0.8766, allocations: 177 MB / 204.1 MB, free: 5.746 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 2.885e-06/2.885e-06, allocations: 0 / 324.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.824e-05/3.113e-05, allocations: 7.062 kB / 324.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.003324/0.003355, allocations: 2.162 MB / 326.7 MB, free: 13.73 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001907/0.005262, allocations: 1.164 MB / 327.8 MB, free: 12.55 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001366/0.005399, allocations: 7.938 kB / 327.8 MB, free: 12.55 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003564/0.005755, allocations: 91.5 kB / 327.9 MB, free: 12.46 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004225/0.006178, allocations: 170.9 kB / 328.1 MB, free: 12.29 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000283/0.006461, allocations: 127.4 kB / 328.2 MB, free: 12.16 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003062/0.006767, allocations: 306.5 kB / 328.5 MB, free: 11.86 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002027/0.006969, allocations: 68.56 kB / 328.6 MB, free: 11.8 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000192/0.007161, allocations: 163.7 kB / 328.7 MB, free: 11.64 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001666/0.007328, allocations: 103.7 kB / 328.8 MB, free: 11.54 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.264e-05/0.007361, allocations: 20 kB / 328.9 MB, free: 11.52 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001388/0.0075, allocations: 55.84 kB / 328.9 MB, free: 11.46 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.135e-05/0.007581, allocations: 63.77 kB / 329 MB, free: 11.4 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.876e-05/0.00766, allocations: 71.83 kB / 329 MB, free: 11.33 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000345/0.008005, allocations: 295 kB / 329.3 MB, free: 11.04 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.008009, allocations: 4 kB / 329.3 MB, free: 11.04 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.624e-06/0.008011, allocations: 0 / 329.3 MB, free: 11.04 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.571e-06/0.008016, 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.0006184/0.008635, allocations: 489.4 kB / 329.8 MB, free: 10.53 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.349e-05/0.008678, allocations: 11.98 kB / 329.8 MB, free: 10.52 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.3e-05/0.008721, allocations: 50.73 kB / 329.9 MB, free: 10.46 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001072/0.008828, allocations: 36.75 kB / 329.9 MB, free: 10.42 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002917/0.00912, allocations: 201.2 kB / 330.1 MB, free: 10.2 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.875e-05/0.009139, allocations: 12.38 kB / 330.1 MB, free: 10.19 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.881e-05/0.009168, allocations: 16.31 kB / 330.1 MB, free: 10.17 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002319/0.0094, allocations: 162.2 kB / 330.3 MB, free: 10.01 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.245e-05/0.009412, allocations: 192 / 330.3 MB, free: 10.01 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.711e-05/0.009429, allocations: 16.12 kB / 330.3 MB, free: 9.992 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.865e-06/0.009437, allocations: 7.984 kB / 330.3 MB, free: 9.984 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001792/0.009616, allocations: 119.7 kB / 330.4 MB, free: 9.867 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006393/0.01026, allocations: 0.4993 MB / 330.9 MB, free: 9.324 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002271/0.01048, allocations: 158.5 kB / 331.1 MB, free: 9.16 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.098e-05/0.01057, allocations: 77.17 kB / 331.2 MB, free: 9.082 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.803e-05/0.01059, allocations: 0 / 331.2 MB, free: 9.082 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001613/0.01075, allocations: 123.3 kB / 331.3 MB, free: 8.949 MB / 298.7 MB Notification: Performance of pre-optimization done (n=20): time 1.132e-06/0.01075, allocations: 0 / 331.3 MB, free: 8.949 MB / 298.7 MB Notification: Performance of matching and sorting (n=20): time 0.0003496/0.0111, allocations: 240.6 kB / 331.5 MB, free: 8.711 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.521e-05/0.01114, allocations: 59.41 kB / 331.6 MB, free: 8.641 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001869/0.01133, allocations: 269.8 kB / 331.8 MB, free: 8.371 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.529e-05/0.01134, allocations: 29.7 kB / 331.9 MB, free: 8.336 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.609e-05/0.01142, allocations: 152.3 kB / 332 MB, free: 8.184 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.37e-05/0.01146, allocations: 75.36 kB / 332.1 MB, free: 8.109 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.828e-05/0.01151, allocations: 41.72 kB / 332.1 MB, free: 8.062 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.807e-05/0.0116, allocations: 330.8 kB / 332.5 MB, free: 7.73 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.576e-05/0.01167, allocations: 59.91 kB / 332.5 MB, free: 7.672 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.612e-05/0.01176, allocations: 91.39 kB / 332.6 MB, free: 7.57 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001652/0.01192, allocations: 151.3 kB / 332.7 MB, free: 7.41 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.01193, allocations: 0 / 332.7 MB, free: 7.41 MB / 298.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002442/0.01217, allocations: 220.2 kB / 333 MB, free: 7.191 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.611e-05/0.01219, allocations: 4 kB / 333 MB, free: 7.188 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.091e-06/0.01219, allocations: 4 kB / 333 MB, free: 7.184 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.38e-05/0.01221, allocations: 0 / 333 MB, free: 7.184 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001452/0.01235, allocations: 47.92 kB / 333 MB, free: 7.137 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.771e-06/0.01236, allocations: 8.094 kB / 333 MB, free: 7.129 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.662e-05/0.01241, allocations: 19.88 kB / 333 MB, free: 7.109 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.103e-05/0.01243, allocations: 8 kB / 333.1 MB, free: 7.102 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 0.0001062/0.01253, allocations: 145.8 kB / 333.2 MB, free: 6.949 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.513e-05/0.01256, allocations: 27.81 kB / 333.2 MB, free: 6.922 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002814/0.01284, allocations: 219.6 kB / 333.4 MB, free: 6.703 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.01284, allocations: 0 / 333.4 MB, free: 6.703 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.96e-06/0.01285, allocations: 4 kB / 333.4 MB, free: 6.699 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.888e-06/0.01285, allocations: 0 / 333.4 MB, free: 6.699 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002083/0.01306, allocations: 248.5 kB / 333.7 MB, free: 6.414 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.01306, allocations: 4 kB / 333.7 MB, free: 6.41 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001166/0.01318, allocations: 39.92 kB / 333.7 MB, free: 6.371 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.565e-06/0.01318, allocations: 0 / 333.7 MB, free: 6.371 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.432e-05/0.01319, allocations: 11.98 kB / 333.7 MB, free: 6.359 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.864e-06/0.0132, allocations: 0 / 333.7 MB, free: 6.359 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.0132, allocations: 0 / 333.7 MB, free: 6.359 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003453/0.01354, allocations: 301.9 kB / 334 MB, free: 6.047 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.759e-05/0.01357, allocations: 23.83 kB / 334.1 MB, free: 6.023 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.204e-05/0.01359, allocations: 8 kB / 334.1 MB, free: 6.016 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.271e-05/0.01363, allocations: 7.984 kB / 334.1 MB, free: 6.008 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.693e-05/0.01367, allocations: 12.05 kB / 334.1 MB, free: 5.996 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.067e-05/0.01369, allocations: 15.98 kB / 334.1 MB, free: 5.98 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001232/0.01382, allocations: 197.2 kB / 334.3 MB, free: 5.785 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01382, allocations: 0 / 334.3 MB, free: 5.785 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002118/0.01403, allocations: 67.81 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.001196/0.01522, allocations: 1.169 MB / 335.5 MB, free: 4.676 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002213/0.01544, allocations: 143.8 kB / 335.7 MB, free: 4.535 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.01545, allocations: 12.12 kB / 335.7 MB, free: 4.523 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.698e-05/0.01553, allocations: 71.91 kB / 335.7 MB, free: 4.453 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002439/0.01578, allocations: 46.78 kB / 335.8 MB, free: 4.414 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002054/0.01783, allocations: 2.373 MB / 338.2 MB, free: 1.926 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.459e-05/0.01793, allocations: 142.2 kB / 338.3 MB, free: 1.766 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 8.119e-05/0.01801, allocations: 33.92 kB / 338.3 MB, free: 1.73 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.673e-05/0.01809, allocations: 76.47 kB / 338.4 MB, free: 1.656 MB / 298.7 MB Notification: Performance of SimCode: time 7.41e-07/0.0181, allocations: 0 / 338.4 MB, free: 1.656 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02283/0.04093, allocations: 6.374 MB / 344.8 MB, free: 11.32 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.913/6.954, allocations: 0 / 344.8 MB, free: 11.32 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 & /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 --stepSize=1 --timeout=50 --tolerance=1e-06 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.mat","/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 659] Reference file matches [Calling sys.exit(0), Time elapsed: 10.512886632233858]