Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008394/0.0008394, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008582/0.0008582, allocations: 149.1 kB / 23.93 MB, free: 0.6289 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8898/0.8898, allocations: 173.3 MB / 200.4 MB, free: 9.43 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.Motor,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_Motor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.Motor,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_Motor",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.453e-06/1.453e-06, allocations: 0 / 318.4 MB, free: 6.254 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.798e-05/1.944e-05, allocations: 2.281 kB / 318.4 MB, free: 6.25 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.002576/0.002595, allocations: 2.13 MB / 320.5 MB, free: 4.105 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001324/0.003919, allocations: 1.029 MB / 321.6 MB, free: 3.07 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001143/0.004033, allocations: 0 / 321.6 MB, free: 3.07 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000338/0.004371, allocations: 99.38 kB / 321.7 MB, free: 2.973 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003096/0.004681, allocations: 123.1 kB / 321.8 MB, free: 2.852 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003357/0.005017, allocations: 155.5 kB / 321.9 MB, free: 2.699 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002823/0.005299, allocations: 298.6 kB / 322.2 MB, free: 2.406 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001606/0.00546, allocations: 60.77 kB / 322.3 MB, free: 2.34 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00017/0.00563, allocations: 155.7 kB / 322.4 MB, free: 2.188 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001403/0.00577, allocations: 107.7 kB / 322.5 MB, free: 2.082 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.662e-05/0.005797, allocations: 16 kB / 322.6 MB, free: 2.066 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001084/0.005905, allocations: 55.86 kB / 322.6 MB, free: 2.012 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 6.843e-05/0.005973, allocations: 59.77 kB / 322.7 MB, free: 1.953 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 7.53e-05/0.006049, allocations: 83.75 kB / 322.8 MB, free: 1.871 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002984/0.006347, allocations: 283.1 kB / 323 MB, free: 1.594 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.214e-06/0.006349, allocations: 0 / 323 MB, free: 1.594 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.00635, allocations: 0 / 323 MB, free: 1.594 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.981e-06/0.006356, allocations: 0 / 323 MB, free: 1.594 MB / 282.7 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.0005819/0.006938, allocations: 488.7 kB / 323.5 MB, free: 1.09 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.828e-05/0.006976, allocations: 8.922 kB / 323.5 MB, free: 1.082 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.073e-05/0.007017, allocations: 58.72 kB / 323.6 MB, free: 1.016 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.625e-05/0.007113, allocations: 32.75 kB / 323.6 MB, free: 0.9844 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002556/0.007369, allocations: 190.2 kB / 323.8 MB, free: 0.7695 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.733e-05/0.007386, allocations: 12.38 kB / 323.8 MB, free: 0.7578 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.707e-05/0.007413, allocations: 16.38 kB / 323.8 MB, free: 0.7422 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002335/0.007647, allocations: 173.5 kB / 324 MB, free: 0.5664 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.048e-05/0.007657, allocations: 0 / 324 MB, free: 0.5664 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.365e-05/0.007671, allocations: 4 kB / 324 MB, free: 0.5625 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.169e-06/0.007676, allocations: 4 kB / 324 MB, free: 0.5586 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001776/0.007854, allocations: 119.9 kB / 324.1 MB, free: 452 kB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006209/0.008475, allocations: 0.5107 MB / 324.6 MB, free: 15.89 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002159/0.008691, allocations: 150.5 kB / 324.8 MB, free: 15.73 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.423e-05/0.008785, allocations: 80.83 kB / 324.9 MB, free: 15.65 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.83e-05/0.008803, allocations: 7.984 kB / 324.9 MB, free: 15.64 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001496/0.008953, allocations: 119.6 kB / 325 MB, free: 15.51 MB / 298.7 MB Notification: Performance of pre-optimization done (n=20): time 1.603e-06/0.008954, allocations: 0 / 325 MB, free: 15.51 MB / 298.7 MB Notification: Performance of matching and sorting (n=20): time 0.0003443/0.009299, allocations: 241.4 kB / 325.2 MB, free: 15.27 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.898e-05/0.009328, allocations: 55.41 kB / 325.3 MB, free: 15.2 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001695/0.009497, allocations: 257.8 kB / 325.5 MB, free: 14.95 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.461e-05/0.009512, allocations: 33.64 kB / 325.6 MB, free: 14.91 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.813e-05/0.00958, allocations: 144.4 kB / 325.7 MB, free: 14.76 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.148e-05/0.009621, allocations: 75.41 kB / 325.8 MB, free: 14.69 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.666e-05/0.009668, allocations: 41.7 kB / 325.8 MB, free: 14.64 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.102e-05/0.009749, allocations: 330.8 kB / 326.1 MB, free: 14.31 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.496e-05/0.009824, allocations: 59.97 kB / 326.2 MB, free: 14.25 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.665e-05/0.009911, allocations: 95.92 kB / 326.3 MB, free: 14.14 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00016/0.01007, allocations: 154.4 kB / 326.4 MB, free: 13.98 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.01007, allocations: 3.938 kB / 326.4 MB, free: 13.98 MB / 298.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002212/0.01029, allocations: 205.4 kB / 326.6 MB, free: 13.77 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.31e-05/0.01031, allocations: 8 kB / 326.6 MB, free: 13.77 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.62e-06/0.01031, allocations: 0 / 326.6 MB, free: 13.77 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.127e-05/0.01032, allocations: 0 / 326.6 MB, free: 13.77 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001305/0.01045, allocations: 52.02 kB / 326.7 MB, free: 13.71 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.692e-06/0.01046, allocations: 3.984 kB / 326.7 MB, free: 13.71 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.44e-05/0.01052, allocations: 23.77 kB / 326.7 MB, free: 13.69 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.498e-06/0.01053, allocations: 8 kB / 326.7 MB, free: 13.68 MB / 298.7 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.496e-05/0.01062, allocations: 149 kB / 326.9 MB, free: 13.53 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.158e-05/0.01064, allocations: 23.86 kB / 326.9 MB, free: 13.5 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002538/0.0109, allocations: 214.9 kB / 327.1 MB, free: 13.29 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.555e-06/0.0109, allocations: 0 / 327.1 MB, free: 13.29 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.568e-06/0.0109, allocations: 4 kB / 327.1 MB, free: 13.29 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.437e-06/0.01091, allocations: 0 / 327.1 MB, free: 13.29 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001807/0.01109, allocations: 256.5 kB / 327.4 MB, free: 12.99 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.01109, allocations: 0 / 327.4 MB, free: 12.99 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001112/0.0112, allocations: 35.92 kB / 327.4 MB, free: 12.96 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/0.0112, allocations: 4 kB / 327.4 MB, free: 12.95 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.199e-05/0.01121, allocations: 4 kB / 327.4 MB, free: 12.95 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.026e-06/0.01122, allocations: 3.984 kB / 327.4 MB, free: 12.95 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.001e-06/0.01122, allocations: 4 kB / 327.4 MB, free: 12.94 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003249/0.01154, allocations: 300.8 kB / 327.7 MB, free: 12.63 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.326e-05/0.01157, allocations: 19.89 kB / 327.7 MB, free: 12.61 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.903e-05/0.01159, allocations: 4 kB / 327.7 MB, free: 12.61 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.039e-05/0.01163, allocations: 16.05 kB / 327.7 MB, free: 12.59 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.268e-05/0.01166, allocations: 11.92 kB / 327.8 MB, free: 12.58 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.599e-05/0.01167, allocations: 8 kB / 327.8 MB, free: 12.57 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001148/0.01179, allocations: 201.1 kB / 328 MB, free: 12.38 MB / 298.7 MB Notification: Performance of sort global known variables: time 9e-08/0.01179, allocations: 0 / 328 MB, free: 12.38 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001955/0.01199, allocations: 63.83 kB / 328 MB, free: 12.31 MB / 298.7 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.001085/0.01307, allocations: 1.183 MB / 329.2 MB, free: 11.29 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002188/0.01329, allocations: 147.8 kB / 329.4 MB, free: 11.14 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.433e-06/0.01329, allocations: 0 / 329.4 MB, free: 11.14 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.584e-05/0.01338, allocations: 71.91 kB / 329.4 MB, free: 11.07 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000226/0.0136, allocations: 48.64 kB / 329.5 MB, free: 11.03 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001904/0.01551, allocations: 2.354 MB / 331.8 MB, free: 8.57 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.271e-05/0.0156, allocations: 145.1 kB / 332 MB, free: 8.41 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 7.782e-05/0.01568, allocations: 25.95 kB / 332 MB, free: 8.383 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.346e-05/0.01576, allocations: 80.41 kB / 332.1 MB, free: 8.305 MB / 298.7 MB Notification: Performance of SimCode: time 5.21e-07/0.01576, allocations: 0 / 332.1 MB, free: 8.305 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02074/0.0365, allocations: 6.283 MB / 338.4 MB, free: 2.094 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.773/6.809, allocations: 11.33 kB / 338.4 MB, free: 2.086 MB / 298.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_Motor_fmu --startTime=0 --stopTime=7200 --stepSize=0.01 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_Motor.fmu > Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/HeatTransfer/Examples/Motor/Motor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 657] Reference file matches [Calling sys.exit(0), Time elapsed: 17.015723699703813]