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.001286/0.001286, allocations: 107.6 kB / 21.18 MB, free: 452 kB / 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.001454/0.001454, allocations: 217.1 kB / 24.47 MB, free: 3.777 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.347/1.347, allocations: 207.7 MB / 235.3 MB, free: 9.789 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.002109/0.002109, allocations: 59.92 kB / 347.2 MB, free: 9.895 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2447/0.2468, allocations: 49.15 MB / 396.3 MB, free: 8.859 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.003519/0.2503, allocations: 2.125 MB / 398.5 MB, free: 7.438 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001368/0.2517, allocations: 0.928 MB / 399.4 MB, free: 6.82 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001053/0.2518, allocations: 3.75 kB / 399.4 MB, free: 6.82 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003321/0.2521, allocations: 97 kB / 399.5 MB, free: 6.785 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002989/0.2524, allocations: 123.9 kB / 399.6 MB, free: 6.715 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003133/0.2527, allocations: 125.7 kB / 399.7 MB, free: 6.648 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003039/0.253, allocations: 291.6 kB / 400 MB, free: 6.508 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001779/0.2532, allocations: 66.92 kB / 400.1 MB, free: 6.477 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001441/0.2533, allocations: 111.7 kB / 400.2 MB, free: 6.43 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000188/0.2535, allocations: 122.9 kB / 400.3 MB, free: 6.383 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.861e-05/0.2536, allocations: 18.06 kB / 400.3 MB, free: 6.383 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000148/0.2537, allocations: 53.06 kB / 400.4 MB, free: 6.371 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.895e-05/0.2538, allocations: 55.92 kB / 400.4 MB, free: 6.34 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001006/0.2539, allocations: 99.88 kB / 400.5 MB, free: 6.285 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003672/0.2543, allocations: 290.7 kB / 400.8 MB, free: 6.172 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.2543, allocations: 2.109 kB / 400.8 MB, free: 6.172 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.2543, allocations: 0 / 400.8 MB, free: 6.172 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.991e-06/0.2543, allocations: 0 / 400.8 MB, free: 6.172 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.0006487/0.2549, allocations: 491.1 kB / 401.3 MB, free: 5.773 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.456e-05/0.255, allocations: 13.36 kB / 401.3 MB, free: 5.77 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.83e-05/0.255, allocations: 53.05 kB / 401.4 MB, free: 5.719 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000123/0.2551, allocations: 31.64 kB / 401.4 MB, free: 5.703 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002894/0.2554, allocations: 189.9 kB / 401.6 MB, free: 5.527 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.976e-05/0.2554, allocations: 12.27 kB / 401.6 MB, free: 5.523 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.495e-05/0.2555, allocations: 23.44 kB / 401.6 MB, free: 5.512 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002952/0.2558, allocations: 167.3 kB / 401.8 MB, free: 5.43 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.328e-05/0.2558, allocations: 0 / 401.8 MB, free: 5.43 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.92e-05/0.2558, allocations: 11.2 kB / 401.8 MB, free: 5.422 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.713e-06/0.2558, allocations: 8.156 kB / 401.8 MB, free: 5.418 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000246/0.2561, allocations: 117 kB / 401.9 MB, free: 5.383 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007224/0.2568, allocations: 0.5024 MB / 402.4 MB, free: 5.02 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002826/0.2571, allocations: 156.3 kB / 402.6 MB, free: 4.949 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001344/0.2572, allocations: 81.33 kB / 402.6 MB, free: 4.914 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.1e-05/0.2572, allocations: 5.875 kB / 402.6 MB, free: 4.91 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000195/0.2574, allocations: 121.9 kB / 402.8 MB, free: 4.836 MB / 318.1 MB Notification: Performance of pre-optimization done (n=20): time 1.503e-06/0.2574, allocations: 3.938 kB / 402.8 MB, free: 4.832 MB / 318.1 MB Notification: Performance of matching and sorting (n=20): time 0.0004577/0.2579, allocations: 234.1 kB / 403 MB, free: 4.73 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.48e-05/0.2579, allocations: 54.55 kB / 403.1 MB, free: 4.668 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002262/0.2581, allocations: 266.7 kB / 403.3 MB, free: 4.516 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.545e-05/0.2581, allocations: 30.83 kB / 403.3 MB, free: 4.48 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.482e-05/0.2582, allocations: 147.6 kB / 403.5 MB, free: 4.348 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.416e-05/0.2582, allocations: 66.62 kB / 403.5 MB, free: 4.297 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.738e-05/0.2583, allocations: 43.8 kB / 403.6 MB, free: 4.266 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.169e-05/0.2584, allocations: 337.9 kB / 403.9 MB, free: 3.941 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001047/0.2585, allocations: 53.81 kB / 404 MB, free: 3.922 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001174/0.2586, allocations: 86.38 kB / 404.1 MB, free: 3.871 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002163/0.2588, allocations: 149.8 kB / 404.2 MB, free: 3.785 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.2588, allocations: 0 / 404.2 MB, free: 3.785 MB / 318.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003065/0.2591, allocations: 212.2 kB / 404.4 MB, free: 3.684 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.431e-05/0.2591, allocations: 8.469 kB / 404.4 MB, free: 3.68 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.668e-06/0.2591, allocations: 1.125 kB / 404.4 MB, free: 3.68 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.431e-05/0.2591, allocations: 2.219 kB / 404.4 MB, free: 3.68 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002139/0.2593, allocations: 51.25 kB / 404.5 MB, free: 3.672 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.602e-06/0.2594, allocations: 1.25 kB / 404.5 MB, free: 3.672 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.414e-05/0.2594, allocations: 25.56 kB / 404.5 MB, free: 3.652 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.477e-05/0.2595, allocations: 9.156 kB / 404.5 MB, free: 3.648 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 9.335e-05/0.2596, allocations: 138 kB / 404.6 MB, free: 3.523 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.348e-05/0.2596, allocations: 23.38 kB / 404.7 MB, free: 3.512 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000358/0.2599, allocations: 224.4 kB / 404.9 MB, free: 3.398 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.477e-06/0.2599, allocations: 6.5 kB / 404.9 MB, free: 3.395 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.132e-06/0.26, allocations: 9.281 kB / 404.9 MB, free: 3.387 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.458e-06/0.26, allocations: 1.406 kB / 404.9 MB, free: 3.387 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002146/0.2602, allocations: 239.3 kB / 405.1 MB, free: 3.188 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-06/0.2602, allocations: 0 / 405.1 MB, free: 3.188 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001789/0.2604, allocations: 44.69 kB / 405.2 MB, free: 3.18 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.2604, allocations: 0 / 405.2 MB, free: 3.18 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.578e-05/0.2604, allocations: 3.281 kB / 405.2 MB, free: 3.18 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.415e-06/0.2604, allocations: 1.953 kB / 405.2 MB, free: 3.18 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.2604, allocations: 7.875 kB / 405.2 MB, free: 3.172 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004697/0.2608, allocations: 308.6 kB / 405.5 MB, free: 3.012 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.212e-05/0.2609, allocations: 17.92 kB / 405.5 MB, free: 3 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.471e-05/0.2609, allocations: 7.156 kB / 405.5 MB, free: 2.996 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.223e-05/0.261, allocations: 10.92 kB / 405.5 MB, free: 2.988 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.13e-05/0.261, allocations: 12.69 kB / 405.5 MB, free: 2.988 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.864e-05/0.2611, allocations: 6.062 kB / 405.5 MB, free: 2.988 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001495/0.2612, allocations: 200.7 kB / 405.7 MB, free: 2.875 MB / 318.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2612, allocations: 0 / 405.7 MB, free: 2.875 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002675/0.2615, allocations: 57.08 kB / 405.8 MB, free: 2.863 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 (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.001967/0.2634, allocations: 1.186 MB / 407 MB, free: 1.863 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000291/0.2637, allocations: 148 kB / 407.1 MB, free: 1.816 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.453e-06/0.2637, allocations: 0 / 407.1 MB, free: 1.816 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001236/0.2639, allocations: 77.08 kB / 407.2 MB, free: 1.793 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003269/0.2642, allocations: 43.88 kB / 407.2 MB, free: 1.773 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002317/0.2665, allocations: 2.405 MB / 409.7 MB, free: 100 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001117/0.2666, allocations: 138.4 kB / 409.8 MB, free: 16 kB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001015/0.2667, allocations: 29.06 kB / 409.8 MB, free: 12 kB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001414/0.2669, allocations: 76.31 kB / 409.9 MB, free: 15.95 MB / 334.1 MB Notification: Performance of SimCode: time 5.21e-07/0.2669, allocations: 0 / 409.9 MB, free: 15.95 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03378/0.3006, allocations: 6.157 MB / 416 MB, free: 12.76 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.83/11.13, allocations: 12.89 kB / 416.1 MB, free: 12.75 MB / 334.1 MB " [Timeout remaining time 649] (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 655] Reference file matches [Calling sys.exit(0), Time elapsed: 30.69043273990974]