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.001632/0.001632, allocations: 198.3 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.282/1.282, allocations: 226.5 MB / 243.4 MB, free: 6.363 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007369/0.0007368, allocations: 103.6 kB / 295.5 MB, free: 6.633 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.306/0.306, allocations: 44.81 MB / 392.3 MB, free: 35.67 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003753/0.0003754, allocations: 4 kB / 465.3 MB, free: 12.65 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3547/0.3551, allocations: 62.96 MB / 0.5159 GB, free: 37.29 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.0005249/0.3557, allocations: 196.1 kB / 0.516 GB, free: 37.16 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002338/0.358, allocations: 2.248 MB / 0.5182 GB, free: 35.55 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.828e-05/0.3581, allocations: 0 / 0.5182 GB, free: 35.55 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.084e-05/0.3581, allocations: 0 / 0.5182 GB, free: 35.55 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 7.564e-06/0.3581, allocations: 0 / 0.5182 GB, free: 35.55 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/ComplexMath.mo:4:3-189:23:writable] Warning: Pure function ‘ModelicaTest.ComplexMath.ComplexFunctions‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.001802/0.3599, allocations: 0.9111 MB / 0.5191 GB, free: 35.01 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.132e-05/0.36, allocations: 6.375 kB / 0.5191 GB, free: 35.01 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.89e-05/0.36, allocations: 0 / 0.5191 GB, free: 35.01 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.553e-05/0.36, allocations: 0 / 0.5191 GB, free: 35.01 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.498e-05/0.3601, allocations: 6.969 kB / 0.5191 GB, free: 35 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 6.181e-06/0.3601, allocations: 0 / 0.5191 GB, free: 35 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001163/0.3612, allocations: 0.9401 MB / 0.5201 GB, free: 34.73 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 8.216e-06/0.3613, allocations: 0 / 0.5201 GB, free: 34.73 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.614e-05/0.3613, allocations: 25.7 kB / 0.5201 GB, free: 34.7 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000303/0.3616, allocations: 276.2 kB / 0.5204 GB, free: 34.61 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.3616, allocations: 0 / 0.5204 GB, free: 34.61 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.3616, allocations: 3.938 kB / 0.5204 GB, free: 34.6 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.687e-06/0.3616, allocations: 0 / 0.5204 GB, free: 34.6 MB / 378.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.0003213/0.362, allocations: 448.7 kB / 0.5208 GB, free: 34.16 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.81e-05/0.362, allocations: 8.719 kB / 0.5208 GB, free: 34.16 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.422e-05/0.362, allocations: 4.266 kB / 0.5208 GB, free: 34.16 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.817e-05/0.3621, allocations: 162.9 kB / 0.521 GB, free: 33.96 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.346e-06/0.3621, allocations: 384 / 0.521 GB, free: 33.96 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.047e-06/0.3621, allocations: 384 / 0.521 GB, free: 33.96 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.336e-05/0.3622, allocations: 36.53 kB / 0.521 GB, free: 33.92 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.993e-06/0.3622, allocations: 0 / 0.521 GB, free: 33.92 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.214e-06/0.3623, allocations: 0 / 0.521 GB, free: 33.92 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.899e-06/0.3623, allocations: 6.531 kB / 0.521 GB, free: 33.92 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.559e-05/0.3623, allocations: 3.281 kB / 0.521 GB, free: 33.92 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.948e-05/0.3624, allocations: 144.5 kB / 0.5211 GB, free: 33.73 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.054e-05/0.3624, allocations: 22.52 kB / 0.5212 GB, free: 33.7 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.234e-05/0.3624, allocations: 7.703 kB / 0.5212 GB, free: 33.69 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.724e-06/0.3624, allocations: 3.984 kB / 0.5212 GB, free: 33.69 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.701e-05/0.3625, allocations: 67.53 kB / 0.5212 GB, free: 33.61 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 8.71e-07/0.3625, allocations: 0 / 0.5212 GB, free: 33.61 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001373/0.3626, allocations: 59.34 kB / 0.5213 GB, free: 33.55 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.73e-05/0.3627, allocations: 87.64 kB / 0.5214 GB, free: 33.45 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.797e-05/0.3627, allocations: 93.23 kB / 0.5215 GB, free: 33.35 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.841e-06/0.3627, allocations: 25.7 kB / 0.5215 GB, free: 33.32 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.626e-06/0.3627, allocations: 80.14 kB / 0.5216 GB, free: 33.23 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.51e-05/0.3627, allocations: 1.547 kB / 0.5216 GB, free: 33.23 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.264e-06/0.3627, allocations: 0 / 0.5216 GB, free: 33.23 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.359e-05/0.3628, allocations: 317.8 kB / 0.5219 GB, free: 32.92 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.774e-06/0.3628, allocations: 0 / 0.5219 GB, free: 32.92 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.207e-06/0.3629, allocations: 0 / 0.5219 GB, free: 32.92 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.122e-05/0.3629, allocations: 61.64 kB / 0.5219 GB, free: 32.85 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.393e-06/0.3629, allocations: 0 / 0.5219 GB, free: 32.85 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.882e-05/0.3629, allocations: 64.11 kB / 0.522 GB, free: 32.78 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.602e-05/0.363, allocations: 41.83 kB / 0.522 GB, free: 32.74 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.808e-06/0.363, allocations: 3.938 kB / 0.522 GB, free: 32.74 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.22e-05/0.363, allocations: 6.688 kB / 0.522 GB, free: 32.73 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.61e-07/0.363, allocations: 0 / 0.522 GB, free: 32.73 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.969e-06/0.363, allocations: 0 / 0.522 GB, free: 32.73 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.418e-05/0.363, allocations: 0 / 0.522 GB, free: 32.73 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.272e-06/0.3631, allocations: 0 / 0.522 GB, free: 32.73 MB / 378.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 4.868e-05/0.3631, allocations: 137.3 kB / 0.5222 GB, free: 32.59 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.304e-06/0.3631, allocations: 10.41 kB / 0.5222 GB, free: 32.58 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.205e-06/0.3631, allocations: 6.719 kB / 0.5222 GB, free: 32.58 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.02e-07/0.3631, allocations: 0 / 0.5222 GB, free: 32.58 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.467e-06/0.3631, allocations: 4 kB / 0.5222 GB, free: 32.58 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.445e-06/0.3632, allocations: 0 / 0.5222 GB, free: 32.58 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.053e-05/0.3632, allocations: 151.6 kB / 0.5223 GB, free: 32.39 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.91e-07/0.3632, allocations: 0 / 0.5223 GB, free: 32.39 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.91e-07/0.3632, allocations: 0 / 0.5223 GB, free: 32.39 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.3632, allocations: 6.719 kB / 0.5223 GB, free: 32.38 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.28e-06/0.3632, allocations: 0 / 0.5223 GB, free: 32.38 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.52e-07/0.3632, allocations: 0 / 0.5223 GB, free: 32.38 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.3632, allocations: 0 / 0.5223 GB, free: 32.38 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.444e-05/0.3633, allocations: 97.2 kB / 0.5224 GB, free: 32.28 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.409e-05/0.3633, allocations: 77.11 kB / 0.5225 GB, free: 32.18 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.354e-05/0.3634, allocations: 14.03 kB / 0.5225 GB, free: 32.18 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.406e-06/0.3634, allocations: 0 / 0.5225 GB, free: 32.18 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.44e-05/0.3634, allocations: 0 / 0.5225 GB, free: 32.18 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.314e-06/0.3634, allocations: 0 / 0.5225 GB, free: 32.18 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.087e-05/0.3634, allocations: 78.12 kB / 0.5226 GB, free: 32.1 MB / 378.7 MB Notification: Performance of sort global known variables: time 8e-08/0.3634, allocations: 0 / 0.5226 GB, free: 32.1 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003752/0.3638, allocations: 156 kB / 0.5227 GB, free: 32.06 MB / 378.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.0005744/0.3644, allocations: 380.5 kB / 0.5231 GB, free: 31.89 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 7.636e-05/0.3645, allocations: 62.28 kB / 0.5232 GB, free: 31.82 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.3645, allocations: 2.938 kB / 0.5232 GB, free: 31.82 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 1.684e-05/0.3645, allocations: 54.28 kB / 0.5232 GB, free: 31.76 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001119/0.3646, allocations: 3.938 kB / 0.5232 GB, free: 31.75 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001497/0.3648, allocations: 113.6 kB / 0.5233 GB, free: 31.62 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.713e-05/0.3649, allocations: 0.6721 MB / 0.524 GB, free: 30.92 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.466e-06/0.3649, allocations: 7.438 kB / 0.524 GB, free: 30.91 MB / 378.7 MB Notification: Performance of SimCode: time 2.11e-07/0.3649, allocations: 128 / 0.524 GB, free: 30.91 MB / 378.7 MB Notification: Performance of Templates: time 0.005005/0.3699, allocations: 3.911 MB / 0.5278 GB, free: 30.46 MB / 378.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/jenkins/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