Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexFunctions.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001049/0.001049, allocations: 179.3 kB / 16.08 MB, free: 5.527 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.804/1.804, allocations: 205.6 MB / 222.4 MB, free: 13.66 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009594/0.0009599, allocations: 94.23 kB / 270.8 MB, free: 13.18 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2521/0.2521, allocations: 43.69 MB / 362.7 MB, free: 11.04 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003772/0.0003773, allocations: 8 kB / 432.3 MB, free: 19.11 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1446/0.1449, allocations: 58.85 MB / 491.2 MB, free: 8.129 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.0009026/0.1459, allocations: 208.7 kB / 491.4 MB, free: 7.922 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.006206/0.1522, allocations: 4.187 MB / 495.5 MB, free: 3.254 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.077e-05/0.1522, allocations: 0 / 495.5 MB, free: 3.254 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 2.117e-05/0.1522, allocations: 0 / 495.5 MB, free: 3.254 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 6.532e-06/0.1523, allocations: 0 / 495.5 MB, free: 3.254 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004057/0.1563, allocations: 1.675 MB / 497.2 MB, free: 1.41 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 5.418e-05/0.1564, allocations: 3.938 kB / 497.2 MB, free: 1.406 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 6.171e-05/0.1565, allocations: 0 / 497.2 MB, free: 1.406 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.842e-05/0.1565, allocations: 8 kB / 497.2 MB, free: 1.398 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.579e-05/0.1566, allocations: 0 / 497.2 MB, free: 1.398 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 8.736e-06/0.1566, allocations: 0 / 497.2 MB, free: 1.398 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002185/0.1588, allocations: 0.9209 MB / 498.2 MB, free: 488 kB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 1.358e-05/0.1588, allocations: 4 kB / 498.2 MB, free: 484 kB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 4.73e-05/0.1589, allocations: 29.69 kB / 498.2 MB, free: 448 kB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001022/0.1599, allocations: 415.4 kB / 498.6 MB, free: 32 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.615e-06/0.1599, allocations: 0 / 498.6 MB, free: 32 kB / 330.7 MB Notification: Performance of FrontEnd: time 2.796e-06/0.1599, allocations: 0 / 498.6 MB, free: 32 kB / 330.7 MB Notification: Performance of Transformations before backend: time 1.309e-05/0.1599, allocations: 4 kB / 498.6 MB, free: 28 kB / 330.7 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.0007549/0.1607, allocations: 429.2 kB / 499 MB, free: 15.55 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.579e-05/0.1608, allocations: 8.031 kB / 499 MB, free: 15.55 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.666e-05/0.1608, allocations: 0.9375 kB / 499 MB, free: 15.55 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001414/0.161, allocations: 164.3 kB / 499.2 MB, free: 15.35 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.265e-05/0.161, allocations: 4.359 kB / 499.2 MB, free: 15.34 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.575e-05/0.161, allocations: 4.375 kB / 499.2 MB, free: 15.34 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001353/0.1612, allocations: 38.02 kB / 499.2 MB, free: 15.3 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.929e-06/0.1612, allocations: 4 kB / 499.2 MB, free: 15.29 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.259e-05/0.1612, allocations: 0 / 499.2 MB, free: 15.29 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.282e-06/0.1613, allocations: 0 / 499.2 MB, free: 15.29 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.238e-05/0.1613, allocations: 4 kB / 499.2 MB, free: 15.29 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002068/0.1615, allocations: 150 kB / 499.4 MB, free: 15.09 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.602e-05/0.1616, allocations: 22.55 kB / 499.4 MB, free: 15.06 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2e-05/0.1616, allocations: 4.859 kB / 499.4 MB, free: 15.05 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.139e-05/0.1616, allocations: 0 / 499.4 MB, free: 15.05 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.259e-05/0.1617, allocations: 64.2 kB / 499.5 MB, free: 14.98 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 1.613e-06/0.1617, allocations: 0 / 499.5 MB, free: 14.98 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002471/0.162, allocations: 71.39 kB / 499.5 MB, free: 14.89 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.443e-05/0.1621, allocations: 81.05 kB / 499.6 MB, free: 14.8 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.69e-05/0.1621, allocations: 93.86 kB / 499.7 MB, free: 14.7 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.741e-05/0.1622, allocations: 29.64 kB / 499.7 MB, free: 14.66 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.878e-05/0.1622, allocations: 80.14 kB / 499.8 MB, free: 14.58 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.072e-05/0.1623, allocations: 4.062 kB / 499.8 MB, free: 14.57 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.777e-06/0.1623, allocations: 4 kB / 499.8 MB, free: 14.57 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001513/0.1624, allocations: 310.8 kB / 0.4884 GB, free: 14.26 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.063e-05/0.1625, allocations: 0 / 0.4884 GB, free: 14.26 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.487e-05/0.1625, allocations: 7.984 kB / 0.4884 GB, free: 14.25 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.416e-05/0.1625, allocations: 60.27 kB / 0.4885 GB, free: 14.18 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.1626, allocations: 4 kB / 0.4885 GB, free: 14.17 MB / 346.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.33e-05/0.1627, allocations: 55.41 kB / 0.4885 GB, free: 14.11 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.904e-05/0.1627, allocations: 41.73 kB / 0.4886 GB, free: 14.06 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.941e-06/0.1628, allocations: 0 / 0.4886 GB, free: 14.06 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.79e-05/0.1628, allocations: 3.984 kB / 0.4886 GB, free: 14.05 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.356e-06/0.1628, allocations: 3.938 kB / 0.4886 GB, free: 14.05 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.064e-06/0.1628, allocations: 0 / 0.4886 GB, free: 14.05 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.323e-05/0.1628, allocations: 0 / 0.4886 GB, free: 14.05 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.026e-06/0.1629, allocations: 0 / 0.4886 GB, free: 14.05 MB / 346.7 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.0001226/0.163, allocations: 135.5 kB / 0.4887 GB, free: 13.9 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.349e-05/0.163, allocations: 3.938 kB / 0.4887 GB, free: 13.9 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.397e-05/0.163, allocations: 7.125 kB / 0.4887 GB, free: 13.89 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-06/0.163, allocations: 0 / 0.4887 GB, free: 13.89 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.93e-06/0.1631, allocations: 4 kB / 0.4887 GB, free: 13.89 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.077e-06/0.1631, allocations: 0 / 0.4887 GB, free: 13.89 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001304/0.1632, allocations: 149.7 kB / 0.4889 GB, free: 13.69 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/0.1632, allocations: 0 / 0.4889 GB, free: 13.69 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.272e-06/0.1632, allocations: 0 / 0.4889 GB, free: 13.69 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.542e-06/0.1632, allocations: 3.938 kB / 0.4889 GB, free: 13.69 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.023e-05/0.1633, allocations: 4 kB / 0.4889 GB, free: 13.68 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.973e-06/0.1633, allocations: 0 / 0.4889 GB, free: 13.68 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/0.1633, allocations: 0 / 0.4889 GB, free: 13.68 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001304/0.1634, allocations: 94.83 kB / 0.489 GB, free: 13.57 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.478e-05/0.1635, allocations: 77.11 kB / 0.489 GB, free: 13.47 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.054e-05/0.1635, allocations: 7.875 kB / 0.489 GB, free: 13.46 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.295e-05/0.1635, allocations: 0 / 0.489 GB, free: 13.46 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.054e-05/0.1636, allocations: 3.938 kB / 0.489 GB, free: 13.46 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.494e-06/0.1636, allocations: 4 kB / 0.4891 GB, free: 13.46 MB / 346.7 MB Notification: Performance of sorting global known variables: time 4.066e-05/0.1636, allocations: 79.27 kB / 0.4891 GB, free: 13.38 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1636, allocations: 4.031 kB / 0.4891 GB, free: 13.38 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007555/0.1644, allocations: 132 kB / 0.4893 GB, free: 13.25 MB / 346.7 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.00118/0.1656, allocations: 385.1 kB / 0.4896 GB, free: 12.87 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001152/0.1657, allocations: 59.41 kB / 0.4897 GB, free: 12.8 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.1658, allocations: 0 / 0.4897 GB, free: 12.8 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 4.375e-05/0.1658, allocations: 55.41 kB / 0.4897 GB, free: 12.73 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001977/0.166, allocations: 3.984 kB / 0.4897 GB, free: 12.73 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002476/0.1663, allocations: 78.67 kB / 0.4898 GB, free: 12.62 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003161/0.1666, allocations: 0.6731 MB / 0.4905 GB, free: 11.93 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 7.484e-06/0.1666, allocations: 4.125 kB / 0.4905 GB, free: 11.92 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.932e-05/0.1667, allocations: 7.438 kB / 0.4905 GB, free: 11.91 MB / 346.7 MB Notification: Performance of SimCode: time 9.72e-07/0.1667, allocations: 4 kB / 0.4905 GB, free: 11.91 MB / 346.7 MB Notification: Performance of Templates: time 0.0117/0.1784, allocations: 4.278 MB / 0.4947 GB, free: 7.637 MB / 346.7 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