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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001678/0.001678, allocations: 110.6 kB / 19.17 MB, free: 3.871 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001677/0.001677, allocations: 203.8 kB / 22.12 MB, free: 0.9297 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.375/1.375, allocations: 207.6 MB / 232.5 MB, free: 3.918 MB / 174.1 MB " [Timeout remaining time 179] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.Motor,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_HeatTransfer_Examples_Motor",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.Motor,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_HeatTransfer_Examples_Motor",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001649/0.001649, allocations: 55.92 kB / 343 MB, free: 10.02 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08556/0.08721, allocations: 49.13 MB / 392.1 MB, free: 8.719 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.003629/0.09084, allocations: 2.228 MB / 394.3 MB, free: 6.48 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001551/0.09239, allocations: 0.9788 MB / 395.3 MB, free: 5.492 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.889e-05/0.09248, allocations: 4 kB / 395.3 MB, free: 5.488 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003307/0.09281, allocations: 99.5 kB / 395.4 MB, free: 5.391 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002854/0.0931, allocations: 127.3 kB / 395.5 MB, free: 5.266 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003128/0.09341, allocations: 127.6 kB / 395.7 MB, free: 5.141 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003468/0.09376, allocations: 278.8 kB / 395.9 MB, free: 4.867 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001737/0.09393, allocations: 76.52 kB / 396 MB, free: 4.793 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001564/0.09409, allocations: 115.6 kB / 396.1 MB, free: 4.68 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001792/0.09427, allocations: 127.5 kB / 396.2 MB, free: 4.555 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.023e-05/0.09431, allocations: 20 kB / 396.3 MB, free: 4.535 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001176/0.09442, allocations: 47.98 kB / 396.3 MB, free: 4.488 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.741e-05/0.0945, allocations: 67.75 kB / 396.4 MB, free: 4.422 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001234/0.09462, allocations: 115.4 kB / 396.5 MB, free: 4.309 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003676/0.09499, allocations: 282.8 kB / 396.8 MB, free: 4.031 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.095, allocations: 0 / 396.8 MB, free: 4.031 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.095, allocations: 0 / 396.8 MB, free: 4.031 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.743e-06/0.095, allocations: 4 kB / 396.8 MB, free: 4.027 MB / 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.0008327/0.09584, allocations: 0.5494 MB / 397.3 MB, free: 3.43 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.747e-05/0.09587, allocations: 12.03 kB / 397.3 MB, free: 3.418 MB / 318.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.415e-05/0.0959, allocations: 4.188 kB / 397.3 MB, free: 3.414 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.365e-05/0.09596, allocations: 50.73 kB / 397.4 MB, free: 3.355 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001351/0.0961, allocations: 32.75 kB / 397.4 MB, free: 3.324 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003642/0.09646, allocations: 260.8 kB / 397.7 MB, free: 3.027 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.706e-05/0.09649, allocations: 20.12 kB / 397.7 MB, free: 3.008 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.273e-05/0.09652, allocations: 12 kB / 397.7 MB, free: 2.996 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003626/0.09688, allocations: 169.2 kB / 397.9 MB, free: 2.824 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.292e-05/0.0969, allocations: 0 / 397.9 MB, free: 2.824 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.04e-05/0.09692, allocations: 7.984 kB / 397.9 MB, free: 2.816 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.462e-06/0.09692, allocations: 4 kB / 397.9 MB, free: 2.812 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000255/0.09718, allocations: 115.9 kB / 398 MB, free: 2.699 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009356/0.09811, allocations: 0.57 MB / 398.6 MB, free: 2.078 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003141/0.09843, allocations: 150.5 kB / 398.7 MB, free: 1.922 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001528/0.09858, allocations: 80.83 kB / 398.8 MB, free: 1.84 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.042e-05/0.09861, allocations: 11.97 kB / 398.8 MB, free: 1.828 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002343/0.09885, allocations: 119.2 kB / 398.9 MB, free: 1.699 MB / 318.1 MB Notification: Performance of pre-optimization done (n=20): time 1.583e-06/0.09885, allocations: 0 / 398.9 MB, free: 1.699 MB / 318.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005074/0.09935, allocations: 233.8 kB / 399.1 MB, free: 1.465 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.891e-05/0.0994, allocations: 55.41 kB / 399.2 MB, free: 1.398 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002617/0.09967, allocations: 252.9 kB / 399.4 MB, free: 1.141 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.318e-05/0.09969, allocations: 29.7 kB / 399.5 MB, free: 1.105 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001017/0.09979, allocations: 148.4 kB / 399.6 MB, free: 0.957 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.299e-05/0.09985, allocations: 75.36 kB / 399.7 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.992e-05/0.09992, allocations: 41.7 kB / 399.7 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001625/0.1001, allocations: 334.8 kB / 400.1 MB, free: 0.5 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001145/0.1002, allocations: 51.97 kB / 400.1 MB, free: 460 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001488/0.1003, allocations: 91.28 kB / 400.2 MB, free: 356 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002475/0.1006, allocations: 139.4 kB / 400.3 MB, free: 204 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.1006, allocations: 4 kB / 400.3 MB, free: 200 kB / 318.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003666/0.101, allocations: 205.4 kB / 400.5 MB, free: 15.98 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.497e-05/0.101, allocations: 8 kB / 400.6 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.96e-06/0.101, allocations: 0 / 400.6 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.432e-05/0.101, allocations: 3.938 kB / 400.6 MB, free: 15.97 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002178/0.1012, allocations: 47.92 kB / 400.6 MB, free: 15.93 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.685e-06/0.1012, allocations: 3.984 kB / 400.6 MB, free: 15.92 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.219e-05/0.1013, allocations: 19.78 kB / 400.6 MB, free: 15.91 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.625e-05/0.1013, allocations: 16.09 kB / 400.6 MB, free: 15.89 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.0001352/0.1015, allocations: 145.7 kB / 400.8 MB, free: 15.74 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.523e-05/0.1015, allocations: 15.91 kB / 400.8 MB, free: 15.72 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.052e-05/0.1016, allocations: 30.19 kB / 400.8 MB, free: 15.69 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.766e-06/0.1016, allocations: 11.92 kB / 400.8 MB, free: 15.68 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.1016, allocations: 0 / 400.8 MB, free: 15.68 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.476e-06/0.1016, allocations: 0 / 400.8 MB, free: 15.68 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002879/0.1019, allocations: 281.4 kB / 401.1 MB, free: 15.36 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.1019, allocations: 0 / 401.1 MB, free: 15.36 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001768/0.1021, allocations: 35.98 kB / 401.2 MB, free: 15.32 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.1021, allocations: 4 kB / 401.2 MB, free: 15.32 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.756e-05/0.1021, allocations: 8 kB / 401.2 MB, free: 15.31 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.001e-06/0.1021, allocations: 7.922 kB / 401.2 MB, free: 15.3 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.1021, allocations: 4 kB / 401.2 MB, free: 15.3 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000496/0.1026, allocations: 280.8 kB / 401.4 MB, free: 15 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.463e-05/0.1027, allocations: 93 kB / 401.5 MB, free: 14.89 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.644e-05/0.1027, allocations: 11.94 kB / 401.6 MB, free: 14.88 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.836e-05/0.1028, allocations: 11.98 kB / 401.6 MB, free: 14.87 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.059e-05/0.1028, allocations: 15.98 kB / 401.6 MB, free: 14.86 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.72e-05/0.1028, allocations: 7.938 kB / 401.6 MB, free: 14.85 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001819/0.103, allocations: 184.5 kB / 401.8 MB, free: 14.66 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.103, allocations: 0 / 401.8 MB, free: 14.66 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002701/0.1033, allocations: 63.88 kB / 401.8 MB, free: 14.6 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.002298/0.1056, allocations: 1.137 MB / 403 MB, free: 13.43 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003318/0.1059, allocations: 140 kB / 403.1 MB, free: 13.3 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.1059, allocations: 0 / 403.1 MB, free: 13.3 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001356/0.1061, allocations: 67.91 kB / 403.2 MB, free: 13.23 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003675/0.1064, allocations: 56.66 kB / 403.2 MB, free: 13.18 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003178/0.1096, allocations: 2.363 MB / 405.6 MB, free: 10.71 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004849/0.1101, allocations: 0.744 MB / 406.3 MB, free: 9.941 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.00011/0.1102, allocations: 33.88 kB / 406.4 MB, free: 9.906 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001288/0.1103, allocations: 71.41 kB / 406.4 MB, free: 9.836 MB / 334.1 MB Notification: Performance of SimCode: time 5.91e-07/0.1103, allocations: 0 / 406.4 MB, free: 9.836 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0319/0.1422, allocations: 5.377 MB / 411.8 MB, free: 4.379 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.306/8.448, allocations: 8 kB / 411.8 MB, free: 4.371 MB / 334.1 MB " [Timeout remaining time 651] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Thermal_HeatTransfer_Examples_Motor_fmu --startTime=0 --stopTime=7200 --stepSize=0.01 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Thermal_HeatTransfer_Examples_Motor.fmu > Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor_res.mat","/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) [Timeout 660] "" [Timeout remaining time 651] Reference file matches [Calling sys.exit(0), Time elapsed: 37.911241044988856]