Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.ComplexMath.TestComplexFunctions.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.ComplexMath.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.ComplexMath.TestComplexFunctions") translateModel(ModelicaTest.ComplexMath.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.ComplexMath.TestComplexFunctions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001331/0.001331, allocations: 190.9 kB / 16.78 MB, free: 5.027 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.252/1.252, allocations: 226.5 MB / 244.1 MB, free: 6.508 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008831/0.0008829, allocations: 97.69 kB / 296.1 MB, free: 6.715 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3076/0.3076, allocations: 44.82 MB / 393 MB, free: 35.75 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002736/0.0002738, allocations: 8 kB / 465.9 MB, free: 12.75 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3123/0.3125, allocations: 62.95 MB / 0.5165 GB, free: 37.3 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0985/0.4111, allocations: 90.76 MB / 0.6051 GB, free: 14.67 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001865/0.4113, allocations: 63.97 kB / 0.6051 GB, free: 14.61 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02646/0.4378, allocations: 9.985 MB / 0.6149 GB, free: 4.609 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.512e-06/0.4378, allocations: 0 / 0.6149 GB, free: 4.609 MB / 426.7 MB Notification: Performance of Transformations before backend: time 3.867e-06/0.4378, allocations: 0 / 0.6149 GB, free: 4.609 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.000517/0.4383, allocations: 488.9 kB / 0.6154 GB, free: 4.074 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.192e-05/0.4384, allocations: 11.97 kB / 0.6154 GB, free: 4.062 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.753e-05/0.4384, allocations: 0.9375 kB / 0.6154 GB, free: 4.062 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.572e-05/0.4385, allocations: 160.4 kB / 0.6155 GB, free: 3.867 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.05e-05/0.4385, allocations: 384 / 0.6155 GB, free: 3.867 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.221e-06/0.4385, allocations: 4.375 kB / 0.6155 GB, free: 3.863 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.723e-05/0.4386, allocations: 30.25 kB / 0.6156 GB, free: 3.828 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.275e-06/0.4386, allocations: 4.172 kB / 0.6156 GB, free: 3.824 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.155e-06/0.4386, allocations: 3.938 kB / 0.6156 GB, free: 3.82 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.999e-06/0.4387, allocations: 8 kB / 0.6156 GB, free: 3.812 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.366e-05/0.4387, allocations: 3.938 kB / 0.6156 GB, free: 3.809 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001164/0.4388, allocations: 145.7 kB / 0.6157 GB, free: 3.617 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.43e-05/0.4388, allocations: 18.61 kB / 0.6157 GB, free: 3.59 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.174e-05/0.4389, allocations: 4.859 kB / 0.6157 GB, free: 3.582 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.022e-06/0.4389, allocations: 0 / 0.6157 GB, free: 3.582 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.344e-05/0.4389, allocations: 60.25 kB / 0.6158 GB, free: 3.508 MB / 426.7 MB Notification: Performance of pre-optimization done (n=1): time 8.52e-07/0.4389, allocations: 4 kB / 0.6158 GB, free: 3.504 MB / 426.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001395/0.4391, allocations: 75.25 kB / 0.6159 GB, free: 3.418 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.709e-05/0.4391, allocations: 81.11 kB / 0.616 GB, free: 3.32 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.806e-05/0.4392, allocations: 89.86 kB / 0.616 GB, free: 3.223 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 1.195e-05/0.4392, allocations: 25.7 kB / 0.6161 GB, free: 3.191 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.146e-05/0.4392, allocations: 80.14 kB / 0.6161 GB, free: 3.109 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.608e-05/0.4392, allocations: 0 / 0.6161 GB, free: 3.109 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.913e-06/0.4392, allocations: 0 / 0.6161 GB, free: 3.109 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001143/0.4393, allocations: 319 kB / 0.6164 GB, free: 2.789 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.502e-06/0.4394, allocations: 0 / 0.6164 GB, free: 2.789 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.187e-06/0.4394, allocations: 4 kB / 0.6165 GB, free: 2.785 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.144e-05/0.4394, allocations: 64.27 kB / 0.6165 GB, free: 2.707 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.4394, allocations: 3.938 kB / 0.6165 GB, free: 2.703 MB / 426.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.813e-05/0.4395, allocations: 63.33 kB / 0.6166 GB, free: 2.629 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.486e-05/0.4395, allocations: 36.36 kB / 0.6166 GB, free: 2.59 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.777e-06/0.4395, allocations: 0 / 0.6166 GB, free: 2.59 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.043e-05/0.4395, allocations: 8.031 kB / 0.6166 GB, free: 2.582 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.12e-07/0.4395, allocations: 0 / 0.6166 GB, free: 2.582 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.409e-06/0.4396, allocations: 0 / 0.6166 GB, free: 2.582 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.144e-05/0.4396, allocations: 0 / 0.6166 GB, free: 2.582 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.602e-06/0.4396, allocations: 4 kB / 0.6166 GB, free: 2.578 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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 7.052e-05/0.4397, allocations: 131.5 kB / 0.6167 GB, free: 2.434 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.961e-06/0.4397, allocations: 0 / 0.6167 GB, free: 2.434 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.156e-05/0.4397, allocations: 14.64 kB / 0.6168 GB, free: 2.422 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.033e-06/0.4397, allocations: 4 kB / 0.6168 GB, free: 2.418 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.915e-06/0.4397, allocations: 4 kB / 0.6168 GB, free: 2.414 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.773e-06/0.4397, allocations: 0 / 0.6168 GB, free: 2.414 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8e-05/0.4398, allocations: 149.6 kB / 0.6169 GB, free: 2.219 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.91e-07/0.4398, allocations: 0 / 0.6169 GB, free: 2.219 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.91e-07/0.4398, allocations: 0 / 0.6169 GB, free: 2.219 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.293e-06/0.4398, allocations: 0 / 0.6169 GB, free: 2.219 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.504e-06/0.4398, allocations: 7.938 kB / 0.6169 GB, free: 2.211 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.71e-07/0.4398, allocations: 0 / 0.6169 GB, free: 2.211 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/0.4398, allocations: 11.92 kB / 0.6169 GB, free: 2.199 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.813e-05/0.4399, allocations: 94.83 kB / 0.617 GB, free: 2.082 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.738e-05/0.44, allocations: 77.11 kB / 0.6171 GB, free: 1.988 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.315e-05/0.44, allocations: 7.922 kB / 0.6171 GB, free: 1.98 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.336e-06/0.44, allocations: 0 / 0.6171 GB, free: 1.98 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.877e-06/0.44, allocations: 0 / 0.6171 GB, free: 1.98 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.998e-06/0.44, allocations: 4 kB / 0.6171 GB, free: 1.977 MB / 426.7 MB Notification: Performance of sorting global known variables: time 2.136e-05/0.44, allocations: 75.28 kB / 0.6172 GB, free: 1.902 MB / 426.7 MB Notification: Performance of sort global known variables: time 1e-07/0.44, allocations: 0 / 0.6172 GB, free: 1.902 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0005068/0.4406, allocations: 199.6 kB / 0.6174 GB, free: 1.707 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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 Backend phase and start with SimCode phase: time 0.0006906/0.4413, allocations: 427.5 kB / 0.6178 GB, free: 1.289 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 7.595e-05/0.4413, allocations: 63.34 kB / 0.6178 GB, free: 1.215 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.372e-06/0.4414, allocations: 0 / 0.6178 GB, free: 1.215 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 4.188e-05/0.4414, allocations: 59.39 kB / 0.6179 GB, free: 1.145 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001087/0.4415, allocations: 4 kB / 0.6179 GB, free: 1.141 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001494/0.4417, allocations: 96.47 kB / 0.618 GB, free: 1.012 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002117/0.4419, allocations: 0.6692 MB / 0.6186 GB, free: 324 kB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.113e-05/0.4419, allocations: 11.44 kB / 0.6187 GB, free: 312 kB / 426.7 MB Notification: Performance of SimCode: time 2.2e-07/0.4419, allocations: 3.938 kB / 0.6187 GB, free: 308 kB / 426.7 MB Notification: Performance of Templates: time 0.005347/0.4473, allocations: 3.904 MB / 0.6225 GB, free: 12.4 MB / 442.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.ComplexMath.TestComplexFunctions.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.ComplexMath.TestComplexFunctions.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.ComplexMath.TestComplexFunctions.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.ComplexMath.TestComplexFunctions --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.ComplexMath.TestComplexFunctions.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.ComplexMath.TestComplexFunctions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/ComplexMath/TestComplexFunctions/TestComplexFunctions.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.ComplexMath.TestComplexFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches