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.001733/0.001733, allocations: 104.9 kB / 21.96 MB, free: 5.219 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.002/0.002, allocations: 214 kB / 25.26 MB, free: 3.129 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.324/1.324, allocations: 207.7 MB / 236.1 MB, free: 9.801 MB / 190.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.001664/0.001664, allocations: 54.58 kB / 348 MB, free: 9.898 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2381/0.2398, allocations: 49.15 MB / 397.1 MB, free: 8.887 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.002902/0.2427, allocations: 2.121 MB / 399.2 MB, free: 7.461 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001205/0.2439, allocations: 0.923 MB / 400.2 MB, free: 6.848 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.81e-05/0.244, allocations: 4.438 kB / 400.2 MB, free: 6.848 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003028/0.2443, allocations: 96.31 kB / 400.3 MB, free: 6.812 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002598/0.2445, allocations: 120.5 kB / 400.4 MB, free: 6.746 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002608/0.2448, allocations: 125.2 kB / 400.5 MB, free: 6.68 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002825/0.2451, allocations: 290.1 kB / 400.8 MB, free: 6.539 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001664/0.2453, allocations: 75.94 kB / 400.9 MB, free: 6.5 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001247/0.2454, allocations: 111.6 kB / 401 MB, free: 6.453 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001817/0.2456, allocations: 127.5 kB / 401.1 MB, free: 6.402 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.538e-05/0.2456, allocations: 18.66 kB / 401.1 MB, free: 6.402 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001284/0.2457, allocations: 57.14 kB / 401.2 MB, free: 6.387 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.805e-05/0.2458, allocations: 54.12 kB / 401.2 MB, free: 6.355 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001038/0.2459, allocations: 97.81 kB / 401.3 MB, free: 6.305 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003675/0.2463, allocations: 291.2 kB / 401.6 MB, free: 6.191 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.2463, allocations: 0 / 401.6 MB, free: 6.191 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.2463, allocations: 3.938 kB / 401.6 MB, free: 6.188 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.031e-06/0.2463, allocations: 0 / 401.6 MB, free: 6.188 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.0006986/0.247, allocations: 491 kB / 402.1 MB, free: 5.789 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.922e-05/0.247, allocations: 13.88 kB / 402.1 MB, free: 5.785 MB / 318.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.224e-05/0.247, allocations: 9.469 kB / 402.1 MB, free: 5.781 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.877e-05/0.2471, allocations: 56.09 kB / 402.2 MB, free: 5.727 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001328/0.2472, allocations: 33.64 kB / 402.2 MB, free: 5.711 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002546/0.2475, allocations: 189.3 kB / 402.4 MB, free: 5.535 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.993e-05/0.2475, allocations: 15.88 kB / 402.4 MB, free: 5.527 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.601e-05/0.2475, allocations: 19.16 kB / 402.4 MB, free: 5.52 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003245/0.2479, allocations: 170 kB / 402.6 MB, free: 5.434 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.563e-05/0.2479, allocations: 1.938 kB / 402.6 MB, free: 5.434 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.044e-05/0.2479, allocations: 10.11 kB / 402.6 MB, free: 5.426 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.694e-06/0.2479, allocations: 3.156 kB / 402.6 MB, free: 5.426 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002523/0.2481, allocations: 119.5 kB / 402.7 MB, free: 5.391 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007648/0.2489, allocations: 0.4997 MB / 403.2 MB, free: 5.027 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003123/0.2492, allocations: 157.5 kB / 403.4 MB, free: 4.957 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001424/0.2494, allocations: 82.33 kB / 403.4 MB, free: 4.922 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.031e-05/0.2494, allocations: 6.344 kB / 403.4 MB, free: 4.918 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002121/0.2496, allocations: 116.8 kB / 403.6 MB, free: 4.848 MB / 318.1 MB Notification: Performance of pre-optimization done (n=20): time 1.513e-06/0.2496, allocations: 0 / 403.6 MB, free: 4.848 MB / 318.1 MB Notification: Performance of matching and sorting (n=20): time 0.000441/0.25, allocations: 244.9 kB / 403.8 MB, free: 4.738 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.538e-05/0.2501, allocations: 53.62 kB / 403.9 MB, free: 4.676 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002013/0.2503, allocations: 265.8 kB / 404.1 MB, free: 4.523 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.5e-05/0.2503, allocations: 31.95 kB / 404.1 MB, free: 4.488 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.745e-05/0.2503, allocations: 141.8 kB / 404.3 MB, free: 4.359 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.929e-05/0.2504, allocations: 74.59 kB / 404.4 MB, free: 4.301 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.649e-05/0.2504, allocations: 41.19 kB / 404.4 MB, free: 4.273 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.594e-05/0.2505, allocations: 333.5 kB / 404.7 MB, free: 3.953 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000107/0.2506, allocations: 56.84 kB / 404.8 MB, free: 3.93 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001222/0.2507, allocations: 85.73 kB / 404.9 MB, free: 3.879 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002193/0.2509, allocations: 150.6 kB / 405 MB, free: 3.793 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.2509, allocations: 0 / 405 MB, free: 3.793 MB / 318.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003074/0.2513, allocations: 207.2 kB / 405.2 MB, free: 3.695 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.277e-05/0.2513, allocations: 4.594 kB / 405.2 MB, free: 3.695 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.491e-06/0.2513, allocations: 1.062 kB / 405.2 MB, free: 3.695 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.754e-05/0.2513, allocations: 6.094 kB / 405.2 MB, free: 3.691 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002044/0.2515, allocations: 54.95 kB / 405.3 MB, free: 3.68 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.795e-06/0.2515, allocations: 2.938 kB / 405.3 MB, free: 3.68 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.226e-05/0.2516, allocations: 21.36 kB / 405.3 MB, free: 3.664 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.426e-05/0.2516, allocations: 9.75 kB / 405.3 MB, free: 3.66 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.0001026/0.2517, allocations: 150.3 kB / 405.5 MB, free: 3.523 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.176e-05/0.2517, allocations: 22.83 kB / 405.5 MB, free: 3.512 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003788/0.2521, allocations: 219.3 kB / 405.7 MB, free: 3.406 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.2521, allocations: 2.719 kB / 405.7 MB, free: 3.406 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.2521, allocations: 3.938 kB / 405.7 MB, free: 3.402 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.2521, allocations: 4 kB / 405.7 MB, free: 3.398 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002135/0.2523, allocations: 241.9 kB / 405.9 MB, free: 3.199 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.2523, allocations: 0 / 405.9 MB, free: 3.199 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001871/0.2525, allocations: 38.45 kB / 406 MB, free: 3.195 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.2525, allocations: 1.25 kB / 406 MB, free: 3.195 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.706e-05/0.2526, allocations: 5.25 kB / 406 MB, free: 3.191 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.085e-06/0.2526, allocations: 5.188 kB / 406 MB, free: 3.188 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.2526, allocations: 2.578 kB / 406 MB, free: 3.188 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004635/0.253, allocations: 306 kB / 406.3 MB, free: 3.027 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.153e-05/0.2531, allocations: 23.44 kB / 406.3 MB, free: 3.012 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.674e-05/0.2531, allocations: 18.16 kB / 406.3 MB, free: 2.996 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.082e-05/0.2532, allocations: 7.969 kB / 406.3 MB, free: 2.992 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.271e-05/0.2532, allocations: 11.09 kB / 406.3 MB, free: 2.992 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.026e-05/0.2532, allocations: 10.77 kB / 406.4 MB, free: 2.988 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.00014/0.2534, allocations: 191.5 kB / 406.5 MB, free: 2.883 MB / 318.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.2534, allocations: 0 / 406.5 MB, free: 2.883 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000262/0.2536, allocations: 59.67 kB / 406.6 MB, free: 2.871 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.00191/0.2555, allocations: 1.189 MB / 407.8 MB, free: 1.867 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002947/0.2558, allocations: 143.6 kB / 407.9 MB, free: 1.824 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.664e-06/0.2558, allocations: 1.375 kB / 407.9 MB, free: 1.824 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001321/0.256, allocations: 80.12 kB / 408 MB, free: 1.797 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003284/0.2563, allocations: 43.98 kB / 408.1 MB, free: 1.777 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002367/0.2587, allocations: 2.403 MB / 410.5 MB, free: 112 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001138/0.2588, allocations: 142.6 kB / 410.6 MB, free: 24 kB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001034/0.2589, allocations: 31.67 kB / 410.6 MB, free: 16 kB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001358/0.259, allocations: 72.56 kB / 410.7 MB, free: 15.96 MB / 334.1 MB Notification: Performance of SimCode: time 4.41e-07/0.259, allocations: 0 / 410.7 MB, free: 15.96 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03019/0.2892, allocations: 5.865 MB / 416.6 MB, free: 13.1 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.97/11.26, allocations: 10.45 kB / 416.6 MB, free: 13.09 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 652] Reference file matches [Calling sys.exit(0), Time elapsed: 38.95793076802511]