Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_ModelicaTest.Math.TestPolynomials") translateModel(ModelicaTest.Math.TestPolynomials,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestPolynomials") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001498/0.001498, allocations: 105.1 kB / 17.33 MB, free: 5.996 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.001682/0.001682, allocations: 193.3 kB / 18.25 MB, free: 5.086 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.373/1.373, allocations: 222.9 MB / 241.9 MB, free: 15.36 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2321/0.2321, allocations: 44.17 MB / 336.2 MB, free: 2.938 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001286/0.001286, allocations: 62.34 kB / 407.9 MB, free: 27.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1096/0.1109, allocations: 60.83 MB / 468.7 MB, free: 14.75 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestPolynomials): time 0.002206/0.1132, allocations: 0.541 MB / 469.3 MB, free: 14.2 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002397/0.1156, allocations: 1.746 MB / 471 MB, free: 12.44 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.447e-05/0.1156, allocations: 0 / 471 MB, free: 12.44 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.586e-05/0.1157, allocations: 0 / 471 MB, free: 12.44 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.719e-06/0.1157, allocations: 0 / 471 MB, free: 12.44 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Math.mo:120:3-169:18:writable] Warning: Pure function ‘ModelicaTest.Math.Polynomials‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.0009418/0.1166, allocations: 195.6 kB / 471.2 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.075e-05/0.1167, allocations: 15.98 kB / 471.2 MB, free: 12.23 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.52e-05/0.1168, allocations: 0 / 471.2 MB, free: 12.23 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.894e-05/0.1168, allocations: 0 / 471.2 MB, free: 12.23 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.908e-05/0.1168, allocations: 0 / 471.2 MB, free: 12.23 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.123e-06/0.1168, allocations: 0 / 471.2 MB, free: 12.23 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005991/0.1174, allocations: 399.2 kB / 471.6 MB, free: 11.84 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.084e-05/0.1175, allocations: 4 kB / 471.6 MB, free: 11.84 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.344e-05/0.1175, allocations: 7.938 kB / 471.6 MB, free: 11.83 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004134/0.1179, allocations: 291.5 kB / 471.9 MB, free: 11.54 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.1179, allocations: 4 kB / 471.9 MB, free: 11.54 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.1179, allocations: 4 kB / 471.9 MB, free: 11.54 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.38e-06/0.1179, allocations: 0 / 471.9 MB, free: 11.54 MB / 350.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.0003834/0.1183, allocations: 393.2 kB / 472.3 MB, free: 11.1 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.476e-05/0.1184, allocations: 8.031 kB / 472.3 MB, free: 11.09 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.975e-05/0.1184, allocations: 0.9375 kB / 472.3 MB, free: 11.09 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.275e-05/0.1185, allocations: 160.4 kB / 472.4 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.11e-05/0.1185, allocations: 8.25 kB / 472.5 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.149e-05/0.1185, allocations: 8.359 kB / 472.5 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.306e-05/0.1186, allocations: 42 kB / 472.5 MB, free: 10.83 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.56e-06/0.1186, allocations: 0 / 472.5 MB, free: 10.83 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.737e-06/0.1186, allocations: 0 / 472.5 MB, free: 10.83 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.911e-06/0.1187, allocations: 0 / 472.5 MB, free: 10.83 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.682e-05/0.1187, allocations: 4 kB / 472.5 MB, free: 10.83 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001224/0.1188, allocations: 141.7 kB / 472.6 MB, free: 10.64 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.156e-05/0.1189, allocations: 22.55 kB / 472.7 MB, free: 10.61 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.382e-05/0.1189, allocations: 8.844 kB / 472.7 MB, free: 10.6 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.282e-06/0.1189, allocations: 4 kB / 472.7 MB, free: 10.59 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.553e-05/0.1189, allocations: 64.2 kB / 472.7 MB, free: 10.52 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 8.82e-07/0.119, allocations: 0 / 472.7 MB, free: 10.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001601/0.1191, allocations: 59.47 kB / 472.8 MB, free: 10.45 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.914e-05/0.1192, allocations: 85.09 kB / 472.9 MB, free: 10.34 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.77e-05/0.1192, allocations: 89.86 kB / 473 MB, free: 10.25 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.155e-05/0.1192, allocations: 25.7 kB / 473 MB, free: 10.21 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.664e-05/0.1193, allocations: 84.27 kB / 473.1 MB, free: 10.13 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.817e-05/0.1193, allocations: 4 kB / 473.1 MB, free: 10.12 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.914e-05/0.1193, allocations: 13.72 kB / 473.1 MB, free: 10.11 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001215/0.1195, allocations: 314.8 kB / 473.4 MB, free: 9.789 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.738e-06/0.1195, allocations: 0 / 473.4 MB, free: 9.789 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.48e-06/0.1195, allocations: 0 / 473.4 MB, free: 9.789 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.729e-05/0.1195, allocations: 60.27 kB / 473.5 MB, free: 9.715 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.1195, allocations: 0 / 473.5 MB, free: 9.715 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.465e-05/0.1196, allocations: 71.45 kB / 473.5 MB, free: 9.633 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.354e-05/0.1197, allocations: 33.64 kB / 473.6 MB, free: 9.594 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.05e-06/0.1197, allocations: 0 / 473.6 MB, free: 9.594 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.162e-05/0.1197, allocations: 0 / 473.6 MB, free: 9.594 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.218e-06/0.1197, allocations: 4 kB / 473.6 MB, free: 9.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.66e-06/0.1197, allocations: 3.938 kB / 473.6 MB, free: 9.586 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.948e-05/0.1197, allocations: 0 / 473.6 MB, free: 9.586 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.772e-06/0.1197, allocations: 3.938 kB / 473.6 MB, free: 9.582 MB / 350.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 9.386e-05/0.1198, allocations: 139.5 kB / 473.7 MB, free: 9.43 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.037e-06/0.1199, allocations: 7.969 kB / 473.7 MB, free: 9.422 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.558e-06/0.1199, allocations: 3.125 kB / 473.7 MB, free: 9.418 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.193e-06/0.1199, allocations: 0 / 473.7 MB, free: 9.418 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.1199, allocations: 0 / 473.7 MB, free: 9.418 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.1199, allocations: 0 / 473.7 MB, free: 9.418 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001034/0.12, allocations: 153.7 kB / 473.9 MB, free: 9.219 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.12, allocations: 4 kB / 473.9 MB, free: 9.215 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.51e-07/0.12, allocations: 0 / 473.9 MB, free: 9.215 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.106e-06/0.12, allocations: 7.875 kB / 473.9 MB, free: 9.207 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.307e-06/0.12, allocations: 3.984 kB / 473.9 MB, free: 9.203 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.91e-07/0.12, allocations: 4 kB / 473.9 MB, free: 9.199 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.1201, allocations: 0 / 473.9 MB, free: 9.199 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.694e-05/0.1202, allocations: 94.73 kB / 474 MB, free: 9.082 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.372e-05/0.1202, allocations: 77.11 kB / 474.1 MB, free: 8.988 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.558e-05/0.1202, allocations: 7.938 kB / 474.1 MB, free: 8.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.486e-06/0.1202, allocations: 0 / 474.1 MB, free: 8.98 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.532e-05/0.1203, allocations: 3.938 kB / 474.1 MB, free: 8.977 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.494e-06/0.1203, allocations: 32 / 474.1 MB, free: 8.977 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.631e-05/0.1203, allocations: 79.28 kB / 474.2 MB, free: 8.898 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1203, allocations: 0 / 474.2 MB, free: 8.898 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003254/0.1206, allocations: 59.98 kB / 474.2 MB, free: 8.84 MB / 350.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.000462/0.1211, allocations: 205.6 kB / 474.4 MB, free: 8.637 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001027/0.1212, allocations: 55.41 kB / 474.5 MB, free: 8.57 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.1212, allocations: 0 / 474.5 MB, free: 8.57 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.423e-05/0.1213, allocations: 63.39 kB / 474.5 MB, free: 8.496 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001226/0.1214, allocations: 1.406 kB / 474.5 MB, free: 8.496 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001708/0.1216, allocations: 76.94 kB / 474.6 MB, free: 8.395 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002249/0.1218, allocations: 0.669 MB / 475.3 MB, free: 7.699 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.721e-06/0.1218, allocations: 0 / 475.3 MB, free: 7.699 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.191e-05/0.1218, allocations: 11.56 kB / 475.3 MB, free: 7.688 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1218, allocations: 7.938 kB / 475.3 MB, free: 7.68 MB / 350.1 MB Notification: Performance of Templates: time 0.004068/0.1259, allocations: 1.62 MB / 476.9 MB, free: 6.059 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.TestPolynomials.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.TestPolynomials.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.TestPolynomials.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.TestPolynomials.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestPolynomials.sim & ./ModelicaTest_4.0.0_ModelicaTest.Math.TestPolynomials -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.TestPolynomials.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.TestPolynomials_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestPolynomials/TestPolynomials.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Math.TestPolynomials.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches