Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.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.TestComplexOperations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations") translateModel(ModelicaTest.ComplexMath.TestComplexOperations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001192/0.001195, allocations: 109.1 kB / 17.33 MB, free: 6 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001266/0.001266, allocations: 205.8 kB / 18.26 MB, free: 5.082 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.491/1.491, allocations: 227.4 MB / 246.4 MB, free: 10.77 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2432/0.2432, allocations: 46.1 MB / 343.8 MB, free: 11.74 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001521/0.001521, allocations: 76.81 kB / 417 MB, free: 20.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1355/0.137, allocations: 62.44 MB / 479.5 MB, free: 5.609 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.002249/0.1393, allocations: 0.5292 MB / 480 MB, free: 5.074 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004513/0.1439, allocations: 2.392 MB / 482.4 MB, free: 2.664 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.743e-05/0.144, allocations: 0 / 482.4 MB, free: 2.664 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.973e-05/0.1441, allocations: 3.938 kB / 482.4 MB, free: 2.66 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.105e-06/0.1441, allocations: 0 / 482.4 MB, free: 2.66 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.003107/0.1472, allocations: 1.067 MB / 483.5 MB, free: 1.594 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.096e-05/0.1473, allocations: 0 / 483.5 MB, free: 1.594 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.959e-05/0.1473, allocations: 0 / 483.5 MB, free: 1.594 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.327e-05/0.1473, allocations: 4 kB / 483.5 MB, free: 1.59 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.761e-05/0.1474, allocations: 3.938 kB / 483.5 MB, free: 1.586 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.043e-06/0.1474, allocations: 0 / 483.5 MB, free: 1.586 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001871/0.1493, allocations: 1.011 MB / 484.5 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.059e-05/0.1493, allocations: 0 / 484.5 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.251e-05/0.1493, allocations: 3.984 kB / 484.5 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000893/0.1502, allocations: 443.4 kB / 484.9 MB, free: 140 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.601e-06/0.1503, allocations: 0 / 484.9 MB, free: 140 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.724e-06/0.1503, allocations: 4 kB / 484.9 MB, free: 136 kB / 350.1 MB Notification: Performance of Transformations before backend: time 5.811e-06/0.1503, allocations: 0 / 484.9 MB, free: 136 kB / 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.0006302/0.1509, allocations: 433.5 kB / 485.3 MB, free: 15.66 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.813e-05/0.151, allocations: 12.03 kB / 485.4 MB, free: 15.64 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.131e-05/0.151, allocations: 0.9375 kB / 485.4 MB, free: 15.64 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001255/0.1511, allocations: 168.3 kB / 485.5 MB, free: 15.44 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.311e-05/0.1512, allocations: 384 / 485.5 MB, free: 15.44 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.427e-06/0.1512, allocations: 8.312 kB / 485.5 MB, free: 15.43 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001091/0.1513, allocations: 37.95 kB / 485.6 MB, free: 15.39 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.648e-06/0.1513, allocations: 3.984 kB / 485.6 MB, free: 15.39 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.977e-06/0.1513, allocations: 0 / 485.6 MB, free: 15.39 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.698e-06/0.1513, allocations: 0 / 485.6 MB, free: 15.39 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.593e-05/0.1514, allocations: 4 kB / 485.6 MB, free: 15.38 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001516/0.1515, allocations: 153.6 kB / 485.7 MB, free: 15.18 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.226e-05/0.1516, allocations: 14.58 kB / 485.7 MB, free: 15.16 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.279e-05/0.1516, allocations: 16.89 kB / 485.8 MB, free: 15.14 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.007e-06/0.1516, allocations: 0 / 485.8 MB, free: 15.14 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.183e-05/0.1517, allocations: 60.2 kB / 485.8 MB, free: 15.07 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 1.302e-06/0.1517, allocations: 0 / 485.8 MB, free: 15.07 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001987/0.1519, allocations: 71.38 kB / 485.9 MB, free: 14.98 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.693e-05/0.152, allocations: 77.11 kB / 486 MB, free: 14.89 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.222e-05/0.152, allocations: 89.86 kB / 486 MB, free: 14.79 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.346e-05/0.152, allocations: 29.83 kB / 486.1 MB, free: 14.76 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.011e-05/0.1521, allocations: 84.14 kB / 486.2 MB, free: 14.67 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.11e-05/0.1521, allocations: 0 / 486.2 MB, free: 14.67 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.994e-05/0.1522, allocations: 9.719 kB / 486.2 MB, free: 14.66 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001248/0.1523, allocations: 314.8 kB / 486.5 MB, free: 14.34 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.603e-05/0.1523, allocations: 7.938 kB / 486.5 MB, free: 14.33 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.943e-06/0.1523, allocations: 0 / 486.5 MB, free: 14.33 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.172e-05/0.1524, allocations: 64.31 kB / 486.5 MB, free: 14.25 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.1524, allocations: 4 kB / 486.6 MB, free: 14.25 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.439e-05/0.1525, allocations: 59.41 kB / 486.6 MB, free: 14.18 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.872e-05/0.1525, allocations: 33.64 kB / 486.6 MB, free: 14.14 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.1525, allocations: 0 / 486.6 MB, free: 14.14 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.222e-05/0.1525, allocations: 0 / 486.6 MB, free: 14.14 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.253e-06/0.1526, allocations: 0 / 486.6 MB, free: 14.14 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.676e-06/0.1526, allocations: 3.984 kB / 486.6 MB, free: 14.14 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.916e-05/0.1526, allocations: 4 kB / 486.7 MB, free: 14.13 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.398e-06/0.1526, allocations: 4 kB / 486.7 MB, free: 14.13 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.733e-05/0.1527, allocations: 139.5 kB / 486.8 MB, free: 13.98 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.332e-05/0.1527, allocations: 11.94 kB / 486.8 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.488e-06/0.1528, allocations: 3.125 kB / 486.8 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.033e-06/0.1528, allocations: 0 / 486.8 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.1528, allocations: 0 / 486.8 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.1528, allocations: 0 / 486.8 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.721e-05/0.1529, allocations: 145.7 kB / 486.9 MB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.1529, allocations: 0 / 486.9 MB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.31e-07/0.1529, allocations: 4 kB / 487 MB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.149e-06/0.1529, allocations: 3.938 kB / 487 MB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.983e-06/0.1529, allocations: 7.938 kB / 487 MB, free: 13.76 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.1529, allocations: 3.938 kB / 487 MB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.1529, allocations: 0 / 487 MB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001191/0.1531, allocations: 90.83 kB / 487.1 MB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.641e-05/0.1531, allocations: 81.02 kB / 487.1 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.992e-05/0.1531, allocations: 3.938 kB / 487.1 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.337e-06/0.1532, allocations: 0 / 487.1 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.732e-05/0.1532, allocations: 8.031 kB / 487.1 MB, free: 13.53 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.683e-06/0.1532, allocations: 4 kB / 487.2 MB, free: 13.53 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.265e-05/0.1533, allocations: 79.22 kB / 487.2 MB, free: 13.45 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1533, allocations: 0 / 487.2 MB, free: 13.45 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005835/0.1538, allocations: 156 kB / 487.4 MB, free: 13.3 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009191/0.1548, allocations: 383.2 kB / 487.8 MB, free: 12.92 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001139/0.1549, allocations: 63.39 kB / 487.8 MB, free: 12.84 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.1549, allocations: 0 / 487.8 MB, free: 12.84 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.399e-05/0.155, allocations: 55.41 kB / 487.9 MB, free: 12.78 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001376/0.1551, allocations: 7.984 kB / 487.9 MB, free: 12.77 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001976/0.1553, allocations: 81.06 kB / 488 MB, free: 12.66 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002852/0.1556, allocations: 0.6768 MB / 488.6 MB, free: 11.96 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.903e-06/0.1556, allocations: 0 / 488.6 MB, free: 11.96 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.545e-05/0.1556, allocations: 7.438 kB / 488.6 MB, free: 11.96 MB / 366.1 MB Notification: Performance of SimCode: time 6.21e-07/0.1556, allocations: 0 / 488.6 MB, free: 11.96 MB / 366.1 MB Notification: Performance of Templates: time 0.009428/0.1651, allocations: 4.618 MB / 493.3 MB, free: 7.336 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.makefile (rm -f ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.sim & ./ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches