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.001282/0.001282, allocations: 113.6 kB / 21.19 MB, free: 0.7031 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.001617/0.001617, allocations: 208.6 kB / 24.49 MB, free: 4.055 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.501/1.501, allocations: 207.6 MB / 235.3 MB, free: 10 MB / 190.1 MB " [Timeout remaining time 178] 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.Motor,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_HeatTransfer_Examples_Motor",fmuType="me",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.001943/0.001943, allocations: 55.94 kB / 347.2 MB, free: 10.14 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3119/0.3139, allocations: 49.17 MB / 396.3 MB, free: 8.965 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.004002/0.3179, allocations: 2.241 MB / 398.6 MB, free: 7.418 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001652/0.3195, allocations: 0.9926 MB / 399.6 MB, free: 6.73 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001314/0.3197, allocations: 8.5 kB / 399.6 MB, free: 6.727 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004354/0.3201, allocations: 93.34 kB / 399.7 MB, free: 6.695 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003109/0.3204, allocations: 118.3 kB / 399.8 MB, free: 6.629 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004049/0.3208, allocations: 126.7 kB / 399.9 MB, free: 6.562 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003507/0.3212, allocations: 287.4 kB / 400.2 MB, free: 6.426 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001772/0.3214, allocations: 66.61 kB / 400.3 MB, free: 6.391 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001603/0.3215, allocations: 117.8 kB / 400.4 MB, free: 6.34 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001971/0.3217, allocations: 131.3 kB / 400.5 MB, free: 6.285 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.585e-05/0.3217, allocations: 17.69 kB / 400.5 MB, free: 6.285 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000156/0.3219, allocations: 56.17 kB / 400.6 MB, free: 6.27 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.047e-05/0.322, allocations: 55.56 kB / 400.6 MB, free: 6.238 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000124/0.3221, allocations: 111.7 kB / 400.7 MB, free: 6.172 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004987/0.3226, allocations: 290 kB / 401 MB, free: 6.062 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.73e-06/0.3226, allocations: 1.031 kB / 401 MB, free: 6.062 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.3226, allocations: 0 / 401 MB, free: 6.062 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.444e-05/0.3226, allocations: 0 / 401 MB, free: 6.062 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.0008411/0.3235, allocations: 498.7 kB / 401.5 MB, free: 5.656 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.327e-05/0.3235, allocations: 13.89 kB / 401.5 MB, free: 5.652 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.229e-05/0.3236, allocations: 51.69 kB / 401.6 MB, free: 5.602 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000145/0.3237, allocations: 33.23 kB / 401.6 MB, free: 5.586 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003743/0.3241, allocations: 189.2 kB / 401.8 MB, free: 5.414 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.485e-05/0.3241, allocations: 15.06 kB / 401.8 MB, free: 5.406 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.785e-05/0.3242, allocations: 28.19 kB / 401.8 MB, free: 5.391 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003977/0.3246, allocations: 164.7 kB / 402 MB, free: 5.309 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.891e-05/0.3246, allocations: 5.031 kB / 402 MB, free: 5.305 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.991e-05/0.3246, allocations: 5.125 kB / 402 MB, free: 5.301 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.678e-06/0.3246, allocations: 3.875 kB / 402 MB, free: 5.301 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002381/0.3249, allocations: 115.2 kB / 402.1 MB, free: 5.266 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009146/0.3258, allocations: 0.5271 MB / 402.6 MB, free: 4.895 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003557/0.3262, allocations: 154.2 kB / 402.8 MB, free: 4.824 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001443/0.3263, allocations: 77.67 kB / 402.9 MB, free: 4.793 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.229e-05/0.3263, allocations: 6.391 kB / 402.9 MB, free: 4.789 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000242/0.3266, allocations: 117.4 kB / 403 MB, free: 4.715 MB / 318.1 MB Notification: Performance of pre-optimization done (n=20): time 1.513e-06/0.3266, allocations: 0 / 403 MB, free: 4.715 MB / 318.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005144/0.3271, allocations: 230.7 kB / 403.2 MB, free: 4.613 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.434e-05/0.3271, allocations: 58.58 kB / 403.3 MB, free: 4.547 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002253/0.3273, allocations: 248 kB / 403.5 MB, free: 4.406 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.618e-05/0.3274, allocations: 33.64 kB / 403.5 MB, free: 4.367 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.202e-05/0.3274, allocations: 148.9 kB / 403.7 MB, free: 4.234 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.355e-05/0.3275, allocations: 72.95 kB / 403.8 MB, free: 4.176 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.623e-05/0.3275, allocations: 47.61 kB / 403.8 MB, free: 4.141 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.113e-05/0.3276, allocations: 335.6 kB / 404.1 MB, free: 3.816 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001022/0.3277, allocations: 53.53 kB / 404.2 MB, free: 3.797 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001296/0.3278, allocations: 83.53 kB / 404.3 MB, free: 3.746 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002293/0.328, allocations: 146.9 kB / 404.4 MB, free: 3.66 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.328, allocations: 0 / 404.4 MB, free: 3.66 MB / 318.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003021/0.3283, allocations: 204.9 kB / 404.6 MB, free: 3.559 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.485e-05/0.3284, allocations: 5.906 kB / 404.6 MB, free: 3.559 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.051e-06/0.3284, allocations: 1.828 kB / 404.6 MB, free: 3.559 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.497e-05/0.3284, allocations: 2.281 kB / 404.6 MB, free: 3.559 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002097/0.3286, allocations: 50.55 kB / 404.7 MB, free: 3.551 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.411e-05/0.3286, allocations: 6.094 kB / 404.7 MB, free: 3.547 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001076/0.3287, allocations: 21.25 kB / 404.7 MB, free: 3.531 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.428e-05/0.3287, allocations: 6.594 kB / 404.7 MB, free: 3.531 MB / 318.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.0001012/0.3288, allocations: 145.2 kB / 404.8 MB, free: 3.398 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.077e-05/0.3289, allocations: 18.47 kB / 404.9 MB, free: 3.391 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000339/0.3292, allocations: 209.3 kB / 405.1 MB, free: 3.285 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.658e-06/0.3292, allocations: 6.719 kB / 405.1 MB, free: 3.281 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.3292, allocations: 4 kB / 405.1 MB, free: 3.277 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/0.3292, allocations: 1.125 kB / 405.1 MB, free: 3.277 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002108/0.3294, allocations: 255.9 kB / 405.3 MB, free: 3.074 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.3294, allocations: 0 / 405.3 MB, free: 3.074 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001735/0.3296, allocations: 31.59 kB / 405.4 MB, free: 3.074 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.485e-06/0.3296, allocations: 1.031 kB / 405.4 MB, free: 3.074 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.582e-05/0.3296, allocations: 8.75 kB / 405.4 MB, free: 3.07 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.695e-06/0.3296, allocations: 4.5 kB / 405.4 MB, free: 3.066 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.674e-06/0.3296, allocations: 7.938 kB / 405.4 MB, free: 3.059 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004216/0.3301, allocations: 284.6 kB / 405.7 MB, free: 2.906 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.191e-05/0.3301, allocations: 25.45 kB / 405.7 MB, free: 2.887 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.573e-05/0.3301, allocations: 8.719 kB / 405.7 MB, free: 2.883 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001073/0.3302, allocations: 2.281 kB / 405.7 MB, free: 2.883 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.023e-05/0.3303, allocations: 13.83 kB / 405.7 MB, free: 2.879 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.159e-05/0.3303, allocations: 5.5 kB / 405.7 MB, free: 2.879 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001644/0.3305, allocations: 191.7 kB / 405.9 MB, free: 2.77 MB / 318.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3305, allocations: 0 / 405.9 MB, free: 2.77 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000284/0.3308, allocations: 61.5 kB / 406 MB, free: 2.754 MB / 318.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.nextTimeEvent,lossTable.nextTimeEventScaled) * 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.001965/0.3327, allocations: 1.126 MB / 407.1 MB, free: 1.797 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003413/0.3331, allocations: 128.4 kB / 407.2 MB, free: 1.762 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.3331, allocations: 4.125 kB / 407.2 MB, free: 1.758 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001212/0.3332, allocations: 74.75 kB / 407.3 MB, free: 1.73 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003514/0.3335, allocations: 61.5 kB / 407.4 MB, free: 1.695 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002706/0.3362, allocations: 2.38 MB / 409.7 MB, free: 28 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004885/0.3367, allocations: 0.746 MB / 410.5 MB, free: 15.33 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001194/0.3368, allocations: 24.75 kB / 410.5 MB, free: 15.32 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001303/0.337, allocations: 75.25 kB / 410.6 MB, free: 15.26 MB / 334.1 MB Notification: Performance of SimCode: time 8.01e-07/0.337, allocations: 4 kB / 410.6 MB, free: 15.26 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03638/0.3734, allocations: 5.569 MB / 416.2 MB, free: 12.67 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.36/11.73, allocations: 5.156 kB / 416.2 MB, free: 12.67 MB / 334.1 MB " [Timeout remaining time 648] (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 654] Reference file matches [Calling sys.exit(0), Time elapsed: 31.802623316878453]