Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Thermal.HeatTransfer.Examples.Motor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1440000,variableFilter="time|core.T|winding.T",fileNamePrefix="Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor") translateModel(Modelica.Thermal.HeatTransfer.Examples.Motor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1440000,variableFilter="time|core.T|winding.T",fileNamePrefix="Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001362/0.001362, allocations: 179.6 kB / 16.71 MB, free: 5.094 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.231/1.231, allocations: 225.7 MB / 243.2 MB, free: 8.453 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007438/0.0007441, allocations: 88.53 kB / 294.4 MB, free: 9.512 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002288/0.0002288, allocations: 7.938 kB / 354.2 MB, free: 13.64 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1891/0.1893, allocations: 50.41 MB / 404.6 MB, free: 31.34 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.001787/0.1911, allocations: 1.878 MB / 406.4 MB, free: 29.45 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001169/0.1923, allocations: 1.16 MB / 407.6 MB, free: 28.25 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.082e-05/0.1924, allocations: 4 kB / 407.6 MB, free: 28.25 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002855/0.1927, allocations: 83.69 kB / 407.7 MB, free: 28.17 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000232/0.193, allocations: 109.7 kB / 407.8 MB, free: 28.06 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002727/0.1932, allocations: 123.7 kB / 407.9 MB, free: 27.94 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002125/0.1935, allocations: 274.8 kB / 408.2 MB, free: 27.67 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001673/0.1936, allocations: 75.62 kB / 408.3 MB, free: 27.59 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001016/0.1938, allocations: 91.62 kB / 408.3 MB, free: 27.5 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001276/0.1939, allocations: 117.5 kB / 408.5 MB, free: 27.39 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.293e-05/0.1939, allocations: 8 kB / 408.5 MB, free: 27.38 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001025/0.194, allocations: 39.98 kB / 408.5 MB, free: 27.34 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.909e-05/0.1941, allocations: 39.84 kB / 408.5 MB, free: 27.3 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.842e-05/0.1942, allocations: 129.1 kB / 408.7 MB, free: 27.17 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002315/0.1944, allocations: 279.8 kB / 408.9 MB, free: 26.9 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.1945, allocations: 0 / 408.9 MB, free: 26.9 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.635e-06/0.1945, allocations: 0 / 408.9 MB, free: 26.9 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.39e-06/0.1945, allocations: 0 / 408.9 MB, free: 26.9 MB / 298.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.0005962/0.1951, allocations: 0.5014 MB / 409.4 MB, free: 26.35 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.5e-05/0.1951, allocations: 12.03 kB / 409.5 MB, free: 26.34 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001185/0.1953, allocations: 28.66 kB / 409.5 MB, free: 26.31 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002189/0.1955, allocations: 256.7 kB / 409.7 MB, free: 26.02 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.37e-05/0.1955, allocations: 16.36 kB / 409.8 MB, free: 26 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.04e-05/0.1956, allocations: 20.12 kB / 409.8 MB, free: 25.98 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002715/0.1958, allocations: 165.4 kB / 409.9 MB, free: 25.82 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.445e-05/0.1959, allocations: 0 / 409.9 MB, free: 25.82 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.84e-05/0.1959, allocations: 4 kB / 409.9 MB, free: 25.81 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.901e-06/0.1959, allocations: 7.938 kB / 409.9 MB, free: 25.8 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002077/0.1961, allocations: 115.9 kB / 410.1 MB, free: 25.69 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006745/0.1968, allocations: 0.5622 MB / 410.6 MB, free: 25.08 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002505/0.1971, allocations: 163.3 kB / 410.8 MB, free: 24.91 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001225/0.1972, allocations: 88.77 kB / 410.9 MB, free: 24.82 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.323e-05/0.1972, allocations: 7.969 kB / 410.9 MB, free: 24.81 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000217/0.1974, allocations: 116.4 kB / 411 MB, free: 24.69 MB / 298.7 MB Notification: Performance of pre-optimization done (n=20): time 1.463e-06/0.1975, allocations: 0 / 411 MB, free: 24.69 MB / 298.7 MB Notification: Performance of matching and sorting (n=20): time 0.0003815/0.1978, allocations: 235.3 kB / 411.2 MB, free: 24.45 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.155e-05/0.1979, allocations: 55.41 kB / 411.3 MB, free: 24.39 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001652/0.198, allocations: 253 kB / 411.5 MB, free: 24.13 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.312e-05/0.1981, allocations: 25.7 kB / 411.5 MB, free: 24.1 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.995e-05/0.1981, allocations: 148.3 kB / 411.7 MB, free: 23.95 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.187e-05/0.1982, allocations: 71 kB / 411.8 MB, free: 23.88 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.874e-06/0.1982, allocations: 4 kB / 411.8 MB, free: 23.88 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.812e-05/0.1983, allocations: 338.8 kB / 412.1 MB, free: 23.54 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.12e-05/0.1984, allocations: 43.98 kB / 412.1 MB, free: 23.5 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001183/0.1985, allocations: 87.39 kB / 412.2 MB, free: 23.4 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001916/0.1987, allocations: 151.3 kB / 412.4 MB, free: 23.24 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.1987, allocations: 0 / 412.4 MB, free: 23.24 MB / 298.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000259/0.199, allocations: 193.3 kB / 412.6 MB, free: 23.05 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.347e-05/0.199, allocations: 8 kB / 412.6 MB, free: 23.04 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.849e-06/0.199, allocations: 0 / 412.6 MB, free: 23.04 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.433e-05/0.199, allocations: 4 kB / 412.6 MB, free: 23.04 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001945/0.1992, allocations: 52 kB / 412.6 MB, free: 22.98 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.282e-06/0.1992, allocations: 3.938 kB / 412.6 MB, free: 22.98 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.99e-05/0.1993, allocations: 23.75 kB / 412.7 MB, free: 22.96 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.328e-05/0.1993, allocations: 12 kB / 412.7 MB, free: 22.95 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 ($whenCondition1,$PRE.lossTable.nextTimeEvent,lossTable.nextTimeEvent,$PRE.lossTable.nextTimeEventScaled,lossTable.nextTimeEventScaled) * 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 8.713e-05/0.1994, allocations: 145.8 kB / 412.8 MB, free: 22.79 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.151e-05/0.1995, allocations: 15.81 kB / 412.8 MB, free: 22.78 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.276e-05/0.1995, allocations: 34.11 kB / 412.9 MB, free: 22.74 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.546e-06/0.1995, allocations: 8 kB / 412.9 MB, free: 22.73 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.1995, allocations: 7.922 kB / 412.9 MB, free: 22.73 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.985e-06/0.1995, allocations: 0 / 412.9 MB, free: 22.73 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001828/0.1997, allocations: 289.4 kB / 413.2 MB, free: 22.39 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.1997, allocations: 0 / 413.2 MB, free: 22.39 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001584/0.1999, allocations: 35.92 kB / 413.2 MB, free: 22.36 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.354e-06/0.1999, allocations: 4 kB / 413.2 MB, free: 22.36 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.537e-05/0.1999, allocations: 4 kB / 413.2 MB, free: 22.35 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.1999, allocations: 0 / 413.2 MB, free: 22.35 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.1999, allocations: 3.938 kB / 413.2 MB, free: 22.35 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003821/0.2003, allocations: 288.3 kB / 413.5 MB, free: 22.05 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.295e-05/0.2004, allocations: 100.8 kB / 413.6 MB, free: 21.93 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.197e-05/0.2004, allocations: 4 kB / 413.6 MB, free: 21.93 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.323e-05/0.2005, allocations: 11.92 kB / 413.6 MB, free: 21.92 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.58e-05/0.2006, allocations: 15.98 kB / 413.6 MB, free: 21.9 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.573e-05/0.2006, allocations: 4 kB / 413.6 MB, free: 21.9 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001152/0.2007, allocations: 188.5 kB / 413.8 MB, free: 21.71 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2007, allocations: 0 / 413.8 MB, free: 21.71 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002246/0.2009, allocations: 59.98 kB / 413.9 MB, free: 21.66 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.nextTimeEventScaled,lossTable.nextTimeEvent) * 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.0008115/0.2018, allocations: 485.6 kB / 414.3 MB, free: 21.3 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002405/0.202, allocations: 139.4 kB / 414.5 MB, free: 21.17 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.033e-06/0.202, allocations: 4 kB / 414.5 MB, free: 21.17 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001046/0.2021, allocations: 68.95 kB / 414.5 MB, free: 21.1 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002956/0.2024, allocations: 51.27 kB / 414.6 MB, free: 21.05 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007468/0.2032, allocations: 0.6626 MB / 415.3 MB, free: 20.36 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001394/0.2034, allocations: 0.7443 MB / 416 MB, free: 19.59 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 9.669e-05/0.2035, allocations: 33.92 kB / 416 MB, free: 19.56 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.664e-05/0.2035, allocations: 19.44 kB / 416 MB, free: 19.54 MB / 298.7 MB Notification: Performance of SimCode: time 2.5e-07/0.2036, allocations: 4 kB / 416.1 MB, free: 19.54 MB / 298.7 MB Notification: Performance of Templates: time 0.004725/0.2083, allocations: 2.509 MB / 418.6 MB, free: 17.04 MB / 298.7 MB make -j1 -f Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.makefile (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 & ./Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe 2>&1) 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","../files/Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches