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.001504/0.001504, allocations: 103.5 kB / 17.2 MB, free: 6.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001759/0.001759, allocations: 205.8 kB / 18.13 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.492/1.492, allocations: 227.4 MB / 246.3 MB, free: 10.84 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2473/0.2473, allocations: 46.11 MB / 343.6 MB, free: 11.81 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001526/0.001526, allocations: 69.83 kB / 416.8 MB, free: 20.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1272/0.1288, allocations: 62.45 MB / 479.3 MB, free: 5.73 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.002024/0.1308, allocations: 0.5137 MB / 479.8 MB, free: 5.211 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003933/0.1348, allocations: 2.477 MB / 482.3 MB, free: 2.715 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.635e-05/0.1348, allocations: 0 / 482.3 MB, free: 2.715 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.525e-05/0.1349, allocations: 3.938 kB / 482.3 MB, free: 2.711 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.009e-06/0.1349, allocations: 0 / 482.3 MB, free: 2.711 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.002583/0.1375, allocations: 1.059 MB / 483.3 MB, free: 1.652 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.846e-05/0.1375, allocations: 3.984 kB / 483.3 MB, free: 1.648 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.638e-05/0.1376, allocations: 7.984 kB / 483.4 MB, free: 1.641 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.918e-05/0.1376, allocations: 0 / 483.4 MB, free: 1.641 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.374e-05/0.1377, allocations: 4 kB / 483.4 MB, free: 1.637 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.742e-06/0.1377, allocations: 3.938 kB / 483.4 MB, free: 1.633 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00153/0.1392, allocations: 1.003 MB / 484.4 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.325e-06/0.1392, allocations: 0 / 484.4 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.433e-05/0.1393, allocations: 0 / 484.4 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005767/0.1398, allocations: 439.4 kB / 484.8 MB, free: 204 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.573e-06/0.1399, allocations: 0 / 484.8 MB, free: 204 kB / 350.1 MB Notification: Performance of FrontEnd: time 8.02e-07/0.1399, allocations: 3.938 kB / 484.8 MB, free: 200 kB / 350.1 MB Notification: Performance of Transformations before backend: time 7.184e-06/0.1399, allocations: 8 kB / 484.8 MB, free: 192 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.0004902/0.1404, allocations: 441.5 kB / 485.2 MB, free: 15.7 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.637e-05/0.1404, allocations: 12.88 kB / 485.3 MB, free: 15.69 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.518e-05/0.1405, allocations: 0.9375 kB / 485.3 MB, free: 15.69 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001104/0.1406, allocations: 164.3 kB / 485.4 MB, free: 15.49 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.528e-06/0.1406, allocations: 384 / 485.4 MB, free: 15.49 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.188e-05/0.1406, allocations: 384 / 485.4 MB, free: 15.49 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.092e-05/0.1407, allocations: 34.02 kB / 485.4 MB, free: 15.45 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.244e-06/0.1407, allocations: 0 / 485.4 MB, free: 15.45 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.438e-06/0.1407, allocations: 4 kB / 485.5 MB, free: 15.45 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.979e-06/0.1408, allocations: 0 / 485.5 MB, free: 15.45 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.912e-05/0.1408, allocations: 0 / 485.5 MB, free: 15.45 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001405/0.1409, allocations: 153.7 kB / 485.6 MB, free: 15.25 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.068e-05/0.141, allocations: 18.52 kB / 485.6 MB, free: 15.22 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.801e-05/0.141, allocations: 8.953 kB / 485.6 MB, free: 15.21 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.845e-06/0.141, allocations: 3.938 kB / 485.6 MB, free: 15.21 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.713e-05/0.1411, allocations: 64.2 kB / 485.7 MB, free: 15.13 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 9.62e-07/0.1411, allocations: 0 / 485.7 MB, free: 15.13 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001809/0.1413, allocations: 71.33 kB / 485.8 MB, free: 15.05 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.697e-05/0.1413, allocations: 77.11 kB / 485.8 MB, free: 14.95 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.696e-05/0.1414, allocations: 89.86 kB / 485.9 MB, free: 14.86 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.121e-05/0.1414, allocations: 29.64 kB / 486 MB, free: 14.82 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.586e-05/0.1414, allocations: 80.14 kB / 486 MB, free: 14.74 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.996e-05/0.1414, allocations: 4 kB / 486 MB, free: 14.73 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.668e-05/0.1415, allocations: 13.84 kB / 486.1 MB, free: 14.71 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001045/0.1416, allocations: 314.8 kB / 486.4 MB, free: 14.4 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.088e-05/0.1416, allocations: 4 kB / 486.4 MB, free: 14.39 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.444e-06/0.1416, allocations: 4 kB / 486.4 MB, free: 14.39 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.343e-05/0.1417, allocations: 60.27 kB / 486.4 MB, free: 14.32 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.1417, allocations: 0 / 486.4 MB, free: 14.32 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.241e-05/0.1417, allocations: 59.34 kB / 486.5 MB, free: 14.25 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.367e-05/0.1418, allocations: 43.91 kB / 486.5 MB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.408e-06/0.1418, allocations: 4 kB / 486.5 MB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.393e-05/0.1418, allocations: 4 kB / 486.5 MB, free: 14.19 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.82e-07/0.1418, allocations: 0 / 486.5 MB, free: 14.19 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.521e-06/0.1418, allocations: 0 / 486.5 MB, free: 14.19 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.529e-05/0.1418, allocations: 0 / 486.5 MB, free: 14.19 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.035e-06/0.1419, allocations: 4 kB / 486.5 MB, free: 14.19 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 8.549e-05/0.1419, allocations: 135.5 kB / 486.7 MB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.437e-06/0.142, allocations: 3.938 kB / 486.7 MB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.466e-06/0.142, allocations: 7.125 kB / 486.7 MB, free: 14.03 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.373e-06/0.142, allocations: 4 kB / 486.7 MB, free: 14.03 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.142, allocations: 0 / 486.7 MB, free: 14.03 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.948e-06/0.142, allocations: 3.984 kB / 486.7 MB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.506e-05/0.1421, allocations: 141.7 kB / 486.8 MB, free: 13.84 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.62e-07/0.1421, allocations: 0 / 486.8 MB, free: 13.84 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.41e-07/0.1421, allocations: 0 / 486.8 MB, free: 13.84 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.484e-06/0.1421, allocations: 7.938 kB / 486.8 MB, free: 13.83 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.871e-06/0.1421, allocations: 0 / 486.8 MB, free: 13.83 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.61e-07/0.1421, allocations: 0 / 486.8 MB, free: 13.83 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/0.1421, allocations: 0 / 486.8 MB, free: 13.83 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.519e-05/0.1422, allocations: 102.7 kB / 486.9 MB, free: 13.7 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.336e-05/0.1423, allocations: 81.02 kB / 487 MB, free: 13.61 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.489e-05/0.1423, allocations: 3.938 kB / 487 MB, free: 13.6 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.486e-06/0.1423, allocations: 0 / 487 MB, free: 13.6 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.915e-05/0.1424, allocations: 7.984 kB / 487 MB, free: 13.59 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.475e-06/0.1424, allocations: 0 / 487 MB, free: 13.59 MB / 366.1 MB Notification: Performance of sorting global known variables: time 2.484e-05/0.1424, allocations: 75.28 kB / 487.1 MB, free: 13.52 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1424, allocations: 4.031 kB / 487.1 MB, free: 13.52 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004272/0.1428, allocations: 156 kB / 487.3 MB, free: 13.36 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.0007159/0.1436, allocations: 389 kB / 487.6 MB, free: 12.98 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 9.837e-05/0.1437, allocations: 59.39 kB / 487.7 MB, free: 12.91 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.1437, allocations: 4 kB / 487.7 MB, free: 12.9 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.002e-05/0.1437, allocations: 55.41 kB / 487.8 MB, free: 12.84 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001296/0.1439, allocations: 4 kB / 487.8 MB, free: 12.83 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001809/0.144, allocations: 74.7 kB / 487.8 MB, free: 12.73 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002283/0.1443, allocations: 0.677 MB / 488.5 MB, free: 12.03 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.26e-06/0.1443, allocations: 4.125 kB / 488.5 MB, free: 12.02 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.314e-05/0.1443, allocations: 7.438 kB / 488.5 MB, free: 12.02 MB / 366.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1443, allocations: 3.938 kB / 488.5 MB, free: 12.02 MB / 366.1 MB Notification: Performance of Templates: time 0.007803/0.1521, allocations: 4.595 MB / 493.1 MB, free: 7.414 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches