Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.ComplexMath.TestComplexOperations.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.TestComplexOperations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.ComplexMath.TestComplexOperations") translateModel(ModelicaTest.ComplexMath.TestComplexOperations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.ComplexMath.TestComplexOperations") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001215/0.001215, allocations: 195.1 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.272/1.272, allocations: 226.6 MB / 243.4 MB, free: 8.105 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007702/0.0007702, allocations: 94.52 kB / 295.5 MB, free: 6.902 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3487/0.3487, allocations: 44.82 MB / 392.3 MB, free: 35.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002718/0.0002719, allocations: 8 kB / 465.3 MB, free: 12.7 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3343/0.3345, allocations: 62.96 MB / 0.5159 GB, free: 36.99 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.0005455/0.3351, allocations: 200.1 kB / 0.5161 GB, free: 36.85 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002552/0.3377, allocations: 2.239 MB / 0.5182 GB, free: 35.25 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.678e-05/0.3378, allocations: 0 / 0.5182 GB, free: 35.25 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.138e-05/0.3378, allocations: 0 / 0.5182 GB, free: 35.25 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 7.323e-06/0.3378, allocations: 4 kB / 0.5182 GB, free: 35.25 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.00206/0.3399, allocations: 0.912 MB / 0.5191 GB, free: 34.71 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.247e-05/0.3399, allocations: 3.984 kB / 0.5191 GB, free: 34.71 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.149e-05/0.3399, allocations: 2.875 kB / 0.5191 GB, free: 34.71 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.572e-05/0.34, allocations: 0 / 0.5191 GB, free: 34.71 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.478e-05/0.34, allocations: 7.188 kB / 0.5192 GB, free: 34.7 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 5.881e-06/0.34, allocations: 0 / 0.5192 GB, free: 34.7 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001245/0.3413, allocations: 0.933 MB / 0.5201 GB, free: 34.44 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 7.574e-06/0.3413, allocations: 3.938 kB / 0.5201 GB, free: 34.44 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.066e-05/0.3413, allocations: 25.7 kB / 0.5201 GB, free: 34.41 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003308/0.3417, allocations: 275.7 kB / 0.5204 GB, free: 34.31 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.402e-06/0.3417, allocations: 4 kB / 0.5204 GB, free: 34.3 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.236e-06/0.3417, allocations: 0 / 0.5204 GB, free: 34.3 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.96e-06/0.3417, allocations: 11.88 kB / 0.5204 GB, free: 34.29 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.0003279/0.342, allocations: 438.2 kB / 0.5208 GB, free: 33.86 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.758e-05/0.3421, allocations: 8.25 kB / 0.5208 GB, free: 33.86 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.359e-05/0.3421, allocations: 8.266 kB / 0.5208 GB, free: 33.86 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.665e-05/0.3422, allocations: 163.3 kB / 0.521 GB, free: 33.66 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.161e-05/0.3422, allocations: 384 / 0.521 GB, free: 33.66 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.173e-06/0.3422, allocations: 384 / 0.521 GB, free: 33.66 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.467e-05/0.3423, allocations: 32.58 kB / 0.521 GB, free: 33.62 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.813e-06/0.3423, allocations: 0 / 0.521 GB, free: 33.62 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.826e-06/0.3423, allocations: 4 kB / 0.521 GB, free: 33.62 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.118e-06/0.3423, allocations: 0 / 0.521 GB, free: 33.62 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.65e-05/0.3424, allocations: 6.062 kB / 0.521 GB, free: 33.62 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.646e-05/0.3424, allocations: 145.7 kB / 0.5211 GB, free: 33.43 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.265e-05/0.3425, allocations: 21.45 kB / 0.5212 GB, free: 33.4 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.209e-05/0.3425, allocations: 4.859 kB / 0.5212 GB, free: 33.39 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.368e-06/0.3425, allocations: 3 kB / 0.5212 GB, free: 33.39 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.481e-05/0.3426, allocations: 67.44 kB / 0.5212 GB, free: 33.32 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 1.162e-06/0.3426, allocations: 0 / 0.5212 GB, free: 33.32 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001494/0.3427, allocations: 68.25 kB / 0.5213 GB, free: 33.25 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.804e-05/0.3427, allocations: 77.11 kB / 0.5214 GB, free: 33.15 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.046e-05/0.3428, allocations: 93.14 kB / 0.5215 GB, free: 33.05 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.871e-06/0.3428, allocations: 25.7 kB / 0.5215 GB, free: 33.02 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.087e-05/0.3428, allocations: 80.14 kB / 0.5216 GB, free: 32.94 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.08e-05/0.3428, allocations: 4.422 kB / 0.5216 GB, free: 32.94 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.993e-06/0.3428, allocations: 4.125 kB / 0.5216 GB, free: 32.94 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.465e-05/0.3429, allocations: 310.8 kB / 0.5219 GB, free: 32.62 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.913e-06/0.3429, allocations: 0 / 0.5219 GB, free: 32.62 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.911e-06/0.3429, allocations: 2.906 kB / 0.5219 GB, free: 32.62 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.147e-05/0.3429, allocations: 63.2 kB / 0.5219 GB, free: 32.55 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.3429, allocations: 0 / 0.5219 GB, free: 32.55 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.935e-05/0.343, allocations: 64.14 kB / 0.522 GB, free: 32.48 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.373e-05/0.343, allocations: 35.36 kB / 0.522 GB, free: 32.45 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.619e-06/0.343, allocations: 4.094 kB / 0.522 GB, free: 32.45 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.179e-05/0.3431, allocations: 10.95 kB / 0.522 GB, free: 32.44 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.81e-07/0.3431, allocations: 0 / 0.522 GB, free: 32.44 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.149e-06/0.3431, allocations: 0 / 0.522 GB, free: 32.44 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.432e-05/0.3431, allocations: 0 / 0.522 GB, free: 32.44 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.071e-06/0.3431, allocations: 3.938 kB / 0.522 GB, free: 32.43 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 5.422e-05/0.3432, allocations: 141.9 kB / 0.5222 GB, free: 32.29 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.592e-06/0.3432, allocations: 3.938 kB / 0.5222 GB, free: 32.28 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.396e-06/0.3432, allocations: 9.562 kB / 0.5222 GB, free: 32.28 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.72e-07/0.3432, allocations: 4 kB / 0.5222 GB, free: 32.28 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.467e-06/0.3432, allocations: 0 / 0.5222 GB, free: 32.28 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.953e-06/0.3432, allocations: 0 / 0.5222 GB, free: 32.28 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.257e-05/0.3433, allocations: 148 kB / 0.5223 GB, free: 32.09 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.91e-07/0.3433, allocations: 0 / 0.5223 GB, free: 32.09 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.6e-07/0.3433, allocations: 0 / 0.5223 GB, free: 32.09 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.3433, allocations: 3.938 kB / 0.5223 GB, free: 32.09 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.292e-06/0.3433, allocations: 0 / 0.5223 GB, free: 32.09 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.92e-07/0.3433, allocations: 0 / 0.5223 GB, free: 32.09 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/0.3433, allocations: 2.75 kB / 0.5223 GB, free: 32.09 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.652e-05/0.3434, allocations: 96.98 kB / 0.5224 GB, free: 31.98 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.573e-05/0.3434, allocations: 77.11 kB / 0.5225 GB, free: 31.89 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.221e-05/0.3434, allocations: 7.219 kB / 0.5225 GB, free: 31.88 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.266e-06/0.3434, allocations: 0 / 0.5225 GB, free: 31.88 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.161e-05/0.3434, allocations: 6.906 kB / 0.5225 GB, free: 31.88 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.334e-06/0.3435, allocations: 0 / 0.5225 GB, free: 31.88 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.253e-05/0.3435, allocations: 75.28 kB / 0.5226 GB, free: 31.8 MB / 378.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3435, allocations: 32 / 0.5226 GB, free: 31.8 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004141/0.3439, allocations: 160.5 kB / 0.5227 GB, free: 31.76 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.0006545/0.3446, allocations: 384.6 kB / 0.5231 GB, free: 31.58 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 7.068e-05/0.3446, allocations: 56.62 kB / 0.5232 GB, free: 31.52 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.3446, allocations: 0 / 0.5232 GB, free: 31.52 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 1.782e-05/0.3447, allocations: 61.69 kB / 0.5232 GB, free: 31.45 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000117/0.3448, allocations: 6.875 kB / 0.5232 GB, free: 31.45 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001533/0.345, allocations: 110 kB / 0.5233 GB, free: 31.32 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.291e-05/0.3451, allocations: 0.6751 MB / 0.524 GB, free: 30.62 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.385e-06/0.3451, allocations: 11.56 kB / 0.524 GB, free: 30.61 MB / 378.7 MB Notification: Performance of SimCode: time 2.1e-07/0.3451, allocations: 0 / 0.524 GB, free: 30.61 MB / 378.7 MB Notification: Performance of Templates: time 0.005122/0.3502, allocations: 3.907 MB / 0.5278 GB, free: 30.16 MB / 378.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.ComplexMath.TestComplexOperations.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.ComplexMath.TestComplexOperations.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.ComplexMath.TestComplexOperations.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.ComplexMath.TestComplexOperations --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.ComplexMath.TestComplexOperations.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.ComplexMath.TestComplexOperations_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/ComplexMath/TestComplexOperations/TestComplexOperations.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.ComplexMath.TestComplexOperations.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches