Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Thermal.HeatTransfer.Examples.Motor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1440000,variableFilter="time|core.T|winding.T",fileNamePrefix="Modelica_trunk_cpp_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_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001497/0.001497, allocations: 201.7 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.312/1.312, allocations: 226.6 MB / 244.7 MB, free: 8.164 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007538/0.0007538, allocations: 92.39 kB / 296.8 MB, free: 6.891 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002404/0.0002405, allocations: 8 kB / 356.7 MB, free: 10.92 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2156/0.2158, allocations: 51.3 MB / 408 MB, free: 27.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.001848/0.2177, allocations: 1.886 MB / 409.9 MB, free: 25.82 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001341/0.2191, allocations: 1.146 MB / 411.1 MB, free: 24.67 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001111/0.2192, allocations: 5.844 kB / 411.1 MB, free: 24.66 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003002/0.2195, allocations: 79.69 kB / 411.2 MB, free: 24.59 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003321/0.2199, allocations: 139.8 kB / 411.3 MB, free: 24.45 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003064/0.2202, allocations: 123.7 kB / 411.4 MB, free: 24.33 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002258/0.2204, allocations: 271.3 kB / 411.7 MB, free: 24.07 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001721/0.2206, allocations: 75.22 kB / 411.8 MB, free: 23.99 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001096/0.2207, allocations: 99.47 kB / 411.9 MB, free: 23.89 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001302/0.2209, allocations: 107.5 kB / 412 MB, free: 23.79 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.493e-05/0.2209, allocations: 8 kB / 412 MB, free: 23.78 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001151/0.221, allocations: 39.98 kB / 412 MB, free: 23.74 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.656e-05/0.2211, allocations: 43.83 kB / 412 MB, free: 23.7 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.16e-05/0.2212, allocations: 121.2 kB / 412.2 MB, free: 23.57 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001959/0.2214, allocations: 224.4 kB / 412.4 MB, free: 23.36 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.2214, allocations: 0 / 412.4 MB, free: 23.36 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.392e-06/0.2214, allocations: 0 / 412.4 MB, free: 23.36 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.099e-06/0.2214, allocations: 0 / 412.4 MB, free: 23.36 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.0005785/0.222, allocations: 0.5087 MB / 412.9 MB, free: 22.8 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.505e-05/0.222, allocations: 12.03 kB / 412.9 MB, free: 22.79 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001214/0.2222, allocations: 32.64 kB / 412.9 MB, free: 22.76 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002216/0.2224, allocations: 259.6 kB / 413.2 MB, free: 22.46 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.916e-05/0.2224, allocations: 8.375 kB / 413.2 MB, free: 22.46 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.189e-05/0.2225, allocations: 28.11 kB / 413.2 MB, free: 22.43 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002595/0.2227, allocations: 157.4 kB / 413.4 MB, free: 22.27 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.439e-05/0.2227, allocations: 4 kB / 413.4 MB, free: 22.27 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.989e-05/0.2228, allocations: 8 kB / 413.4 MB, free: 22.26 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.342e-06/0.2228, allocations: 11.94 kB / 413.4 MB, free: 22.25 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002091/0.223, allocations: 115.9 kB / 413.5 MB, free: 22.13 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000683/0.2237, allocations: 0.5661 MB / 414.1 MB, free: 21.52 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002548/0.224, allocations: 170.4 kB / 414.2 MB, free: 21.34 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001265/0.2241, allocations: 83.23 kB / 414.3 MB, free: 21.26 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.777e-05/0.2241, allocations: 4 kB / 414.3 MB, free: 21.25 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002048/0.2243, allocations: 115.3 kB / 414.4 MB, free: 21.13 MB / 298.7 MB Notification: Performance of pre-optimization done (n=20): time 1.543e-06/0.2244, allocations: 0 / 414.4 MB, free: 21.13 MB / 298.7 MB Notification: Performance of matching and sorting (n=20): time 0.0004136/0.2248, allocations: 240.5 kB / 414.7 MB, free: 20.89 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.654e-05/0.2248, allocations: 55.41 kB / 414.7 MB, free: 20.82 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001876/0.225, allocations: 253 kB / 415 MB, free: 20.57 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.525e-05/0.225, allocations: 29.7 kB / 415 MB, free: 20.53 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.122e-05/0.2251, allocations: 148.3 kB / 415.2 MB, free: 20.38 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.866e-05/0.2251, allocations: 67.09 kB / 415.2 MB, free: 20.32 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.237e-06/0.2252, allocations: 4 kB / 415.2 MB, free: 20.31 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.784e-05/0.2252, allocations: 338.8 kB / 415.6 MB, free: 19.97 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.324e-05/0.2253, allocations: 51.97 kB / 415.6 MB, free: 19.92 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001007/0.2254, allocations: 87.34 kB / 415.7 MB, free: 19.82 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001939/0.2256, allocations: 150.7 kB / 415.8 MB, free: 19.67 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.2256, allocations: 4 kB / 415.8 MB, free: 19.66 MB / 298.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002642/0.2259, allocations: 197.2 kB / 416 MB, free: 19.46 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.386e-05/0.2259, allocations: 4 kB / 416 MB, free: 19.46 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.51e-06/0.2259, allocations: 0 / 416 MB, free: 19.46 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.545e-05/0.226, allocations: 11.97 kB / 416.1 MB, free: 19.45 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001931/0.2262, allocations: 47.92 kB / 416.1 MB, free: 19.4 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.983e-06/0.2262, allocations: 3.938 kB / 416.1 MB, free: 19.4 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001081/0.2263, allocations: 35.83 kB / 416.1 MB, free: 19.36 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.244e-05/0.2263, allocations: 4 kB / 416.1 MB, free: 19.36 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.358e-05/0.2264, allocations: 149.5 kB / 416.3 MB, free: 19.2 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.406e-05/0.2264, allocations: 23.8 kB / 416.3 MB, free: 19.18 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.794e-05/0.2265, allocations: 26.19 kB / 416.3 MB, free: 19.15 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.394e-06/0.2265, allocations: 0 / 416.3 MB, free: 19.15 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/0.2265, allocations: 3.938 kB / 416.3 MB, free: 19.15 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.048e-06/0.2265, allocations: 3.984 kB / 416.3 MB, free: 19.14 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001921/0.2267, allocations: 285.4 kB / 416.6 MB, free: 18.82 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.213e-06/0.2267, allocations: 4 kB / 416.6 MB, free: 18.81 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001582/0.2269, allocations: 35.92 kB / 416.7 MB, free: 18.78 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-06/0.2269, allocations: 0 / 416.7 MB, free: 18.78 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.739e-05/0.2269, allocations: 15.92 kB / 416.7 MB, free: 18.76 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.2269, allocations: 0 / 416.7 MB, free: 18.76 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.2269, allocations: 3.938 kB / 416.7 MB, free: 18.76 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003835/0.2273, allocations: 276.7 kB / 417 MB, free: 18.47 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.38e-05/0.2274, allocations: 108.7 kB / 417.1 MB, free: 18.34 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.035e-05/0.2274, allocations: 8.062 kB / 417.1 MB, free: 18.34 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.453e-05/0.2275, allocations: 11.94 kB / 417.1 MB, free: 18.32 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.603e-05/0.2276, allocations: 11.98 kB / 417.1 MB, free: 18.31 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.787e-05/0.2276, allocations: 11.98 kB / 417.1 MB, free: 18.3 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001216/0.2277, allocations: 196.4 kB / 417.3 MB, free: 18.11 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2277, allocations: 0 / 417.3 MB, free: 18.11 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002382/0.228, allocations: 63.83 kB / 417.4 MB, free: 18.05 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007475/0.2287, allocations: 393.4 kB / 417.7 MB, free: 17.8 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002551/0.229, allocations: 138.7 kB / 417.9 MB, free: 17.66 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.229, allocations: 0 / 417.9 MB, free: 17.66 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001076/0.2291, allocations: 71.91 kB / 417.9 MB, free: 17.59 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003077/0.2294, allocations: 44.92 kB / 418 MB, free: 17.55 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00077/0.2302, allocations: 0.6839 MB / 418.7 MB, free: 16.84 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001425/0.2304, allocations: 0.7482 MB / 419.4 MB, free: 16.06 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.962e-05/0.2304, allocations: 27.44 kB / 419.4 MB, free: 16.04 MB / 298.7 MB Notification: Performance of SimCode: time 2.1e-07/0.2304, allocations: 0 / 419.4 MB, free: 16.04 MB / 298.7 MB Notification: Performance of Templates: time 0.003903/0.2343, allocations: 3.151 MB / 422.6 MB, free: 12.89 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor.makefile (rm -f Modelica_trunk_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe >> ../files/Modelica_trunk_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor.sim & ./Modelica_trunk_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches