Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000957/0.0009571, allocations: 197.7 kB / 17.43 MB, free: 4.277 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.281/1.281, allocations: 229.5 MB / 247.7 MB, free: 6.332 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007739/0.000774, allocations: 98.42 kB / 299.9 MB, free: 5.348 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002004/0.0002005, allocations: 4 kB / 360.6 MB, free: 8.492 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1881/0.1883, allocations: 51.42 MB / 412.1 MB, free: 25.9 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.001755/0.1901, allocations: 1.886 MB / 413.9 MB, free: 24.01 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001377/0.1915, allocations: 1.618 MB / 415.6 MB, free: 22.28 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.584e-05/0.1916, allocations: 4.625 kB / 415.6 MB, free: 22.27 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000274/0.1919, allocations: 87.67 kB / 415.6 MB, free: 22.19 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002942/0.1922, allocations: 138.3 kB / 415.8 MB, free: 22.05 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002811/0.1925, allocations: 127.7 kB / 415.9 MB, free: 21.93 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002111/0.1927, allocations: 278.8 kB / 416.2 MB, free: 21.66 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001466/0.1929, allocations: 83.88 kB / 416.3 MB, free: 21.57 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.826e-05/0.193, allocations: 95.58 kB / 416.4 MB, free: 21.48 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001166/0.1931, allocations: 115.5 kB / 416.5 MB, free: 21.36 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.327e-05/0.1932, allocations: 16 kB / 416.5 MB, free: 21.35 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001026/0.1933, allocations: 36 kB / 416.5 MB, free: 21.31 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.773e-05/0.1933, allocations: 51.75 kB / 416.6 MB, free: 21.26 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.555e-05/0.1934, allocations: 129.1 kB / 416.7 MB, free: 21.13 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002219/0.1937, allocations: 272.6 kB / 417 MB, free: 20.86 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.1937, allocations: 4 kB / 417 MB, free: 20.86 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.333e-06/0.1937, allocations: 0 / 417 MB, free: 20.86 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.258e-06/0.1937, allocations: 0 / 417 MB, free: 20.86 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.0005498/0.1942, allocations: 0.507 MB / 417.5 MB, free: 20.3 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.098e-05/0.1943, allocations: 15.97 kB / 417.5 MB, free: 20.29 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001157/0.1944, allocations: 28.64 kB / 417.5 MB, free: 20.26 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002123/0.1946, allocations: 259.6 kB / 417.8 MB, free: 19.97 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.934e-05/0.1946, allocations: 16.38 kB / 417.8 MB, free: 19.95 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.12e-05/0.1947, allocations: 20.12 kB / 417.8 MB, free: 19.93 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002657/0.195, allocations: 165.3 kB / 418 MB, free: 19.77 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.227e-05/0.195, allocations: 0 / 418 MB, free: 19.77 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.719e-05/0.195, allocations: 8 kB / 418 MB, free: 19.76 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.462e-06/0.195, allocations: 11.98 kB / 418 MB, free: 19.75 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002022/0.1952, allocations: 111.9 kB / 418.1 MB, free: 19.64 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000641/0.1959, allocations: 0.5739 MB / 418.7 MB, free: 19.01 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002475/0.1961, allocations: 154.5 kB / 418.8 MB, free: 18.85 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001319/0.1963, allocations: 88.83 kB / 418.9 MB, free: 18.76 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.275e-05/0.1963, allocations: 4 kB / 418.9 MB, free: 18.76 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002021/0.1965, allocations: 120.7 kB / 419 MB, free: 18.63 MB / 298.7 MB Notification: Performance of pre-optimization done (n=20): time 1.593e-06/0.1965, allocations: 0 / 419 MB, free: 18.63 MB / 298.7 MB Notification: Performance of matching and sorting (n=20): time 0.0003973/0.1969, allocations: 232.5 kB / 419.3 MB, free: 18.4 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.947e-05/0.197, allocations: 51.41 kB / 419.3 MB, free: 18.34 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001785/0.1971, allocations: 257 kB / 419.6 MB, free: 18.07 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.319e-05/0.1972, allocations: 33.7 kB / 419.6 MB, free: 18.04 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.439e-05/0.1972, allocations: 148.3 kB / 419.7 MB, free: 17.89 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.971e-05/0.1973, allocations: 67.08 kB / 419.8 MB, free: 17.82 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.107e-06/0.1973, allocations: 4 kB / 419.8 MB, free: 17.82 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.095e-05/0.1974, allocations: 342.8 kB / 420.1 MB, free: 17.47 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.532e-05/0.1975, allocations: 43.98 kB / 420.2 MB, free: 17.43 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001069/0.1976, allocations: 90.25 kB / 420.3 MB, free: 17.33 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001984/0.1978, allocations: 150.1 kB / 420.4 MB, free: 17.18 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.1978, allocations: 7.938 kB / 420.4 MB, free: 17.17 MB / 298.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000272/0.1981, allocations: 205.1 kB / 420.6 MB, free: 16.96 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.341e-05/0.1981, allocations: 8 kB / 420.6 MB, free: 16.95 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.428e-06/0.1981, allocations: 0 / 420.6 MB, free: 16.95 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.128e-05/0.1981, allocations: 0 / 420.6 MB, free: 16.95 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001983/0.1983, allocations: 47.97 kB / 420.7 MB, free: 16.91 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.663e-06/0.1983, allocations: 7.875 kB / 420.7 MB, free: 16.9 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001099/0.1984, allocations: 27.84 kB / 420.7 MB, free: 16.87 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.317e-05/0.1985, allocations: 12 kB / 420.7 MB, free: 16.86 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 9.019e-05/0.1986, allocations: 149.7 kB / 420.9 MB, free: 16.7 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.306e-05/0.1986, allocations: 15.81 kB / 420.9 MB, free: 16.69 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.845e-05/0.1987, allocations: 30.17 kB / 420.9 MB, free: 16.66 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.976e-06/0.1987, allocations: 4 kB / 420.9 MB, free: 16.65 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.199e-06/0.1987, allocations: 3.938 kB / 420.9 MB, free: 16.65 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.976e-06/0.1987, allocations: 7.938 kB / 420.9 MB, free: 16.64 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001914/0.1989, allocations: 289.4 kB / 421.2 MB, free: 16.31 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.1989, allocations: 0 / 421.2 MB, free: 16.31 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001687/0.1991, allocations: 35.98 kB / 421.2 MB, free: 16.27 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.265e-06/0.1991, allocations: 0 / 421.2 MB, free: 16.27 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.525e-05/0.1991, allocations: 4 kB / 421.3 MB, free: 16.27 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.1991, allocations: 0 / 421.3 MB, free: 16.27 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.542e-06/0.1991, allocations: 3.938 kB / 421.3 MB, free: 16.27 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003834/0.1995, allocations: 288.7 kB / 421.5 MB, free: 15.96 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.914e-05/0.1995, allocations: 104.8 kB / 421.6 MB, free: 15.84 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.282e-05/0.1996, allocations: 7.984 kB / 421.6 MB, free: 15.84 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.945e-05/0.1997, allocations: 11.94 kB / 421.7 MB, free: 15.82 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.978e-05/0.1997, allocations: 11.98 kB / 421.7 MB, free: 15.81 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.711e-05/0.1997, allocations: 4 kB / 421.7 MB, free: 15.81 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001229/0.1999, allocations: 192.5 kB / 421.9 MB, free: 15.62 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1999, allocations: 0 / 421.9 MB, free: 15.62 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002346/0.2001, allocations: 63.84 kB / 421.9 MB, free: 15.56 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.0008168/0.2009, allocations: 477.8 kB / 422.4 MB, free: 15.21 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002488/0.2012, allocations: 143.8 kB / 422.5 MB, free: 15.07 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.2012, allocations: 0 / 422.5 MB, free: 15.07 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00011/0.2013, allocations: 71.91 kB / 422.6 MB, free: 15 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003102/0.2017, allocations: 54.56 kB / 422.7 MB, free: 14.95 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007536/0.2024, allocations: 0.6548 MB / 423.3 MB, free: 14.27 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001318/0.2026, allocations: 0.7521 MB / 424.1 MB, free: 13.49 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 9.721e-05/0.2027, allocations: 33.92 kB / 424.1 MB, free: 13.46 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.897e-05/0.2027, allocations: 23.44 kB / 424.1 MB, free: 13.43 MB / 298.7 MB Notification: Performance of SimCode: time 3.5e-07/0.2027, allocations: 0 / 424.1 MB, free: 13.43 MB / 298.7 MB Notification: Performance of Templates: time 0.004686/0.2074, allocations: 2.547 MB / 426.7 MB, free: 10.9 MB / 298.7 MB make -j1 -f Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.makefile (rm -f Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe >> ../files/Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.sim & ./Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches