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.002008/0.002008, allocations: 195.4 kB / 18.07 MB, free: 3.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.636/2.636, allocations: 226.5 MB / 245.4 MB, free: 8.098 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001076/0.001076, allocations: 94.23 kB / 297.4 MB, free: 6.887 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004288/0.0004293, allocations: 8 kB / 357.4 MB, free: 10.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5062/0.5067, allocations: 51.29 MB / 408.7 MB, free: 27.74 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.186/0.6928, allocations: 81.93 MB / 490.6 MB, free: 9.699 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004382/0.6933, allocations: 75.97 kB / 490.7 MB, free: 9.625 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02855/0.7219, allocations: 6.646 MB / 497.3 MB, free: 2.98 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.286e-06/0.7219, allocations: 0 / 497.3 MB, free: 2.98 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.968e-05/0.722, allocations: 4 kB / 497.3 MB, free: 2.977 MB / 362.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.001346/0.7234, allocations: 0.5464 MB / 497.9 MB, free: 2.379 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.511e-05/0.7234, allocations: 12.03 kB / 497.9 MB, free: 2.367 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002517/0.7237, allocations: 28.66 kB / 497.9 MB, free: 2.34 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006124/0.7243, allocations: 267.7 kB / 498.2 MB, free: 2.039 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.7e-05/0.7244, allocations: 12.38 kB / 498.2 MB, free: 2.027 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.785e-05/0.7245, allocations: 20.36 kB / 498.2 MB, free: 2.008 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005535/0.725, allocations: 161.9 kB / 498.3 MB, free: 1.844 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.15e-05/0.7251, allocations: 192 / 498.3 MB, free: 1.844 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.283e-05/0.7251, allocations: 15.92 kB / 498.4 MB, free: 1.828 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.284e-05/0.7252, allocations: 4 kB / 498.4 MB, free: 1.824 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000485/0.7257, allocations: 119.9 kB / 498.5 MB, free: 1.707 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001493/0.7272, allocations: 0.574 MB / 499.1 MB, free: 1.082 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005597/0.7278, allocations: 177 kB / 499.2 MB, free: 0.9023 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002883/0.7281, allocations: 92.75 kB / 499.3 MB, free: 0.8086 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.073e-05/0.7281, allocations: 4 kB / 499.3 MB, free: 0.8047 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004038/0.7286, allocations: 119.1 kB / 499.4 MB, free: 0.6797 MB / 362.7 MB Notification: Performance of pre-optimization done (n=20): time 4.569e-06/0.7286, allocations: 0 / 499.4 MB, free: 0.6797 MB / 362.7 MB Notification: Performance of matching and sorting (n=20): time 0.001084/0.7297, allocations: 245.2 kB / 499.7 MB, free: 444 kB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.505e-05/0.7298, allocations: 55.41 kB / 499.7 MB, free: 376 kB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005203/0.7303, allocations: 268.9 kB / 500 MB, free: 92 kB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.791e-05/0.7304, allocations: 25.7 kB / 0.4883 GB, free: 60 kB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002161/0.7306, allocations: 156.2 kB / 0.4885 GB, free: 15.9 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001188/0.7307, allocations: 67 kB / 0.4885 GB, free: 15.84 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.958e-05/0.7308, allocations: 4 kB / 0.4885 GB, free: 15.83 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002148/0.731, allocations: 334.8 kB / 0.4888 GB, free: 15.5 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002076/0.7312, allocations: 55.97 kB / 0.4889 GB, free: 15.44 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000274/0.7315, allocations: 91.27 kB / 0.489 GB, free: 15.34 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00049/0.732, allocations: 154.7 kB / 0.4891 GB, free: 15.18 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.732, allocations: 0 / 0.4891 GB, free: 15.18 MB / 378.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0006712/0.7327, allocations: 213.2 kB / 0.4893 GB, free: 14.96 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.993e-05/0.7328, allocations: 8 kB / 0.4893 GB, free: 14.96 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.847e-06/0.7328, allocations: 0 / 0.4893 GB, free: 14.96 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.048e-05/0.7328, allocations: 0 / 0.4893 GB, free: 14.96 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004138/0.7332, allocations: 47.97 kB / 0.4894 GB, free: 14.91 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.589e-05/0.7333, allocations: 3.938 kB / 0.4894 GB, free: 14.91 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003043/0.7336, allocations: 19.94 kB / 0.4894 GB, free: 14.89 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.944e-05/0.7336, allocations: 16 kB / 0.4894 GB, free: 14.87 MB / 378.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 0.0002038/0.7339, allocations: 145.5 kB / 0.4896 GB, free: 14.72 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.893e-05/0.7339, allocations: 19.72 kB / 0.4896 GB, free: 14.7 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005954/0.7345, allocations: 226.3 kB / 0.4898 GB, free: 14.48 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.63e-06/0.7346, allocations: 0 / 0.4898 GB, free: 14.48 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.168e-05/0.7346, allocations: 7.984 kB / 0.4898 GB, free: 14.47 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.981e-06/0.7346, allocations: 0 / 0.4898 GB, free: 14.47 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004435/0.735, allocations: 301.3 kB / 0.4901 GB, free: 14.12 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.913e-06/0.7351, allocations: 4 kB / 0.4901 GB, free: 14.12 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002742/0.7353, allocations: 39.97 kB / 0.4901 GB, free: 14.08 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.168e-06/0.7354, allocations: 7.938 kB / 0.4901 GB, free: 14.07 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.293e-05/0.7354, allocations: 0 / 0.4901 GB, free: 14.07 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.461e-06/0.7354, allocations: 4 kB / 0.4901 GB, free: 14.07 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.7354, allocations: 0 / 0.4901 GB, free: 14.07 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007464/0.7362, allocations: 305.7 kB / 0.4904 GB, free: 13.75 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001184/0.7363, allocations: 112.8 kB / 0.4905 GB, free: 13.62 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.155e-05/0.7364, allocations: 4 kB / 0.4905 GB, free: 13.62 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001368/0.7365, allocations: 11.98 kB / 0.4906 GB, free: 13.61 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.796e-05/0.7366, allocations: 7.984 kB / 0.4906 GB, free: 13.6 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.641e-05/0.7366, allocations: 23.81 kB / 0.4906 GB, free: 13.58 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002909/0.7369, allocations: 192.5 kB / 0.4908 GB, free: 13.39 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.7369, allocations: 0 / 0.4908 GB, free: 13.39 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005508/0.7375, allocations: 63.94 kB / 0.4908 GB, free: 13.32 MB / 378.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 (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.001542/0.739, allocations: 431.7 kB / 0.4912 GB, free: 13.04 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005603/0.7396, allocations: 150.1 kB / 0.4914 GB, free: 12.89 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.7397, allocations: 0 / 0.4914 GB, free: 12.89 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002668/0.7399, allocations: 83.84 kB / 0.4915 GB, free: 12.81 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006105/0.7406, allocations: 40.41 kB / 0.4915 GB, free: 12.77 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001825/0.7424, allocations: 0.6995 MB / 0.4922 GB, free: 12.04 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004655/0.7429, allocations: 0.7521 MB / 0.4929 GB, free: 11.26 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001268/0.743, allocations: 27.42 kB / 0.493 GB, free: 11.23 MB / 378.7 MB Notification: Performance of SimCode: time 6.81e-07/0.7431, allocations: 0 / 0.493 GB, free: 11.23 MB / 378.7 MB Notification: Performance of Templates: time 0.01013/0.7532, allocations: 3.248 MB / 0.4961 GB, free: 7.996 MB / 378.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/jenkins1/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