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.001538/0.001538, allocations: 119.5 kB / 17.09 MB, free: 5.992 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.001844/0.001844, allocations: 193.3 kB / 18.01 MB, free: 5.078 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.348/1.348, allocations: 205.1 MB / 223.9 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.2162/0.2162, allocations: 43.52 MB / 314.8 MB, free: 456 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.002208/0.002208, allocations: 59.91 kB / 442.4 MB, free: 5.703 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1345/0.1367, allocations: 57.79 MB / 0.4885 GB, free: 11.84 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001509/0.1383, allocations: 478 kB / 0.489 GB, free: 11.38 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00305/0.1413, allocations: 2.324 MB / 0.4912 GB, free: 9.027 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.492e-05/0.1414, allocations: 0 / 0.4912 GB, free: 9.027 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.253e-05/0.1414, allocations: 0 / 0.4912 GB, free: 9.027 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.061e-06/0.1414, allocations: 0 / 0.4912 GB, free: 9.027 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002548/0.144, allocations: 1.125 MB / 0.4923 GB, free: 7.898 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.366e-05/0.144, allocations: 7.938 kB / 0.4923 GB, free: 7.891 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.484e-05/0.1441, allocations: 0 / 0.4923 GB, free: 7.891 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.933e-05/0.1441, allocations: 7.969 kB / 0.4923 GB, free: 7.883 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.278e-05/0.1441, allocations: 4 kB / 0.4923 GB, free: 7.879 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.262e-06/0.1441, allocations: 0 / 0.4923 GB, free: 7.879 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001703/0.1458, allocations: 0.9873 MB / 0.4933 GB, free: 6.891 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.005e-06/0.1459, allocations: 0 / 0.4933 GB, free: 6.891 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.214e-05/0.1459, allocations: 4 kB / 0.4933 GB, free: 6.887 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007671/0.1467, allocations: 419.3 kB / 0.4937 GB, free: 6.477 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.024e-06/0.1467, allocations: 4 kB / 0.4937 GB, free: 6.473 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1467, allocations: 0 / 0.4937 GB, free: 6.473 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.621e-06/0.1467, allocations: 0 / 0.4937 GB, free: 6.473 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.0005292/0.1472, allocations: 436.6 kB / 0.4941 GB, free: 5.996 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.188e-05/0.1473, allocations: 11.89 kB / 0.4941 GB, free: 5.984 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.457e-05/0.1473, allocations: 4.938 kB / 0.4942 GB, free: 5.98 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.519e-05/0.1474, allocations: 160.4 kB / 0.4943 GB, free: 5.785 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.501e-05/0.1475, allocations: 4.375 kB / 0.4943 GB, free: 5.781 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.043e-05/0.1475, allocations: 384 / 0.4943 GB, free: 5.781 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.666e-05/0.1476, allocations: 30.02 kB / 0.4943 GB, free: 5.746 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.596e-06/0.1476, allocations: 0 / 0.4943 GB, free: 5.746 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.265e-05/0.1476, allocations: 4 kB / 0.4943 GB, free: 5.742 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.458e-06/0.1476, allocations: 3.938 kB / 0.4943 GB, free: 5.738 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.185e-05/0.1476, allocations: 7.984 kB / 0.4944 GB, free: 5.73 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001357/0.1478, allocations: 149.6 kB / 0.4945 GB, free: 5.535 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.441e-05/0.1478, allocations: 18.61 kB / 0.4945 GB, free: 5.508 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.455e-05/0.1479, allocations: 4.859 kB / 0.4945 GB, free: 5.5 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.227e-06/0.1479, allocations: 0 / 0.4945 GB, free: 5.5 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.818e-05/0.1479, allocations: 60.2 kB / 0.4946 GB, free: 5.426 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 8.11e-07/0.1479, allocations: 4.062 kB / 0.4946 GB, free: 5.422 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001946/0.1481, allocations: 71.33 kB / 0.4946 GB, free: 5.34 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.59e-05/0.1482, allocations: 81.11 kB / 0.4947 GB, free: 5.242 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.837e-05/0.1482, allocations: 97.73 kB / 0.4948 GB, free: 5.137 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.12e-05/0.1483, allocations: 25.7 kB / 0.4948 GB, free: 5.105 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.907e-05/0.1483, allocations: 80.14 kB / 0.4949 GB, free: 5.023 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.21e-05/0.1483, allocations: 0 / 0.4949 GB, free: 5.023 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.232e-05/0.1484, allocations: 17.72 kB / 0.4949 GB, free: 5 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.887e-05/0.1485, allocations: 314.8 kB / 0.4952 GB, free: 4.684 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.137e-05/0.1485, allocations: 4.125 kB / 0.4952 GB, free: 4.68 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.342e-06/0.1485, allocations: 0 / 0.4952 GB, free: 4.68 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.926e-05/0.1485, allocations: 64.2 kB / 0.4953 GB, free: 4.602 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.215e-06/0.1486, allocations: 0 / 0.4953 GB, free: 4.602 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.932e-05/0.1486, allocations: 63.41 kB / 0.4954 GB, free: 4.527 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.838e-05/0.1487, allocations: 37.62 kB / 0.4954 GB, free: 4.484 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.929e-06/0.1487, allocations: 0 / 0.4954 GB, free: 4.484 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.263e-05/0.1487, allocations: 4 kB / 0.4954 GB, free: 4.48 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.12e-07/0.1487, allocations: 0 / 0.4954 GB, free: 4.48 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.728e-06/0.1487, allocations: 4.094 kB / 0.4954 GB, free: 4.477 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.639e-05/0.1487, allocations: 0 / 0.4954 GB, free: 4.477 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.212e-06/0.1488, allocations: 0 / 0.4954 GB, free: 4.477 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.308e-05/0.1488, allocations: 139.5 kB / 0.4955 GB, free: 4.324 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.181e-05/0.1489, allocations: 7.922 kB / 0.4955 GB, free: 4.316 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.273e-05/0.1489, allocations: 3.125 kB / 0.4955 GB, free: 4.309 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.313e-06/0.1489, allocations: 0 / 0.4955 GB, free: 4.309 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/0.1489, allocations: 3.984 kB / 0.4956 GB, free: 4.305 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.093e-06/0.1489, allocations: 0 / 0.4956 GB, free: 4.305 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.395e-05/0.149, allocations: 157.7 kB / 0.4957 GB, free: 4.102 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.149, allocations: 0 / 0.4957 GB, free: 4.102 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.21e-07/0.149, allocations: 0 / 0.4957 GB, free: 4.102 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.747e-06/0.149, allocations: 3.938 kB / 0.4957 GB, free: 4.098 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.362e-06/0.149, allocations: 0 / 0.4957 GB, free: 4.098 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.156e-06/0.149, allocations: 0 / 0.4957 GB, free: 4.098 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.1491, allocations: 7.938 kB / 0.4957 GB, free: 4.09 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.285e-05/0.1492, allocations: 86.83 kB / 0.4958 GB, free: 3.98 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.465e-05/0.1492, allocations: 85.14 kB / 0.4959 GB, free: 3.879 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.156e-05/0.1492, allocations: 7.938 kB / 0.4959 GB, free: 3.871 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.144e-05/0.1492, allocations: 3.984 kB / 0.4959 GB, free: 3.867 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.77e-05/0.1493, allocations: 0 / 0.4959 GB, free: 3.867 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.795e-06/0.1493, allocations: 3.938 kB / 0.4959 GB, free: 3.863 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.893e-05/0.1493, allocations: 75.28 kB / 0.496 GB, free: 3.789 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1493, allocations: 0 / 0.496 GB, free: 3.789 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004772/0.1498, allocations: 136 kB / 0.4961 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.000752/0.1505, allocations: 369.2 kB / 0.4964 GB, free: 3.289 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000108/0.1507, allocations: 67.34 kB / 0.4965 GB, free: 3.211 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.1507, allocations: 4.062 kB / 0.4965 GB, free: 3.207 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 3.853e-05/0.1507, allocations: 55.41 kB / 0.4966 GB, free: 3.141 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001267/0.1509, allocations: 0 / 0.4966 GB, free: 3.141 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002203/0.1511, allocations: 118.6 kB / 0.4967 GB, free: 2.992 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002479/0.1513, allocations: 0.669 MB / 0.4973 GB, free: 2.297 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.543e-05/0.1514, allocations: 7.438 kB / 0.4973 GB, free: 2.289 MB / 382.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1514, allocations: 0 / 0.4973 GB, free: 2.289 MB / 382.1 MB Notification: Performance of Templates: time 0.006658/0.158, allocations: 3.628 MB / 0.5009 GB, free: 14.66 MB / 398.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/ComplexMath/TestComplexFunctions/TestComplexFunctions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches