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.001121/0.001121, allocations: 102.7 kB / 16.27 MB, free: 5.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001314/0.001315, allocations: 188.6 kB / 17.19 MB, free: 5.609 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.679/1.679, allocations: 205.1 MB / 223.1 MB, free: 12.29 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2919/0.2919, allocations: 43.52 MB / 313.9 MB, free: 0.5195 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.001496/0.001496, allocations: 65.16 kB / 382.7 MB, free: 56.74 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1712/0.1727, allocations: 57.79 MB / 440.5 MB, free: 6.938 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.002906/0.1757, allocations: 481.4 kB / 441 MB, free: 6.461 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003778/0.1795, allocations: 2.316 MB / 443.3 MB, free: 4.125 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.539e-05/0.1796, allocations: 0 / 443.3 MB, free: 4.125 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 1.321e-05/0.1796, allocations: 3.938 kB / 443.3 MB, free: 4.121 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 6.893e-06/0.1797, allocations: 0 / 443.3 MB, free: 4.121 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002874/0.1825, allocations: 1.125 MB / 444.4 MB, free: 2.996 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 7.789e-05/0.1826, allocations: 7.984 kB / 444.4 MB, free: 2.988 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.145e-05/0.1827, allocations: 4 kB / 444.4 MB, free: 2.984 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.297e-05/0.1827, allocations: 0 / 444.4 MB, free: 2.984 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.411e-05/0.1828, allocations: 3.938 kB / 444.4 MB, free: 2.98 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.023e-05/0.1828, allocations: 0 / 444.4 MB, free: 2.98 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001875/0.1847, allocations: 0.9677 MB / 445.4 MB, free: 2.012 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.144e-05/0.1847, allocations: 0 / 445.4 MB, free: 2.012 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.094e-05/0.1847, allocations: 4 kB / 445.4 MB, free: 2.008 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001018/0.1858, allocations: 415.4 kB / 445.8 MB, free: 1.602 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.203e-06/0.1858, allocations: 0 / 445.8 MB, free: 1.602 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.494e-06/0.1858, allocations: 0 / 445.8 MB, free: 1.602 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.267e-06/0.1858, allocations: 0 / 445.8 MB, free: 1.602 MB / 318.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.0006368/0.1864, allocations: 429.4 kB / 446.2 MB, free: 1.129 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.989e-05/0.1865, allocations: 15.89 kB / 446.3 MB, free: 1.113 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.004e-05/0.1866, allocations: 8.781 kB / 446.3 MB, free: 1.105 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.416e-05/0.1867, allocations: 160.4 kB / 446.4 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.742e-05/0.1867, allocations: 384 / 446.4 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.349e-05/0.1867, allocations: 4.375 kB / 446.4 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001069/0.1868, allocations: 45.92 kB / 446.5 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.947e-06/0.1868, allocations: 0 / 446.5 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.076e-05/0.1868, allocations: 4 kB / 446.5 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.838e-06/0.1869, allocations: 0 / 446.5 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.331e-05/0.1869, allocations: 4 kB / 446.5 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001204/0.187, allocations: 141.7 kB / 446.6 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.013e-05/0.1871, allocations: 22.52 kB / 446.6 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.663e-05/0.1871, allocations: 8.953 kB / 446.6 MB, free: 0.6172 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.181e-05/0.1871, allocations: 0 / 446.6 MB, free: 0.6172 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.894e-05/0.1872, allocations: 68.19 kB / 446.7 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of pre-optimization done (n=1): time 1.303e-06/0.1872, allocations: 0 / 446.7 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001977/0.1874, allocations: 63.39 kB / 446.8 MB, free: 472 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.016e-05/0.1874, allocations: 81.05 kB / 446.9 MB, free: 372 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.79e-05/0.1875, allocations: 89.98 kB / 446.9 MB, free: 272 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.496e-06/0.1875, allocations: 29.7 kB / 447 MB, free: 236 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.701e-05/0.1875, allocations: 88.12 kB / 447.1 MB, free: 144 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.144e-05/0.1875, allocations: 0 / 447.1 MB, free: 144 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.642e-05/0.1876, allocations: 13.72 kB / 447.1 MB, free: 124 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000128/0.1877, allocations: 310.8 kB / 447.4 MB, free: 15.81 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.404e-05/0.1877, allocations: 7.938 kB / 447.4 MB, free: 15.8 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.714e-06/0.1877, allocations: 0 / 447.4 MB, free: 15.8 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.127e-05/0.1878, allocations: 64.33 kB / 447.4 MB, free: 15.72 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.826e-06/0.1878, allocations: 0 / 447.4 MB, free: 15.72 MB / 334.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.468e-05/0.1879, allocations: 67.39 kB / 447.5 MB, free: 15.64 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.9e-05/0.1879, allocations: 33.64 kB / 447.5 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.013e-05/0.188, allocations: 0 / 447.5 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.948e-05/0.188, allocations: 3.938 kB / 447.5 MB, free: 15.6 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.242e-06/0.188, allocations: 0 / 447.5 MB, free: 15.6 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.161e-06/0.188, allocations: 0 / 447.5 MB, free: 15.6 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.076e-05/0.188, allocations: 4 kB / 447.5 MB, free: 15.6 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.037e-06/0.188, allocations: 0 / 447.5 MB, free: 15.6 MB / 334.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.000112/0.1882, allocations: 143.5 kB / 447.7 MB, free: 15.44 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.485e-05/0.1882, allocations: 7.938 kB / 447.7 MB, free: 15.43 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.511e-05/0.1882, allocations: 3.125 kB / 447.7 MB, free: 15.43 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.1882, allocations: 4 kB / 447.7 MB, free: 15.43 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.1882, allocations: 0 / 447.7 MB, free: 15.43 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.056e-06/0.1882, allocations: 0 / 447.7 MB, free: 15.43 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001287/0.1884, allocations: 141.7 kB / 447.8 MB, free: 15.24 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.1884, allocations: 0 / 447.8 MB, free: 15.24 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.675e-06/0.1884, allocations: 7.984 kB / 447.8 MB, free: 15.23 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.579e-06/0.1884, allocations: 7.938 kB / 447.9 MB, free: 15.22 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.505e-06/0.1884, allocations: 0 / 447.9 MB, free: 15.22 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.864e-06/0.1884, allocations: 3.938 kB / 447.9 MB, free: 15.22 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.1884, allocations: 0 / 447.9 MB, free: 15.22 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001292/0.1886, allocations: 94.78 kB / 448 MB, free: 15.1 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.165e-05/0.1886, allocations: 81.09 kB / 448 MB, free: 15 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.94e-05/0.1887, allocations: 3.938 kB / 448 MB, free: 15 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.031e-05/0.1887, allocations: 0 / 448 MB, free: 15 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.714e-05/0.1887, allocations: 8.031 kB / 448 MB, free: 14.99 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.376e-06/0.1887, allocations: 0 / 448 MB, free: 14.99 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.346e-05/0.1888, allocations: 75.28 kB / 448.1 MB, free: 14.92 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1888, allocations: 0 / 448.1 MB, free: 14.92 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006223/0.1894, allocations: 140 kB / 448.3 MB, free: 14.78 MB / 334.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.0009684/0.1904, allocations: 362.9 kB / 448.6 MB, free: 14.43 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001261/0.1905, allocations: 59.41 kB / 448.7 MB, free: 14.36 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/0.1905, allocations: 0 / 448.7 MB, free: 14.36 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.988e-05/0.1906, allocations: 59.39 kB / 448.7 MB, free: 14.29 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000145/0.1907, allocations: 8.016 kB / 448.7 MB, free: 14.28 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002374/0.191, allocations: 77.14 kB / 448.8 MB, free: 14.18 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002899/0.1913, allocations: 0.6767 MB / 449.5 MB, free: 13.48 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.987e-06/0.1913, allocations: 0 / 449.5 MB, free: 13.48 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.871e-05/0.1913, allocations: 7.438 kB / 449.5 MB, free: 13.47 MB / 334.1 MB Notification: Performance of SimCode: time 7.02e-07/0.1913, allocations: 0 / 449.5 MB, free: 13.47 MB / 334.1 MB Notification: Performance of Templates: time 0.01001/0.2013, allocations: 4.302 MB / 453.8 MB, free: 9.164 MB / 334.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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches