Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexFunctions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.ComplexMath.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexFunctions") translateModel(ModelicaTest.ComplexMath.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexFunctions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008486/0.0008485, allocations: 96.94 kB / 16.02 MB, free: 84 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001077/0.001077, allocations: 184.3 kB / 16.92 MB, free: 6.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.545/1.545, allocations: 205.4 MB / 223.1 MB, free: 5.488 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4563/0.4563, allocations: 43.56 MB / 315 MB, free: 8.789 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005044/0.0005046, allocations: 16.61 kB / 384.6 MB, free: 7.664 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1422/0.1427, allocations: 58.86 MB / 443.4 MB, free: 12.7 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.000657/0.1434, allocations: 204.5 kB / 443.6 MB, free: 12.5 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00334/0.1468, allocations: 2.347 MB / 446 MB, free: 10.13 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.047e-05/0.1468, allocations: 0 / 446 MB, free: 10.13 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.343e-05/0.1468, allocations: 0 / 446 MB, free: 10.13 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 4.96e-06/0.1468, allocations: 0 / 446 MB, free: 10.13 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002449/0.1493, allocations: 1.009 MB / 447 MB, free: 9.117 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.454e-05/0.1493, allocations: 0 / 447 MB, free: 9.117 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.229e-05/0.1494, allocations: 11.92 kB / 447 MB, free: 9.105 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.006e-05/0.1494, allocations: 4 kB / 447 MB, free: 9.102 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.627e-05/0.1495, allocations: 0 / 447 MB, free: 9.102 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.739e-06/0.1495, allocations: 0 / 447 MB, free: 9.102 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001585/0.1511, allocations: 0.956 MB / 448 MB, free: 8.145 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.562e-05/0.1511, allocations: 7.984 kB / 448 MB, free: 8.137 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.572e-05/0.1512, allocations: 25.7 kB / 448 MB, free: 8.105 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000559/0.1517, allocations: 415.4 kB / 448.4 MB, free: 7.699 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.1517, allocations: 0 / 448.4 MB, free: 7.699 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1518, allocations: 0 / 448.4 MB, free: 7.699 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.528e-06/0.1518, allocations: 0 / 448.4 MB, free: 7.699 MB / 382.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.0004685/0.1522, allocations: 425.2 kB / 448.8 MB, free: 7.23 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.17e-05/0.1523, allocations: 8.031 kB / 448.8 MB, free: 7.223 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.745e-05/0.1523, allocations: 0.9375 kB / 448.8 MB, free: 7.223 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.727e-05/0.1524, allocations: 168.4 kB / 449 MB, free: 7.02 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.826e-05/0.1525, allocations: 8.359 kB / 449 MB, free: 7.012 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.243e-05/0.1525, allocations: 384 / 449 MB, free: 7.012 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001013/0.1526, allocations: 33.95 kB / 449 MB, free: 6.973 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.137e-05/0.1526, allocations: 4 kB / 449 MB, free: 6.969 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.195e-05/0.1526, allocations: 0 / 449 MB, free: 6.969 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.832e-06/0.1526, allocations: 0 / 449 MB, free: 6.969 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.325e-05/0.1527, allocations: 0 / 449 MB, free: 6.969 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000157/0.1528, allocations: 150 kB / 449.2 MB, free: 6.773 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.814e-05/0.1529, allocations: 26.59 kB / 449.2 MB, free: 6.738 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.024e-05/0.1529, allocations: 4.859 kB / 449.2 MB, free: 6.73 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.289e-05/0.1529, allocations: 3.938 kB / 449.2 MB, free: 6.727 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.299e-05/0.153, allocations: 68.25 kB / 449.3 MB, free: 6.645 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.011e-06/0.153, allocations: 0 / 449.3 MB, free: 6.645 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001884/0.1532, allocations: 67.31 kB / 449.3 MB, free: 6.566 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.119e-05/0.1533, allocations: 81.22 kB / 449.4 MB, free: 6.469 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.244e-05/0.1533, allocations: 93.86 kB / 449.5 MB, free: 6.367 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.38e-05/0.1533, allocations: 29.64 kB / 449.5 MB, free: 6.332 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.756e-05/0.1534, allocations: 84.12 kB / 449.6 MB, free: 6.246 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.253e-05/0.1534, allocations: 3.938 kB / 449.6 MB, free: 6.242 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.286e-05/0.1534, allocations: 9.719 kB / 449.6 MB, free: 6.227 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001131/0.1535, allocations: 314.8 kB / 449.9 MB, free: 5.91 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.498e-06/0.1535, allocations: 0 / 449.9 MB, free: 5.91 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.017e-06/0.1536, allocations: 3.938 kB / 450 MB, free: 5.906 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.808e-05/0.1536, allocations: 68.33 kB / 450 MB, free: 5.824 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.816e-06/0.1536, allocations: 3.938 kB / 450 MB, free: 5.82 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.85e-05/0.1537, allocations: 63.39 kB / 450.1 MB, free: 5.746 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.482e-05/0.1538, allocations: 33.64 kB / 450.1 MB, free: 5.707 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.59e-06/0.1538, allocations: 0 / 450.1 MB, free: 5.707 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.337e-05/0.1538, allocations: 0 / 450.1 MB, free: 5.707 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.71e-07/0.1538, allocations: 0 / 450.1 MB, free: 5.707 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.673e-06/0.1538, allocations: 4 kB / 450.1 MB, free: 5.703 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.722e-05/0.1538, allocations: 0 / 450.1 MB, free: 5.703 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.504e-06/0.1538, allocations: 4.031 kB / 450.1 MB, free: 5.699 MB / 382.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.791e-05/0.1539, allocations: 139.5 kB / 450.3 MB, free: 5.547 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.815e-06/0.1539, allocations: 7.938 kB / 450.3 MB, free: 5.539 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.486e-05/0.154, allocations: 3.125 kB / 450.3 MB, free: 5.535 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.92e-07/0.154, allocations: 3.938 kB / 450.3 MB, free: 5.531 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.154, allocations: 0 / 450.3 MB, free: 5.531 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/0.154, allocations: 0 / 450.3 MB, free: 5.531 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001019/0.1541, allocations: 149.7 kB / 450.4 MB, free: 5.336 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.92e-07/0.1541, allocations: 0 / 450.4 MB, free: 5.336 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.21e-07/0.1541, allocations: 4 kB / 450.4 MB, free: 5.332 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.534e-06/0.1541, allocations: 3.938 kB / 450.4 MB, free: 5.328 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.442e-06/0.1541, allocations: 0 / 450.4 MB, free: 5.328 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.61e-07/0.1541, allocations: 0 / 450.4 MB, free: 5.328 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.1541, allocations: 3.984 kB / 450.4 MB, free: 5.324 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.561e-05/0.1542, allocations: 90.83 kB / 450.5 MB, free: 5.211 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.675e-05/0.1543, allocations: 77.11 kB / 450.6 MB, free: 5.117 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.495e-05/0.1543, allocations: 3.938 kB / 450.6 MB, free: 5.113 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.031e-05/0.1543, allocations: 8.031 kB / 450.6 MB, free: 5.105 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.879e-05/0.1543, allocations: 0 / 450.6 MB, free: 5.105 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.288e-06/0.1544, allocations: 0 / 450.6 MB, free: 5.105 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.767e-05/0.1544, allocations: 79.22 kB / 450.7 MB, free: 5.027 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1544, allocations: 0 / 450.7 MB, free: 5.027 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004192/0.1548, allocations: 148 kB / 450.8 MB, free: 4.883 MB / 382.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.0006847/0.1555, allocations: 358.5 kB / 451.2 MB, free: 4.527 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 9.83e-05/0.1556, allocations: 67.28 kB / 451.2 MB, free: 4.449 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.1556, allocations: 0 / 451.2 MB, free: 4.449 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 3.169e-05/0.1557, allocations: 55.41 kB / 451.3 MB, free: 4.383 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001398/0.1558, allocations: 11.5 kB / 451.3 MB, free: 4.375 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001848/0.156, allocations: 82.75 kB / 451.4 MB, free: 4.27 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00026/0.1563, allocations: 0.6692 MB / 452.1 MB, free: 3.574 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 6.041e-06/0.1563, allocations: 0 / 452.1 MB, free: 3.574 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.508e-06/0.1563, allocations: 7.438 kB / 452.1 MB, free: 3.57 MB / 382.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1563, allocations: 0 / 452.1 MB, free: 3.57 MB / 382.1 MB Notification: Performance of Templates: time 0.2809/0.4372, allocations: 4.275 MB / 456.3 MB, free: 44.92 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexFunctions.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexFunctions.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexFunctions.sim & ./ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexFunctions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexFunctions.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexFunctions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/ComplexMath/TestComplexFunctions/TestComplexFunctions.csv","../files/ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches