Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001648/0.001648, allocations: 109 kB / 18.45 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001922/0.001922, allocations: 210.8 kB / 19.4 MB, free: 3.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.389/1.389, allocations: 227.4 MB / 247.6 MB, free: 10.53 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001288/0.001288, allocations: 55.91 kB / 359.4 MB, free: 12.97 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2665/0.2678, allocations: 50.54 MB / 409.9 MB, free: 1.621 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.003642/0.2715, allocations: 2.247 MB / 412.2 MB, free: 15.36 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002015/0.2736, allocations: 1.22 MB / 413.4 MB, free: 14.13 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001165/0.2737, allocations: 7.938 kB / 413.4 MB, free: 14.12 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003449/0.2741, allocations: 91.55 kB / 413.5 MB, free: 14.04 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004085/0.2745, allocations: 163.1 kB / 413.6 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002823/0.2748, allocations: 123.6 kB / 413.8 MB, free: 13.75 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003343/0.2751, allocations: 294.8 kB / 414 MB, free: 13.46 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002069/0.2754, allocations: 88.56 kB / 414.1 MB, free: 13.38 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001572/0.2755, allocations: 115.6 kB / 414.2 MB, free: 13.26 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002513/0.2758, allocations: 123.5 kB / 414.4 MB, free: 13.14 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.609e-05/0.2758, allocations: 20 kB / 414.4 MB, free: 13.12 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001326/0.276, allocations: 51.98 kB / 414.4 MB, free: 13.07 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.329e-05/0.2761, allocations: 55.77 kB / 414.5 MB, free: 13.02 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000118/0.2762, allocations: 115.4 kB / 414.6 MB, free: 12.9 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004235/0.2766, allocations: 292.1 kB / 414.9 MB, free: 12.62 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.646e-06/0.2766, allocations: 4 kB / 414.9 MB, free: 12.62 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.2766, allocations: 0 / 414.9 MB, free: 12.62 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.903e-06/0.2766, allocations: 4 kB / 414.9 MB, free: 12.61 MB / 334.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.0007883/0.2774, allocations: 0.5534 MB / 415.5 MB, free: 12.01 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.345e-05/0.2775, allocations: 8.031 kB / 415.5 MB, free: 12 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000147/0.2776, allocations: 36.55 kB / 415.5 MB, free: 11.97 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003377/0.278, allocations: 259.7 kB / 415.7 MB, free: 11.68 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.047e-05/0.278, allocations: 16.38 kB / 415.8 MB, free: 11.66 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.984e-05/0.2781, allocations: 24.11 kB / 415.8 MB, free: 11.64 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003174/0.2784, allocations: 153.6 kB / 415.9 MB, free: 11.48 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.375e-05/0.2784, allocations: 3.906 kB / 415.9 MB, free: 11.48 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.343e-05/0.2784, allocations: 12 kB / 416 MB, free: 11.46 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.573e-06/0.2784, allocations: 4 kB / 416 MB, free: 11.46 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002296/0.2787, allocations: 111.7 kB / 416.1 MB, free: 11.35 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008964/0.2796, allocations: 0.5702 MB / 416.6 MB, free: 10.73 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003444/0.2799, allocations: 166.5 kB / 416.8 MB, free: 10.56 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001442/0.2801, allocations: 84.83 kB / 416.9 MB, free: 10.47 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.645e-05/0.2801, allocations: 0 / 416.9 MB, free: 10.47 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003357/0.2805, allocations: 125.5 kB / 417 MB, free: 10.34 MB / 334.1 MB Notification: Performance of pre-optimization done (n=20): time 1.483e-06/0.2805, allocations: 0 / 417 MB, free: 10.34 MB / 334.1 MB Notification: Performance of matching and sorting (n=20): time 0.0004876/0.281, allocations: 225.7 kB / 417.2 MB, free: 10.11 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.111e-05/0.281, allocations: 51.41 kB / 417.3 MB, free: 10.05 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002828/0.2813, allocations: 268.9 kB / 417.5 MB, free: 9.777 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.235e-05/0.2814, allocations: 29.7 kB / 417.6 MB, free: 9.742 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.828e-05/0.2815, allocations: 140.4 kB / 417.7 MB, free: 9.602 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.756e-05/0.2815, allocations: 67.02 kB / 417.8 MB, free: 9.535 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.281e-05/0.2816, allocations: 49.64 kB / 417.8 MB, free: 9.48 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001234/0.2817, allocations: 338.8 kB / 418.1 MB, free: 9.141 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001074/0.2818, allocations: 51.92 kB / 418.2 MB, free: 9.09 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001377/0.282, allocations: 91.33 kB / 418.3 MB, free: 8.988 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002389/0.2822, allocations: 150.7 kB / 418.4 MB, free: 8.832 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.2822, allocations: 0 / 418.4 MB, free: 8.832 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003325/0.2826, allocations: 201.2 kB / 418.6 MB, free: 8.629 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.677e-05/0.2826, allocations: 8 kB / 418.6 MB, free: 8.621 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/0.2826, allocations: 0 / 418.6 MB, free: 8.621 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.352e-05/0.2826, allocations: 0 / 418.6 MB, free: 8.621 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002212/0.2829, allocations: 51.91 kB / 418.7 MB, free: 8.57 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.558e-06/0.2829, allocations: 8.031 kB / 418.7 MB, free: 8.562 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001005/0.283, allocations: 15.84 kB / 418.7 MB, free: 8.547 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.169e-05/0.283, allocations: 12 kB / 418.7 MB, free: 8.535 MB / 334.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.0001462/0.2832, allocations: 152.5 kB / 418.9 MB, free: 8.379 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.646e-05/0.2832, allocations: 23.72 kB / 418.9 MB, free: 8.355 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.077e-05/0.2833, allocations: 30.17 kB / 418.9 MB, free: 8.324 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.719e-06/0.2833, allocations: 4 kB / 418.9 MB, free: 8.32 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.665e-06/0.2833, allocations: 3.938 kB / 418.9 MB, free: 8.316 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.2833, allocations: 0 / 418.9 MB, free: 8.316 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002745/0.2836, allocations: 289.4 kB / 419.2 MB, free: 7.984 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.2836, allocations: 0 / 419.2 MB, free: 7.984 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001778/0.2838, allocations: 35.98 kB / 419.3 MB, free: 7.949 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.998e-06/0.2838, allocations: 4 kB / 419.3 MB, free: 7.945 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.609e-05/0.2838, allocations: 4 kB / 419.3 MB, free: 7.941 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.803e-06/0.2839, allocations: 0 / 419.3 MB, free: 7.941 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.967e-06/0.2839, allocations: 7.875 kB / 419.3 MB, free: 7.934 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004855/0.2844, allocations: 291.5 kB / 419.6 MB, free: 7.633 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.112e-05/0.2844, allocations: 100.8 kB / 419.7 MB, free: 7.516 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.512e-05/0.2845, allocations: 4 kB / 419.7 MB, free: 7.512 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.285e-05/0.2846, allocations: 11.94 kB / 419.7 MB, free: 7.5 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.495e-05/0.2846, allocations: 15.91 kB / 419.7 MB, free: 7.484 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.959e-05/0.2846, allocations: 8 kB / 419.7 MB, free: 7.477 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001766/0.2848, allocations: 192.5 kB / 419.9 MB, free: 7.289 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2848, allocations: 0 / 419.9 MB, free: 7.289 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002758/0.2851, allocations: 55.98 kB / 419.9 MB, free: 7.234 MB / 334.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.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.0009418/0.2861, allocations: 419 kB / 420.3 MB, free: 6.957 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003202/0.2864, allocations: 135.9 kB / 420.5 MB, free: 6.824 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.2864, allocations: 0 / 420.5 MB, free: 6.824 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001354/0.2865, allocations: 71.91 kB / 420.5 MB, free: 6.754 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003569/0.2869, allocations: 47.58 kB / 420.6 MB, free: 6.711 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009718/0.2879, allocations: 0.5721 MB / 421.2 MB, free: 6.109 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003164/0.2882, allocations: 0.7559 MB / 421.9 MB, free: 5.324 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.323e-05/0.2883, allocations: 23.44 kB / 421.9 MB, free: 5.301 MB / 334.1 MB Notification: Performance of SimCode: time 2.1e-07/0.2883, allocations: 0 / 421.9 MB, free: 5.301 MB / 334.1 MB Notification: Performance of Templates: time 0.005175/0.2935, allocations: 3.211 MB / 425.2 MB, free: 2.098 MB / 334.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/HeatTransfer/Examples/Motor/Motor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches