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.008223/0.008223, allocations: 110.7 kB / 21.97 MB, free: 5.25 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.001996/0.001996, allocations: 206.5 kB / 25.27 MB, free: 3.238 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.343/1.343, allocations: 207.6 MB / 236.1 MB, free: 9.98 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="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.001826/0.001826, allocations: 55.92 kB / 348 MB, free: 10.05 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2298/0.2317, allocations: 49.16 MB / 397.1 MB, free: 8.984 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.003197/0.2349, allocations: 2.244 MB / 399.4 MB, free: 7.438 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001546/0.2364, allocations: 0.9897 MB / 400.4 MB, free: 6.754 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001213/0.2365, allocations: 3.5 kB / 400.4 MB, free: 6.754 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003713/0.2369, allocations: 101.8 kB / 400.5 MB, free: 6.715 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003142/0.2372, allocations: 119.4 kB / 400.6 MB, free: 6.648 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003531/0.2376, allocations: 121.1 kB / 400.7 MB, free: 6.586 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000307/0.2379, allocations: 286.3 kB / 401 MB, free: 6.449 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001716/0.2381, allocations: 67.55 kB / 401 MB, free: 6.414 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001614/0.2382, allocations: 122.3 kB / 401.2 MB, free: 6.359 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002024/0.2384, allocations: 126.2 kB / 401.3 MB, free: 6.309 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.411e-05/0.2385, allocations: 21.73 kB / 401.3 MB, free: 6.305 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001537/0.2386, allocations: 53.86 kB / 401.4 MB, free: 6.293 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.644e-05/0.2387, allocations: 53.84 kB / 401.4 MB, free: 6.262 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001112/0.2388, allocations: 121.2 kB / 401.5 MB, free: 6.188 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00041/0.2392, allocations: 289.1 kB / 401.8 MB, free: 6.078 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.2392, allocations: 0.6094 kB / 401.8 MB, free: 6.078 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.2392, allocations: 0 / 401.8 MB, free: 6.078 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.552e-06/0.2392, allocations: 1.375 kB / 401.8 MB, free: 6.078 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.0007772/0.24, allocations: 493.5 kB / 402.3 MB, free: 5.676 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.527e-05/0.24, allocations: 12.67 kB / 402.3 MB, free: 5.672 MB / 318.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.965e-05/0.2401, allocations: 6.156 kB / 402.3 MB, free: 5.672 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.587e-05/0.2401, allocations: 52.5 kB / 402.4 MB, free: 5.621 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002119/0.2403, allocations: 36.97 kB / 402.4 MB, free: 5.602 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003867/0.2407, allocations: 192.5 kB / 402.6 MB, free: 5.426 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.905e-05/0.2407, allocations: 19.09 kB / 402.6 MB, free: 5.414 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.644e-05/0.2408, allocations: 19.06 kB / 402.6 MB, free: 5.406 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003715/0.2411, allocations: 165.4 kB / 402.8 MB, free: 5.324 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.571e-05/0.2412, allocations: 1.312 kB / 402.8 MB, free: 5.324 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.089e-05/0.2412, allocations: 5.859 kB / 402.8 MB, free: 5.32 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.776e-06/0.2412, allocations: 3.438 kB / 402.8 MB, free: 5.32 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002684/0.2415, allocations: 114.9 kB / 402.9 MB, free: 5.285 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009665/0.2424, allocations: 0.5345 MB / 403.4 MB, free: 4.906 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003626/0.2428, allocations: 154.1 kB / 403.6 MB, free: 4.836 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001609/0.2429, allocations: 80.7 kB / 403.7 MB, free: 4.801 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.676e-05/0.243, allocations: 3.688 kB / 403.7 MB, free: 4.801 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00027/0.2432, allocations: 120.7 kB / 403.8 MB, free: 4.723 MB / 318.1 MB Notification: Performance of pre-optimization done (n=20): time 1.673e-06/0.2433, allocations: 0 / 403.8 MB, free: 4.723 MB / 318.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005496/0.2438, allocations: 231.2 kB / 404 MB, free: 4.621 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.968e-05/0.2438, allocations: 53.62 kB / 404.1 MB, free: 4.559 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002436/0.2441, allocations: 252.6 kB / 404.3 MB, free: 4.414 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.073e-05/0.2441, allocations: 30.92 kB / 404.3 MB, free: 4.379 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.4e-05/0.2442, allocations: 151.9 kB / 404.5 MB, free: 4.242 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.68e-05/0.2442, allocations: 69.53 kB / 404.6 MB, free: 4.188 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.38e-05/0.2443, allocations: 43.69 kB / 404.6 MB, free: 4.156 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.776e-05/0.2444, allocations: 330.8 kB / 404.9 MB, free: 3.836 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001113/0.2445, allocations: 57.89 kB / 405 MB, free: 3.812 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000128/0.2446, allocations: 86.64 kB / 405.1 MB, free: 3.758 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002345/0.2448, allocations: 147.1 kB / 405.2 MB, free: 3.672 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.2448, allocations: 0 / 405.2 MB, free: 3.672 MB / 318.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003582/0.2452, allocations: 201.6 kB / 405.4 MB, free: 3.574 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.909e-05/0.2452, allocations: 6.109 kB / 405.4 MB, free: 3.574 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.2452, allocations: 1.25 kB / 405.4 MB, free: 3.574 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.894e-05/0.2452, allocations: 6.188 kB / 405.4 MB, free: 3.57 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002182/0.2455, allocations: 50.8 kB / 405.5 MB, free: 3.562 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.426e-06/0.2455, allocations: 1.797 kB / 405.5 MB, free: 3.562 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001024/0.2456, allocations: 21.42 kB / 405.5 MB, free: 3.547 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.506e-05/0.2456, allocations: 10.5 kB / 405.5 MB, free: 3.543 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.0001085/0.2457, allocations: 149.4 kB / 405.7 MB, free: 3.406 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.428e-05/0.2457, allocations: 18.95 kB / 405.7 MB, free: 3.398 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003774/0.2461, allocations: 208.5 kB / 405.9 MB, free: 3.293 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.56e-06/0.2461, allocations: 1.375 kB / 405.9 MB, free: 3.293 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.2461, allocations: 6.5 kB / 405.9 MB, free: 3.289 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.2461, allocations: 1.078 kB / 405.9 MB, free: 3.289 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002534/0.2464, allocations: 254 kB / 406.1 MB, free: 3.086 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.865e-06/0.2464, allocations: 1.188 kB / 406.1 MB, free: 3.086 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001726/0.2465, allocations: 37.94 kB / 406.2 MB, free: 3.082 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.386e-06/0.2465, allocations: 1.031 kB / 406.2 MB, free: 3.082 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.781e-05/0.2466, allocations: 10.12 kB / 406.2 MB, free: 3.074 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.026e-06/0.2466, allocations: 0.6562 kB / 406.2 MB, free: 3.074 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.2466, allocations: 3.938 kB / 406.2 MB, free: 3.07 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004674/0.247, allocations: 283.5 kB / 406.5 MB, free: 2.918 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.105e-05/0.2471, allocations: 28 kB / 406.5 MB, free: 2.898 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.805e-05/0.2471, allocations: 6.125 kB / 406.5 MB, free: 2.895 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.683e-05/0.2472, allocations: 3.047 kB / 406.5 MB, free: 2.895 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.97e-05/0.2473, allocations: 19.2 kB / 406.5 MB, free: 2.887 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.361e-05/0.2473, allocations: 5.734 kB / 406.5 MB, free: 2.887 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001795/0.2475, allocations: 187.5 kB / 406.7 MB, free: 2.781 MB / 318.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2475, allocations: 0 / 406.7 MB, free: 2.781 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003193/0.2478, allocations: 60.44 kB / 406.8 MB, free: 2.766 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.001981/0.2498, allocations: 1.134 MB / 407.9 MB, free: 1.801 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002953/0.2501, allocations: 128.9 kB / 408 MB, free: 1.766 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.2501, allocations: 4.188 kB / 408 MB, free: 1.762 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001208/0.2502, allocations: 71.45 kB / 408.1 MB, free: 1.738 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003339/0.2505, allocations: 43.88 kB / 408.1 MB, free: 1.719 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002443/0.253, allocations: 2.385 MB / 410.5 MB, free: 48 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004251/0.2534, allocations: 0.7471 MB / 411.3 MB, free: 15.35 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001245/0.2535, allocations: 36.66 kB / 411.3 MB, free: 15.33 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000118/0.2536, allocations: 75.7 kB / 411.4 MB, free: 15.27 MB / 334.1 MB Notification: Performance of SimCode: time 8.02e-07/0.2536, allocations: 1.375 kB / 411.4 MB, free: 15.27 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02738/0.281, allocations: 5.591 MB / 417 MB, free: 12.64 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.68/10.96, allocations: 15.08 kB / 417 MB, free: 12.62 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 651] Reference file matches [Calling sys.exit(0), Time elapsed: 39.94414360699011]