Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Math.TestPolynomials.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.Math.TestPolynomials,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Math.TestPolynomials") translateModel(ModelicaTest.Math.TestPolynomials,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Math.TestPolynomials") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001107/0.001107, allocations: 110.6 kB / 16.41 MB, free: 6.445 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.001227/0.001227, allocations: 185.5 kB / 17.34 MB, free: 5.738 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.46/1.46, allocations: 205.1 MB / 223.2 MB, free: 12.25 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.2118/0.2118, allocations: 43.52 MB / 314.1 MB, free: 476 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.001392/0.001392, allocations: 67.89 kB / 441.8 MB, free: 5.703 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1428/0.1442, allocations: 57.79 MB / 499.6 MB, free: 11.84 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestPolynomials): time 0.001679/0.1459, allocations: 0.495 MB / 0.4884 GB, free: 11.34 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00692/0.1529, allocations: 5.069 MB / 0.4933 GB, free: 6.234 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.044e-05/0.1529, allocations: 0 / 0.4933 GB, free: 6.234 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.296e-05/0.1529, allocations: 4 kB / 0.4933 GB, free: 6.23 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.731e-06/0.153, allocations: 3.938 kB / 0.4933 GB, free: 6.227 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009516/0.1539, allocations: 235.2 kB / 0.4935 GB, free: 5.996 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.856e-05/0.154, allocations: 0 / 0.4935 GB, free: 5.996 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.659e-05/0.1541, allocations: 4 kB / 0.4935 GB, free: 5.992 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.629e-05/0.1541, allocations: 0 / 0.4935 GB, free: 5.992 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.049e-05/0.1541, allocations: 0 / 0.4935 GB, free: 5.992 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.693e-06/0.1541, allocations: 0 / 0.4935 GB, free: 5.992 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000617/0.1547, allocations: 411.2 kB / 0.4939 GB, free: 5.59 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.496e-06/0.1548, allocations: 0 / 0.4939 GB, free: 5.59 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.854e-05/0.1548, allocations: 0 / 0.4939 GB, free: 5.59 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004199/0.1552, allocations: 307.2 kB / 0.4942 GB, free: 5.289 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.656e-06/0.1552, allocations: 4 kB / 0.4942 GB, free: 5.285 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1552, allocations: 4 kB / 0.4942 GB, free: 5.281 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.426e-06/0.1552, allocations: 0 / 0.4942 GB, free: 5.281 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.0003825/0.1556, allocations: 392.7 kB / 0.4946 GB, free: 4.844 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.765e-05/0.1557, allocations: 11.89 kB / 0.4946 GB, free: 4.832 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.208e-05/0.1557, allocations: 0.9375 kB / 0.4946 GB, free: 4.832 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.787e-05/0.1558, allocations: 160.4 kB / 0.4948 GB, free: 4.637 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.392e-05/0.1558, allocations: 384 / 0.4948 GB, free: 4.637 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.481e-05/0.1559, allocations: 4.375 kB / 0.4948 GB, free: 4.633 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001051/0.156, allocations: 33.83 kB / 0.4948 GB, free: 4.594 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.584e-06/0.156, allocations: 0 / 0.4948 GB, free: 4.594 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.531e-05/0.156, allocations: 3.984 kB / 0.4948 GB, free: 4.59 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.522e-06/0.156, allocations: 0 / 0.4948 GB, free: 4.59 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.838e-05/0.1561, allocations: 4 kB / 0.4948 GB, free: 4.586 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001766/0.1562, allocations: 145.7 kB / 0.495 GB, free: 4.395 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.165e-05/0.1563, allocations: 26.48 kB / 0.495 GB, free: 4.359 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.031e-05/0.1563, allocations: 8.859 kB / 0.495 GB, free: 4.348 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.506e-06/0.1564, allocations: 0 / 0.495 GB, free: 4.348 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.782e-05/0.1564, allocations: 60.2 kB / 0.495 GB, free: 4.273 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 9.92e-07/0.1564, allocations: 0 / 0.495 GB, free: 4.273 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001991/0.1566, allocations: 67.45 kB / 0.4951 GB, free: 4.195 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.433e-05/0.1567, allocations: 81.05 kB / 0.4952 GB, free: 4.098 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.664e-05/0.1567, allocations: 93.86 kB / 0.4953 GB, free: 3.996 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.484e-05/0.1568, allocations: 25.7 kB / 0.4953 GB, free: 3.965 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.516e-05/0.1568, allocations: 84.27 kB / 0.4954 GB, free: 3.879 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.646e-05/0.1569, allocations: 0 / 0.4954 GB, free: 3.879 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.887e-05/0.1569, allocations: 13.7 kB / 0.4954 GB, free: 3.859 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001134/0.157, allocations: 314.8 kB / 0.4957 GB, free: 3.543 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.017e-05/0.157, allocations: 0 / 0.4957 GB, free: 3.543 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.13e-06/0.157, allocations: 0 / 0.4957 GB, free: 3.543 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.16e-05/0.1571, allocations: 68.2 kB / 0.4958 GB, free: 3.461 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.1571, allocations: 4.062 kB / 0.4958 GB, free: 3.457 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.938e-05/0.1572, allocations: 63.39 kB / 0.4958 GB, free: 3.383 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.344e-05/0.1573, allocations: 37.58 kB / 0.4959 GB, free: 3.34 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.1573, allocations: 0 / 0.4959 GB, free: 3.34 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.9e-05/0.1573, allocations: 0 / 0.4959 GB, free: 3.34 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.617e-06/0.1573, allocations: 4 kB / 0.4959 GB, free: 3.336 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.125e-06/0.1573, allocations: 3.984 kB / 0.4959 GB, free: 3.332 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.979e-05/0.1574, allocations: 0 / 0.4959 GB, free: 3.332 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.097e-06/0.1574, allocations: 0 / 0.4959 GB, free: 3.332 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.0001179/0.1575, allocations: 147.5 kB / 0.496 GB, free: 3.172 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.478e-05/0.1575, allocations: 3.938 kB / 0.496 GB, free: 3.168 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.379e-05/0.1576, allocations: 7.109 kB / 0.496 GB, free: 3.164 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.1576, allocations: 0 / 0.496 GB, free: 3.164 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.471e-06/0.1576, allocations: 0 / 0.496 GB, free: 3.164 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.567e-06/0.1576, allocations: 0 / 0.496 GB, free: 3.164 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001362/0.1577, allocations: 149.7 kB / 0.4962 GB, free: 2.969 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.1578, allocations: 0 / 0.4962 GB, free: 2.969 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.41e-07/0.1578, allocations: 0 / 0.4962 GB, free: 2.969 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.651e-06/0.1578, allocations: 3.938 kB / 0.4962 GB, free: 2.965 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.939e-06/0.1578, allocations: 0 / 0.4962 GB, free: 2.965 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.015e-06/0.1578, allocations: 11.92 kB / 0.4962 GB, free: 2.953 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.1578, allocations: 0 / 0.4962 GB, free: 2.953 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000141/0.158, allocations: 90.78 kB / 0.4963 GB, free: 2.84 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.659e-05/0.158, allocations: 85.03 kB / 0.4963 GB, free: 2.738 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.67e-05/0.158, allocations: 7.984 kB / 0.4964 GB, free: 2.73 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.947e-06/0.158, allocations: 0 / 0.4964 GB, free: 2.73 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.451e-05/0.1581, allocations: 0 / 0.4964 GB, free: 2.73 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.408e-06/0.1581, allocations: 8.016 kB / 0.4964 GB, free: 2.723 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.645e-05/0.1581, allocations: 75.28 kB / 0.4964 GB, free: 2.648 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1581, allocations: 0 / 0.4964 GB, free: 2.648 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002925/0.1584, allocations: 67.8 kB / 0.4965 GB, free: 2.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.0004612/0.1589, allocations: 189.3 kB / 0.4967 GB, free: 2.391 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 9.38e-05/0.159, allocations: 67.41 kB / 0.4967 GB, free: 2.312 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.159, allocations: 0 / 0.4967 GB, free: 2.312 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 3.075e-05/0.159, allocations: 55.41 kB / 0.4968 GB, free: 2.246 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000119/0.1592, allocations: 0 / 0.4968 GB, free: 2.246 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002081/0.1594, allocations: 88.91 kB / 0.4969 GB, free: 2.133 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002911/0.1597, allocations: 0.669 MB / 0.4975 GB, free: 1.438 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 6.933e-06/0.1597, allocations: 0 / 0.4975 GB, free: 1.438 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.12e-05/0.1597, allocations: 7.438 kB / 0.4975 GB, free: 1.43 MB / 382.1 MB Notification: Performance of SimCode: time 3.4e-07/0.1597, allocations: 4.125 kB / 0.4975 GB, free: 1.426 MB / 382.1 MB Notification: Performance of Templates: time 0.005039/0.1648, allocations: 1.686 MB / 0.4992 GB, free: 15.74 MB / 398.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Math.TestPolynomials.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Math.TestPolynomials.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Math.TestPolynomials.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Math.TestPolynomials.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Math.TestPolynomials.sim & ./ModelicaTest_3.2.3_ModelicaTest.Math.TestPolynomials -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Math.TestPolynomials.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Math.TestPolynomials_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Math/TestPolynomials/TestPolynomials.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Math.TestPolynomials.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches