Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.ComplexMath.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions") translateModel(ModelicaTest.ComplexMath.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001074/0.001074, allocations: 95.73 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009999/0.001, allocations: 203.8 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.447/1.447, allocations: 227.2 MB / 245.9 MB, free: 10.35 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2058/0.2058, allocations: 45.91 MB / 344 MB, free: 12.17 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002984/0.0002984, allocations: 8 kB / 417.9 MB, free: 20.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1451/0.1454, allocations: 63.46 MB / 481.4 MB, free: 5.469 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.0007251/0.1462, allocations: 189.2 kB / 481.6 MB, free: 5.281 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003128/0.1494, allocations: 2.242 MB / 483.8 MB, free: 3.023 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.042e-05/0.1494, allocations: 0 / 483.8 MB, free: 3.023 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.182e-05/0.1494, allocations: 3.938 kB / 483.8 MB, free: 3.02 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.23e-06/0.1494, allocations: 0 / 483.8 MB, free: 3.02 MB / 350.1 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.002236/0.1517, allocations: 0.9189 MB / 484.7 MB, free: 2.102 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.152e-05/0.1517, allocations: 4 kB / 484.7 MB, free: 2.098 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.759e-05/0.1518, allocations: 0 / 484.7 MB, free: 2.098 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.759e-05/0.1518, allocations: 0 / 484.7 MB, free: 2.098 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.739e-05/0.1518, allocations: 4 kB / 484.7 MB, free: 2.094 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.951e-06/0.1518, allocations: 0 / 484.7 MB, free: 2.094 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001179/0.153, allocations: 0.7646 MB / 485.5 MB, free: 1.328 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.15e-06/0.153, allocations: 0 / 485.5 MB, free: 1.328 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.117e-05/0.1531, allocations: 25.7 kB / 485.5 MB, free: 1.297 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003858/0.1535, allocations: 275.5 kB / 485.8 MB, free: 1.027 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.585e-06/0.1535, allocations: 4 kB / 485.8 MB, free: 1.023 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.1535, allocations: 0 / 485.8 MB, free: 1.023 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.428e-06/0.1535, allocations: 0 / 485.8 MB, free: 1.023 MB / 350.1 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.0004527/0.154, allocations: 437.3 kB / 486.2 MB, free: 0.543 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.404e-05/0.154, allocations: 8.031 kB / 486.2 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.016e-05/0.154, allocations: 0 / 486.2 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001199/0.1542, allocations: 167 kB / 486.4 MB, free: 340 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.599e-05/0.1542, allocations: 4 kB / 486.4 MB, free: 336 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.263e-05/0.1542, allocations: 4 kB / 486.4 MB, free: 332 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.709e-05/0.1543, allocations: 37.62 kB / 486.4 MB, free: 288 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.833e-06/0.1543, allocations: 0 / 486.4 MB, free: 288 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.206e-06/0.1543, allocations: 0 / 486.4 MB, free: 288 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.88e-06/0.1543, allocations: 0 / 486.4 MB, free: 288 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.831e-05/0.1544, allocations: 4 kB / 486.4 MB, free: 284 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001371/0.1545, allocations: 145.6 kB / 486.6 MB, free: 88 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.989e-05/0.1545, allocations: 18.61 kB / 486.6 MB, free: 60 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.857e-06/0.1546, allocations: 7.922 kB / 486.6 MB, free: 52 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.608e-05/0.1546, allocations: 68.2 kB / 486.7 MB, free: 15.96 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 1.092e-06/0.1546, allocations: 0 / 486.7 MB, free: 15.96 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001654/0.1548, allocations: 59.47 kB / 486.7 MB, free: 15.89 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.54e-05/0.1549, allocations: 77.11 kB / 486.8 MB, free: 15.8 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.609e-05/0.1549, allocations: 89.86 kB / 486.9 MB, free: 15.7 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.331e-05/0.1549, allocations: 25.7 kB / 486.9 MB, free: 15.67 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.652e-05/0.155, allocations: 84.12 kB / 487 MB, free: 15.59 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.814e-05/0.155, allocations: 4.125 kB / 487 MB, free: 15.58 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.626e-06/0.155, allocations: 8 kB / 487 MB, free: 15.57 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001065/0.1551, allocations: 310.8 kB / 487.3 MB, free: 15.26 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.655e-06/0.1551, allocations: 0 / 487.3 MB, free: 15.26 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.639e-06/0.1551, allocations: 3.938 kB / 487.3 MB, free: 15.26 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.518e-05/0.1552, allocations: 33.64 kB / 487.3 MB, free: 15.22 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.1552, allocations: 0 / 487.3 MB, free: 15.22 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.493e-05/0.1553, allocations: 63.36 kB / 487.4 MB, free: 15.14 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.328e-05/0.1553, allocations: 33.69 kB / 487.4 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.551e-06/0.1553, allocations: 4.094 kB / 487.4 MB, free: 15.1 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.487e-05/0.1553, allocations: 0 / 487.4 MB, free: 15.1 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.02e-07/0.1553, allocations: 0 / 487.4 MB, free: 15.1 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.045e-06/0.1554, allocations: 0 / 487.4 MB, free: 15.1 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.805e-05/0.1554, allocations: 4 kB / 487.5 MB, free: 15.1 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.093e-06/0.1554, allocations: 0 / 487.5 MB, free: 15.1 MB / 366.1 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 9.337e-05/0.1555, allocations: 135.5 kB / 487.6 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.768e-06/0.1555, allocations: 7.953 kB / 487.6 MB, free: 14.94 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.067e-05/0.1555, allocations: 3.125 kB / 487.6 MB, free: 14.94 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.1555, allocations: 7.984 kB / 487.6 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.988e-06/0.1555, allocations: 0 / 487.6 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/0.1556, allocations: 3.984 kB / 487.6 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.829e-05/0.1557, allocations: 141.7 kB / 487.7 MB, free: 14.74 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.82e-07/0.1557, allocations: 0 / 487.7 MB, free: 14.74 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.884e-06/0.1557, allocations: 4 kB / 487.7 MB, free: 14.74 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.797e-06/0.1557, allocations: 3.953 kB / 487.8 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.061e-06/0.1557, allocations: 0 / 487.8 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.234e-06/0.1557, allocations: 0 / 487.8 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.1557, allocations: 3.938 kB / 487.8 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.197e-05/0.1558, allocations: 102.7 kB / 487.9 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.211e-05/0.1558, allocations: 77.11 kB / 487.9 MB, free: 14.51 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.386e-05/0.1559, allocations: 7.938 kB / 487.9 MB, free: 14.5 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.809e-06/0.1559, allocations: 4 kB / 487.9 MB, free: 14.5 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.506e-05/0.1559, allocations: 4 kB / 487.9 MB, free: 14.5 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.665e-06/0.1559, allocations: 0 / 487.9 MB, free: 14.5 MB / 366.1 MB Notification: Performance of sorting global known variables: time 2.696e-05/0.1559, allocations: 75.28 kB / 488 MB, free: 14.42 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1559, allocations: 4.031 kB / 488 MB, free: 14.42 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004202/0.1564, allocations: 156 kB / 488.2 MB, free: 14.27 MB / 366.1 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.000707/0.1571, allocations: 389.1 kB / 488.6 MB, free: 13.88 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001009/0.1572, allocations: 59.34 kB / 488.6 MB, free: 13.81 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.1572, allocations: 0 / 488.6 MB, free: 13.81 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.014e-05/0.1572, allocations: 59.39 kB / 488.7 MB, free: 13.74 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 7.957e-05/0.1573, allocations: 0 / 488.7 MB, free: 13.74 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001854/0.1575, allocations: 78.7 kB / 488.8 MB, free: 13.63 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002763/0.1578, allocations: 0.677 MB / 489.4 MB, free: 12.93 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.4e-06/0.1578, allocations: 4.125 kB / 489.4 MB, free: 12.93 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.283e-05/0.1578, allocations: 11.44 kB / 489.4 MB, free: 12.91 MB / 366.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1578, allocations: 0 / 489.4 MB, free: 12.91 MB / 366.1 MB Notification: Performance of Templates: time 0.007969/0.1658, allocations: 4.384 MB / 493.8 MB, free: 8.523 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.makefile (rm -f ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.sim & ./ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_ModelicaTest.ComplexMath.TestComplexFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches