Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations.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.TestComplexOperations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations") translateModel(ModelicaTest.ComplexMath.TestComplexOperations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001163/0.001163, allocations: 109.6 kB / 16.41 MB, free: 6.496 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.001285/0.001285, allocations: 185.5 kB / 17.34 MB, free: 5.762 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.535/1.535, allocations: 205.1 MB / 223.2 MB, free: 12.3 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.2359/0.2359, allocations: 43.53 MB / 314.1 MB, free: 464 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: 71.91 kB / 441.8 MB, free: 5.703 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1539/0.1553, allocations: 57.78 MB / 499.6 MB, free: 11.85 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.001758/0.1571, allocations: 482.7 kB / 0.4883 GB, free: 11.38 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003747/0.1609, allocations: 2.326 MB / 0.4906 GB, free: 9.035 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.204e-05/0.161, allocations: 0 / 0.4906 GB, free: 9.035 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.712e-05/0.161, allocations: 3.938 kB / 0.4906 GB, free: 9.031 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 7.464e-06/0.161, allocations: 0 / 0.4906 GB, free: 9.031 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003155/0.1642, allocations: 1.125 MB / 0.4917 GB, free: 7.902 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 7.902e-05/0.1643, allocations: 0 / 0.4917 GB, free: 7.902 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.215e-05/0.1643, allocations: 4 kB / 0.4917 GB, free: 7.898 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.584e-05/0.1644, allocations: 0 / 0.4917 GB, free: 7.898 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.981e-05/0.1644, allocations: 7.969 kB / 0.4917 GB, free: 7.891 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.01e-05/0.1644, allocations: 0 / 0.4917 GB, free: 7.891 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002082/0.1665, allocations: 0.9911 MB / 0.4927 GB, free: 6.898 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.465e-05/0.1665, allocations: 0 / 0.4927 GB, free: 6.898 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.095e-05/0.1666, allocations: 0 / 0.4927 GB, free: 6.898 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007145/0.1673, allocations: 423.2 kB / 0.4931 GB, free: 6.484 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.718e-06/0.1673, allocations: 0 / 0.4931 GB, free: 6.484 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.075e-06/0.1673, allocations: 3.938 kB / 0.4931 GB, free: 6.48 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.367e-06/0.1674, allocations: 0 / 0.4931 GB, free: 6.48 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.0007173/0.1681, allocations: 432.5 kB / 0.4935 GB, free: 6.004 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.678e-05/0.1682, allocations: 15.89 kB / 0.4935 GB, free: 5.988 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.517e-05/0.1682, allocations: 4.938 kB / 0.4935 GB, free: 5.984 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001702/0.1684, allocations: 160.4 kB / 0.4937 GB, free: 5.789 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.401e-05/0.1684, allocations: 384 / 0.4937 GB, free: 5.789 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.864e-05/0.1684, allocations: 384 / 0.4937 GB, free: 5.789 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000164/0.1686, allocations: 37.95 kB / 0.4937 GB, free: 5.746 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.979e-06/0.1686, allocations: 0 / 0.4937 GB, free: 5.746 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.439e-05/0.1686, allocations: 0 / 0.4937 GB, free: 5.746 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.887e-06/0.1687, allocations: 0 / 0.4937 GB, free: 5.746 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.998e-05/0.1687, allocations: 7.984 kB / 0.4937 GB, free: 5.738 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001881/0.1689, allocations: 149.7 kB / 0.4938 GB, free: 5.543 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.631e-05/0.169, allocations: 18.52 kB / 0.4939 GB, free: 5.516 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.422e-05/0.169, allocations: 8.953 kB / 0.4939 GB, free: 5.504 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.277e-05/0.169, allocations: 0 / 0.4939 GB, free: 5.504 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.874e-05/0.1691, allocations: 60.2 kB / 0.4939 GB, free: 5.43 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.112e-06/0.1691, allocations: 0 / 0.4939 GB, free: 5.43 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.000279/0.1694, allocations: 71.33 kB / 0.494 GB, free: 5.348 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.752e-05/0.1695, allocations: 81.23 kB / 0.4941 GB, free: 5.25 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.372e-05/0.1695, allocations: 89.86 kB / 0.4942 GB, free: 5.152 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.49e-05/0.1695, allocations: 29.64 kB / 0.4942 GB, free: 5.117 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.441e-05/0.1696, allocations: 84.14 kB / 0.4943 GB, free: 5.031 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.714e-05/0.1696, allocations: 0 / 0.4943 GB, free: 5.031 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.052e-05/0.1697, allocations: 9.719 kB / 0.4943 GB, free: 5.016 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001661/0.1698, allocations: 314.8 kB / 0.4946 GB, free: 4.699 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.728e-05/0.1699, allocations: 4 kB / 0.4946 GB, free: 4.695 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.121e-06/0.1699, allocations: 4 kB / 0.4946 GB, free: 4.691 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.598e-05/0.1699, allocations: 64.27 kB / 0.4946 GB, free: 4.613 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.1699, allocations: 0 / 0.4946 GB, free: 4.613 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.035e-05/0.17, allocations: 67.34 kB / 0.4947 GB, free: 4.535 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.268e-05/0.1701, allocations: 37.62 kB / 0.4947 GB, free: 4.492 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.738e-06/0.1701, allocations: 0 / 0.4947 GB, free: 4.492 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.62e-05/0.1701, allocations: 0 / 0.4947 GB, free: 4.492 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.414e-06/0.1701, allocations: 0 / 0.4947 GB, free: 4.492 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.612e-06/0.1701, allocations: 0 / 0.4947 GB, free: 4.492 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.255e-05/0.1702, allocations: 8.094 kB / 0.4948 GB, free: 4.484 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.206e-05/0.1702, allocations: 3.984 kB / 0.4948 GB, free: 4.48 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.0001187/0.1703, allocations: 139.5 kB / 0.4949 GB, free: 4.328 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.416e-05/0.1703, allocations: 7.938 kB / 0.4949 GB, free: 4.32 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.414e-05/0.1703, allocations: 3.125 kB / 0.4949 GB, free: 4.312 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.092e-06/0.1704, allocations: 0 / 0.4949 GB, free: 4.312 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.857e-06/0.1704, allocations: 3.984 kB / 0.4949 GB, free: 4.309 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.805e-06/0.1704, allocations: 3.938 kB / 0.4949 GB, free: 4.305 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000121/0.1705, allocations: 145.6 kB / 0.495 GB, free: 4.113 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.81e-07/0.1705, allocations: 4 kB / 0.4951 GB, free: 4.109 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.31e-07/0.1705, allocations: 4 kB / 0.4951 GB, free: 4.105 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/0.1705, allocations: 3.938 kB / 0.4951 GB, free: 4.102 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.706e-06/0.1705, allocations: 0 / 0.4951 GB, free: 4.102 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.52e-07/0.1705, allocations: 0 / 0.4951 GB, free: 4.102 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.1705, allocations: 0 / 0.4951 GB, free: 4.102 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001175/0.1707, allocations: 98.75 kB / 0.4952 GB, free: 3.98 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.41e-05/0.1707, allocations: 81.14 kB / 0.4952 GB, free: 3.883 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.504e-05/0.1707, allocations: 3.938 kB / 0.4952 GB, free: 3.879 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.255e-05/0.1708, allocations: 3.984 kB / 0.4952 GB, free: 3.875 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.029e-05/0.1708, allocations: 4 kB / 0.4952 GB, free: 3.871 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.224e-06/0.1708, allocations: 0 / 0.4952 GB, free: 3.871 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.766e-05/0.1709, allocations: 75.28 kB / 0.4953 GB, free: 3.797 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1709, allocations: 0 / 0.4953 GB, free: 3.797 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004529/0.1713, allocations: 143.6 kB / 0.4954 GB, free: 3.656 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.0008499/0.1722, allocations: 372.9 kB / 0.4958 GB, free: 3.285 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001482/0.1723, allocations: 55.41 kB / 0.4959 GB, free: 3.219 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/0.1723, allocations: 0 / 0.4959 GB, free: 3.219 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 4.958e-05/0.1724, allocations: 63.47 kB / 0.4959 GB, free: 3.145 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001535/0.1726, allocations: 7.938 kB / 0.4959 GB, free: 3.137 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002775/0.1728, allocations: 84.81 kB / 0.496 GB, free: 3.027 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003809/0.1732, allocations: 0.6729 MB / 0.4967 GB, free: 2.328 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 2.646e-05/0.1733, allocations: 0 / 0.4967 GB, free: 2.328 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.85e-05/0.1733, allocations: 7.438 kB / 0.4967 GB, free: 2.32 MB / 382.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1733, allocations: 0 / 0.4967 GB, free: 2.32 MB / 382.1 MB Notification: Performance of Templates: time 0.008595/0.1819, allocations: 4.295 MB / 0.5009 GB, free: 14.02 MB / 398.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations.sim & ./ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/ComplexMath/TestComplexOperations/TestComplexOperations.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches