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.0077/0.0077, allocations: 98.94 kB / 15.87 MB, free: 6.289 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.001401/0.001401, allocations: 197.2 kB / 16.79 MB, free: 6.219 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.508/1.508, allocations: 205.1 MB / 222.7 MB, free: 4.945 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3676/0.3676, allocations: 43.48 MB / 313.5 MB, free: 8.355 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.001469/0.001469, allocations: 59.91 kB / 382 MB, free: 8.797 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1422/0.1436, allocations: 57.78 MB / 439.8 MB, free: 14.91 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001765/0.1455, allocations: 0.5347 MB / 440.3 MB, free: 14.37 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003409/0.1489, allocations: 2.393 MB / 442.7 MB, free: 11.96 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.134e-05/0.1489, allocations: 0 / 442.7 MB, free: 11.96 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.95e-05/0.1489, allocations: 0 / 442.7 MB, free: 11.96 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.741e-06/0.149, allocations: 0 / 442.7 MB, free: 11.96 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002229/0.1512, allocations: 1.028 MB / 443.8 MB, free: 10.93 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 3.897e-05/0.1512, allocations: 3.984 kB / 443.8 MB, free: 10.92 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.437e-05/0.1513, allocations: 4 kB / 443.8 MB, free: 10.92 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.846e-05/0.1513, allocations: 0 / 443.8 MB, free: 10.92 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.342e-05/0.1513, allocations: 3.984 kB / 443.8 MB, free: 10.91 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.021e-06/0.1514, allocations: 0 / 443.8 MB, free: 10.91 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001418/0.1528, allocations: 0.96 MB / 444.7 MB, free: 9.953 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.072e-05/0.1528, allocations: 0 / 444.7 MB, free: 9.953 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.308e-05/0.1528, allocations: 0 / 444.7 MB, free: 9.953 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005409/0.1534, allocations: 423.3 kB / 445.1 MB, free: 9.539 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.1534, allocations: 0 / 445.1 MB, free: 9.539 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.1534, allocations: 0 / 445.1 MB, free: 9.539 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.498e-06/0.1534, allocations: 3.938 kB / 445.2 MB, free: 9.535 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.0004472/0.1539, allocations: 425.2 kB / 445.6 MB, free: 9.066 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.726e-05/0.1539, allocations: 16.03 kB / 445.6 MB, free: 9.051 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.548e-05/0.1539, allocations: 4.922 kB / 445.6 MB, free: 9.047 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.417e-05/0.154, allocations: 160.4 kB / 445.7 MB, free: 8.852 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.211e-05/0.1541, allocations: 384 / 445.7 MB, free: 8.852 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.128e-05/0.1541, allocations: 4.375 kB / 445.7 MB, free: 8.848 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.865e-05/0.1542, allocations: 37.95 kB / 445.8 MB, free: 8.805 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.005e-05/0.1542, allocations: 0 / 445.8 MB, free: 8.805 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.937e-06/0.1542, allocations: 3.938 kB / 445.8 MB, free: 8.801 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.779e-06/0.1542, allocations: 0 / 445.8 MB, free: 8.801 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.931e-05/0.1542, allocations: 4 kB / 445.8 MB, free: 8.797 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001355/0.1544, allocations: 150 kB / 445.9 MB, free: 8.602 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.499e-05/0.1544, allocations: 14.58 kB / 446 MB, free: 8.578 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.694e-05/0.1545, allocations: 8.953 kB / 446 MB, free: 8.566 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.801e-06/0.1545, allocations: 4 kB / 446 MB, free: 8.562 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.246e-05/0.1545, allocations: 64.14 kB / 446 MB, free: 8.484 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 8.92e-07/0.1545, allocations: 0 / 446 MB, free: 8.484 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002013/0.1547, allocations: 75.28 kB / 446.1 MB, free: 8.398 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.93e-05/0.1548, allocations: 77.11 kB / 446.2 MB, free: 8.305 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.146e-05/0.1549, allocations: 89.86 kB / 446.3 MB, free: 8.207 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.298e-05/0.1549, allocations: 25.7 kB / 446.3 MB, free: 8.176 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.859e-05/0.1549, allocations: 84.14 kB / 446.4 MB, free: 8.09 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.416e-05/0.1549, allocations: 7.938 kB / 446.4 MB, free: 8.082 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.61e-05/0.155, allocations: 9.719 kB / 446.4 MB, free: 8.066 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001135/0.1551, allocations: 310.8 kB / 446.7 MB, free: 7.754 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.244e-05/0.1551, allocations: 8.125 kB / 446.7 MB, free: 7.746 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.253e-06/0.1551, allocations: 3.984 kB / 446.7 MB, free: 7.742 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.094e-05/0.1552, allocations: 64.2 kB / 446.8 MB, free: 7.664 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.1552, allocations: 0 / 446.8 MB, free: 7.664 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.445e-05/0.1553, allocations: 63.41 kB / 446.8 MB, free: 7.59 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.315e-05/0.1553, allocations: 33.64 kB / 446.9 MB, free: 7.551 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.955e-06/0.1553, allocations: 3.984 kB / 446.9 MB, free: 7.547 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.582e-05/0.1553, allocations: 4 kB / 446.9 MB, free: 7.543 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.203e-06/0.1553, allocations: 96 / 446.9 MB, free: 7.543 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.849e-06/0.1554, allocations: 4 kB / 446.9 MB, free: 7.539 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.772e-05/0.1554, allocations: 4 kB / 446.9 MB, free: 7.535 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.124e-06/0.1554, allocations: 0 / 446.9 MB, free: 7.535 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 8.268e-05/0.1555, allocations: 131.5 kB / 447 MB, free: 7.391 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.14e-05/0.1555, allocations: 7.938 kB / 447 MB, free: 7.383 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.06e-05/0.1555, allocations: 3.125 kB / 447 MB, free: 7.379 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.72e-07/0.1555, allocations: 0 / 447 MB, free: 7.379 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.1555, allocations: 3.938 kB / 447 MB, free: 7.375 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.1555, allocations: 0 / 447 MB, free: 7.375 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.649e-05/0.1556, allocations: 161.6 kB / 447.2 MB, free: 7.168 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/0.1556, allocations: 3.938 kB / 447.2 MB, free: 7.164 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.1557, allocations: 4 kB / 447.2 MB, free: 7.16 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-06/0.1557, allocations: 3.938 kB / 447.2 MB, free: 7.156 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.362e-06/0.1557, allocations: 0 / 447.2 MB, free: 7.156 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.82e-07/0.1557, allocations: 0 / 447.2 MB, free: 7.156 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.81e-07/0.1557, allocations: 0 / 447.2 MB, free: 7.156 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.559e-05/0.1558, allocations: 94.83 kB / 447.3 MB, free: 7.039 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.436e-05/0.1558, allocations: 77.11 kB / 447.4 MB, free: 6.945 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.292e-05/0.1558, allocations: 3.938 kB / 447.4 MB, free: 6.941 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.057e-06/0.1558, allocations: 0 / 447.4 MB, free: 6.941 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.578e-06/0.1559, allocations: 4 kB / 447.4 MB, free: 6.938 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.978e-06/0.1559, allocations: 3.984 kB / 447.4 MB, free: 6.934 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.412e-05/0.1559, allocations: 75.28 kB / 447.4 MB, free: 6.859 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1559, allocations: 0 / 447.4 MB, free: 6.859 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004294/0.1563, allocations: 136 kB / 447.6 MB, free: 6.727 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.000611/0.157, allocations: 378.2 kB / 447.9 MB, free: 6.355 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 9.048e-05/0.1571, allocations: 59.34 kB / 448 MB, free: 6.285 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.1571, allocations: 4.062 kB / 448 MB, free: 6.281 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 2.747e-05/0.1571, allocations: 55.41 kB / 448.1 MB, free: 6.215 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001237/0.1572, allocations: 4 kB / 448.1 MB, free: 6.211 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001513/0.1574, allocations: 78.75 kB / 448.1 MB, free: 6.109 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002192/0.1576, allocations: 0.6731 MB / 448.8 MB, free: 5.41 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 5.831e-06/0.1576, allocations: 0 / 448.8 MB, free: 5.41 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.954e-06/0.1576, allocations: 7.438 kB / 448.8 MB, free: 5.406 MB / 382.1 MB Notification: Performance of SimCode: time 1.513e-06/0.1576, allocations: 0 / 448.8 MB, free: 5.406 MB / 382.1 MB Notification: Performance of Templates: time 0.007092/0.1647, allocations: 4.299 MB / 453.1 MB, free: 1.102 MB / 382.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 -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