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.001816/0.001816, allocations: 114.9 kB / 17.08 MB, free: 5.953 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.002035/0.002035, allocations: 193.4 kB / 18.02 MB, free: 5.027 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.711/1.711, allocations: 205.1 MB / 223.9 MB, free: 12.22 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.2365/0.2365, allocations: 43.52 MB / 314.8 MB, free: 428 kB / 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.002246/0.002246, allocations: 77.44 kB / 442.5 MB, free: 5.637 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1493/0.1516, allocations: 57.78 MB / 0.4885 GB, free: 11.79 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.002068/0.1537, allocations: 494.6 kB / 0.489 GB, free: 11.31 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005267/0.1589, allocations: 2.33 MB / 0.4913 GB, free: 8.957 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.373e-05/0.159, allocations: 0 / 0.4913 GB, free: 8.957 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 2.15e-05/0.159, allocations: 0 / 0.4913 GB, free: 8.957 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 8.196e-06/0.159, allocations: 0 / 0.4913 GB, free: 8.957 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003997/0.163, allocations: 1.129 MB / 0.4924 GB, free: 7.824 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 6.064e-05/0.163, allocations: 4 kB / 0.4924 GB, free: 7.82 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.926e-05/0.1631, allocations: 0 / 0.4924 GB, free: 7.82 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.497e-05/0.1631, allocations: 3.938 kB / 0.4924 GB, free: 7.816 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.728e-05/0.1631, allocations: 4 kB / 0.4924 GB, free: 7.812 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.815e-06/0.1631, allocations: 0 / 0.4924 GB, free: 7.812 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002337/0.1655, allocations: 0.995 MB / 0.4933 GB, free: 6.816 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.397e-06/0.1655, allocations: 0 / 0.4933 GB, free: 6.816 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.312e-05/0.1655, allocations: 4 kB / 0.4933 GB, free: 6.812 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009472/0.1665, allocations: 415.2 kB / 0.4937 GB, free: 6.406 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.1665, allocations: 0 / 0.4937 GB, free: 6.406 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.1665, allocations: 4 kB / 0.4937 GB, free: 6.402 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.232e-06/0.1665, allocations: 0 / 0.4937 GB, free: 6.402 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.0006742/0.1672, allocations: 436.5 kB / 0.4942 GB, free: 5.922 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.12e-05/0.1672, allocations: 19.83 kB / 0.4942 GB, free: 5.902 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.978e-05/0.1672, allocations: 0.9375 kB / 0.4942 GB, free: 5.902 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001373/0.1674, allocations: 160.4 kB / 0.4943 GB, free: 5.707 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.356e-05/0.1674, allocations: 384 / 0.4943 GB, free: 5.707 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.027e-06/0.1674, allocations: 4.375 kB / 0.4943 GB, free: 5.703 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001073/0.1675, allocations: 30.02 kB / 0.4944 GB, free: 5.668 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.426e-06/0.1675, allocations: 0 / 0.4944 GB, free: 5.668 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.828e-06/0.1675, allocations: 0 / 0.4944 GB, free: 5.668 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.859e-06/0.1675, allocations: 4 kB / 0.4944 GB, free: 5.664 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.578e-05/0.1676, allocations: 3.984 kB / 0.4944 GB, free: 5.66 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001858/0.1677, allocations: 145.7 kB / 0.4945 GB, free: 5.469 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.997e-05/0.1678, allocations: 26.55 kB / 0.4945 GB, free: 5.434 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.79e-05/0.1678, allocations: 4.859 kB / 0.4945 GB, free: 5.426 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.887e-06/0.1678, allocations: 0 / 0.4945 GB, free: 5.426 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.427e-05/0.1679, allocations: 60.2 kB / 0.4946 GB, free: 5.352 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 9.72e-07/0.1679, allocations: 0 / 0.4946 GB, free: 5.352 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002133/0.1681, allocations: 71.39 kB / 0.4947 GB, free: 5.27 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.891e-05/0.1682, allocations: 85.05 kB / 0.4948 GB, free: 5.168 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.426e-05/0.1683, allocations: 93.86 kB / 0.4948 GB, free: 5.066 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.925e-05/0.1683, allocations: 25.7 kB / 0.4949 GB, free: 5.035 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.114e-05/0.1683, allocations: 80.14 kB / 0.4949 GB, free: 4.953 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.564e-05/0.1683, allocations: 0 / 0.4949 GB, free: 4.953 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.997e-05/0.1684, allocations: 13.72 kB / 0.495 GB, free: 4.934 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001653/0.1685, allocations: 314.8 kB / 0.4953 GB, free: 4.617 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.136e-05/0.1686, allocations: 4.125 kB / 0.4953 GB, free: 4.613 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.682e-06/0.1686, allocations: 0 / 0.4953 GB, free: 4.613 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.668e-05/0.1686, allocations: 64.27 kB / 0.4953 GB, free: 4.535 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.1686, allocations: 0 / 0.4953 GB, free: 4.535 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.775e-05/0.1687, allocations: 59.41 kB / 0.4954 GB, free: 4.465 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.714e-05/0.1688, allocations: 37.62 kB / 0.4954 GB, free: 4.422 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.817e-06/0.1688, allocations: 7.938 kB / 0.4954 GB, free: 4.414 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.484e-05/0.1688, allocations: 3.938 kB / 0.4954 GB, free: 4.41 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.162e-06/0.1688, allocations: 8.094 kB / 0.4954 GB, free: 4.402 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.671e-06/0.1688, allocations: 0 / 0.4954 GB, free: 4.402 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.766e-05/0.1688, allocations: 0 / 0.4954 GB, free: 4.402 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.842e-06/0.1688, allocations: 0 / 0.4954 GB, free: 4.402 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.000118/0.1689, allocations: 139.5 kB / 0.4956 GB, free: 4.25 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.542e-05/0.169, allocations: 3.938 kB / 0.4956 GB, free: 4.246 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.924e-05/0.169, allocations: 7.125 kB / 0.4956 GB, free: 4.234 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-06/0.169, allocations: 0 / 0.4956 GB, free: 4.234 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.465e-06/0.169, allocations: 3.984 kB / 0.4956 GB, free: 4.23 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.467e-06/0.169, allocations: 4 kB / 0.4956 GB, free: 4.227 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000172/0.1692, allocations: 149.6 kB / 0.4957 GB, free: 4.031 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/0.1692, allocations: 0 / 0.4957 GB, free: 4.031 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.91e-07/0.1692, allocations: 0 / 0.4957 GB, free: 4.031 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.498e-06/0.1692, allocations: 3.938 kB / 0.4957 GB, free: 4.027 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.414e-06/0.1692, allocations: 0 / 0.4957 GB, free: 4.027 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.1692, allocations: 0 / 0.4957 GB, free: 4.027 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.103e-06/0.1692, allocations: 0 / 0.4957 GB, free: 4.027 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001429/0.1693, allocations: 102.8 kB / 0.4958 GB, free: 3.902 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.076e-05/0.1694, allocations: 77.11 kB / 0.4959 GB, free: 3.809 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.098e-05/0.1694, allocations: 7.938 kB / 0.4959 GB, free: 3.801 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.64e-05/0.1694, allocations: 7.922 kB / 0.4959 GB, free: 3.793 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.219e-05/0.1694, allocations: 0 / 0.4959 GB, free: 3.793 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.765e-06/0.1695, allocations: 0 / 0.4959 GB, free: 3.793 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.288e-05/0.1695, allocations: 75.28 kB / 0.496 GB, free: 3.719 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1695, allocations: 0 / 0.496 GB, free: 3.719 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006564/0.1701, allocations: 139.6 kB / 0.4961 GB, free: 3.582 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.001046/0.1712, allocations: 369.3 kB / 0.4965 GB, free: 3.211 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001318/0.1713, allocations: 55.41 kB / 0.4965 GB, free: 3.145 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.225e-06/0.1713, allocations: 8.062 kB / 0.4965 GB, free: 3.137 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 5.157e-05/0.1714, allocations: 51.41 kB / 0.4966 GB, free: 3.074 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001869/0.1716, allocations: 7.938 kB / 0.4966 GB, free: 3.066 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002626/0.1718, allocations: 96.75 kB / 0.4967 GB, free: 2.945 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003757/0.1722, allocations: 0.669 MB / 0.4973 GB, free: 2.25 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 7.263e-06/0.1722, allocations: 0 / 0.4973 GB, free: 2.25 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.516e-05/0.1722, allocations: 7.438 kB / 0.4973 GB, free: 2.242 MB / 382.1 MB Notification: Performance of SimCode: time 5.61e-07/0.1722, allocations: 0 / 0.4973 GB, free: 2.242 MB / 382.1 MB Notification: Performance of Templates: time 0.01221/0.1844, allocations: 4.291 MB / 0.5015 GB, free: 13.95 MB / 398.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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/ComplexMath/TestComplexFunctions/TestComplexFunctions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches