Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations.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.TestComplexOperations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations") translateModel(ModelicaTest.ComplexMath.TestComplexOperations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001034/0.001034, allocations: 96.78 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.001246/0.001246, allocations: 180.2 kB / 16.92 MB, free: 6.684 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.747/1.747, allocations: 205.4 MB / 223.1 MB, free: 5.766 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.4837/0.4837, allocations: 43.57 MB / 315 MB, free: 8.691 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.0005928/0.0005928, allocations: 12 kB / 384.6 MB, free: 7.668 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1726/0.1732, allocations: 58.86 MB / 443.4 MB, free: 12.7 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.0007647/0.1741, allocations: 204.5 kB / 443.6 MB, free: 12.5 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004897/0.179, allocations: 2.347 MB / 446 MB, free: 10.13 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.242e-05/0.179, allocations: 0 / 446 MB, free: 10.13 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.425e-05/0.179, allocations: 0 / 446 MB, free: 10.13 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.981e-06/0.1791, allocations: 0 / 446 MB, free: 10.13 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003743/0.1828, allocations: 1.009 MB / 447 MB, free: 9.121 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 7.999e-05/0.1829, allocations: 4 kB / 447 MB, free: 9.117 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.837e-05/0.183, allocations: 3.938 kB / 447 MB, free: 9.113 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.116e-05/0.183, allocations: 0 / 447 MB, free: 9.113 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.982e-05/0.1831, allocations: 3.984 kB / 447 MB, free: 9.109 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.198e-05/0.1831, allocations: 4 kB / 447 MB, free: 9.105 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003101/0.1862, allocations: 0.956 MB / 448 MB, free: 8.148 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.841e-05/0.1863, allocations: 4 kB / 448 MB, free: 8.145 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.094e-05/0.1864, allocations: 25.7 kB / 448 MB, free: 8.113 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001151/0.1875, allocations: 419.3 kB / 448.4 MB, free: 7.703 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.276e-06/0.1875, allocations: 0 / 448.4 MB, free: 7.703 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.998e-06/0.1876, allocations: 0 / 448.4 MB, free: 7.703 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.753e-06/0.1876, allocations: 0 / 448.4 MB, free: 7.703 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.0007256/0.1883, allocations: 425.2 kB / 448.8 MB, free: 7.234 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.843e-05/0.1884, allocations: 12.03 kB / 448.8 MB, free: 7.223 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.109e-05/0.1885, allocations: 0.9375 kB / 448.8 MB, free: 7.223 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001529/0.1886, allocations: 172.3 kB / 449 MB, free: 7.016 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.934e-05/0.1887, allocations: 384 / 449 MB, free: 7.016 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.184e-05/0.1887, allocations: 384 / 449 MB, free: 7.016 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001299/0.1888, allocations: 34.02 kB / 449 MB, free: 6.977 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.676e-06/0.1888, allocations: 0 / 449 MB, free: 6.977 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.237e-05/0.1889, allocations: 0 / 449 MB, free: 6.977 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.573e-06/0.1889, allocations: 4 kB / 449 MB, free: 6.973 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.923e-05/0.1889, allocations: 8 kB / 449 MB, free: 6.965 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001958/0.1891, allocations: 146 kB / 449.2 MB, free: 6.773 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.936e-05/0.1892, allocations: 18.52 kB / 449.2 MB, free: 6.746 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.893e-05/0.1892, allocations: 12.89 kB / 449.2 MB, free: 6.73 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.674e-06/0.1892, allocations: 0 / 449.2 MB, free: 6.73 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.185e-05/0.1893, allocations: 64.2 kB / 449.3 MB, free: 6.652 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.202e-06/0.1894, allocations: 4 kB / 449.3 MB, free: 6.648 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002936/0.1897, allocations: 67.3 kB / 449.3 MB, free: 6.57 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.524e-05/0.1897, allocations: 77.11 kB / 449.4 MB, free: 6.477 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.964e-05/0.1898, allocations: 89.86 kB / 449.5 MB, free: 6.379 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.25e-05/0.1898, allocations: 33.64 kB / 449.5 MB, free: 6.34 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.338e-05/0.1899, allocations: 80.14 kB / 449.6 MB, free: 6.258 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.788e-05/0.1899, allocations: 3.938 kB / 449.6 MB, free: 6.254 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.009e-05/0.19, allocations: 13.66 kB / 449.6 MB, free: 6.234 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001621/0.1901, allocations: 319 kB / 449.9 MB, free: 5.914 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.203e-05/0.1902, allocations: 0 / 449.9 MB, free: 5.914 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.729e-06/0.1902, allocations: 4 kB / 450 MB, free: 5.91 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.312e-05/0.1903, allocations: 56.27 kB / 450 MB, free: 5.84 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.494e-06/0.1903, allocations: 0 / 450 MB, free: 5.84 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.073e-05/0.1904, allocations: 63.39 kB / 450.1 MB, free: 5.766 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.112e-05/0.1904, allocations: 41.64 kB / 450.1 MB, free: 5.719 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.295e-06/0.1905, allocations: 0 / 450.1 MB, free: 5.719 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.224e-05/0.1905, allocations: 4.094 kB / 450.1 MB, free: 5.715 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.394e-06/0.1905, allocations: 0 / 450.1 MB, free: 5.715 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.138e-05/0.1905, allocations: 0 / 450.1 MB, free: 5.715 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.799e-05/0.1906, allocations: 3.938 kB / 450.1 MB, free: 5.711 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.165e-05/0.1906, allocations: 0 / 450.1 MB, free: 5.711 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 0.0001377/0.1907, allocations: 139.5 kB / 450.3 MB, free: 5.559 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.475e-05/0.1908, allocations: 7.922 kB / 450.3 MB, free: 5.551 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.802e-05/0.1908, allocations: 3.125 kB / 450.3 MB, free: 5.547 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.1908, allocations: 0 / 450.3 MB, free: 5.547 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.052e-05/0.1908, allocations: 8 kB / 450.3 MB, free: 5.539 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.88e-06/0.1908, allocations: 0 / 450.3 MB, free: 5.539 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001365/0.191, allocations: 145.7 kB / 450.4 MB, free: 5.348 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.021e-06/0.191, allocations: 0 / 450.4 MB, free: 5.348 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.42e-07/0.191, allocations: 0 / 450.4 MB, free: 5.348 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.757e-06/0.191, allocations: 3.938 kB / 450.4 MB, free: 5.344 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.9e-05/0.191, allocations: 11.98 kB / 450.4 MB, free: 5.332 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.163e-06/0.191, allocations: 0 / 450.4 MB, free: 5.332 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.191, allocations: 0 / 450.4 MB, free: 5.332 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001516/0.1912, allocations: 94.83 kB / 450.5 MB, free: 5.215 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.457e-05/0.1913, allocations: 77.11 kB / 450.6 MB, free: 5.121 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.001e-05/0.1913, allocations: 3.938 kB / 450.6 MB, free: 5.117 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.025e-05/0.1913, allocations: 0 / 450.6 MB, free: 5.117 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.983e-05/0.1914, allocations: 7.938 kB / 450.6 MB, free: 5.109 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.647e-06/0.1914, allocations: 7.938 kB / 450.6 MB, free: 5.102 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.55e-05/0.1914, allocations: 79.22 kB / 450.7 MB, free: 5.023 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.1915, allocations: 0 / 450.7 MB, free: 5.023 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006694/0.1921, allocations: 140 kB / 450.8 MB, free: 4.887 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.001045/0.1932, allocations: 362.1 kB / 451.2 MB, free: 4.531 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001392/0.1933, allocations: 63.34 kB / 451.2 MB, free: 4.457 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.1934, allocations: 0 / 451.2 MB, free: 4.457 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 5.427e-05/0.1934, allocations: 59.41 kB / 451.3 MB, free: 4.387 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001862/0.1936, allocations: 4 kB / 451.3 MB, free: 4.383 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002463/0.1939, allocations: 74.75 kB / 451.4 MB, free: 4.285 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003729/0.1943, allocations: 0.6692 MB / 452.1 MB, free: 3.59 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 9.228e-06/0.1943, allocations: 4 kB / 452.1 MB, free: 3.586 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.181e-05/0.1943, allocations: 7.438 kB / 452.1 MB, free: 3.582 MB / 382.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1943, allocations: 4.062 kB / 452.1 MB, free: 3.578 MB / 382.1 MB Notification: Performance of Templates: time 0.2891/0.4835, allocations: 4.279 MB / 456.3 MB, free: 44.87 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations.sim & ./ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/ComplexMath/TestComplexOperations/TestComplexOperations.csv","../files/ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches