Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.conf.json 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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.ComplexMath.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions") translateModel(ModelicaTest.ComplexMath.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001254/0.001254, allocations: 173 kB / 8.742 MB, free: 344 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.397/1.397, allocations: 221.5 MB / 230.7 MB, free: 7.57 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009912/0.0009912, allocations: 93 kB / 281.6 MB, free: 5.328 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1839/0.1839, allocations: 44.15 MB / 376.5 MB, free: 3.039 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.726e-05/1.729e-05, allocations: 224 / 444.6 MB, free: 15.24 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1098/0.1099, allocations: 61.91 MB / 0.4947 GB, free: 1.266 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3554/0.4653, allocations: 89.03 MB / 0.5816 GB, free: 7.504 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002189/0.4656, allocations: 67.97 kB / 0.5817 GB, free: 7.438 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02814/0.4937, allocations: 9.824 MB / 0.5913 GB, free: 13.62 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.352e-06/0.4938, allocations: 0 / 0.5913 GB, free: 13.62 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.378e-06/0.4938, allocations: 0 / 0.5913 GB, free: 13.62 MB / 410.7 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.0005457/0.4943, allocations: 479.9 kB / 0.5917 GB, free: 13.1 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.14e-05/0.4944, allocations: 15.98 kB / 0.5917 GB, free: 13.08 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.814e-05/0.4944, allocations: 0 / 0.5917 GB, free: 13.08 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.507e-05/0.4945, allocations: 167 kB / 0.5919 GB, free: 12.88 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.446e-05/0.4945, allocations: 0 / 0.5919 GB, free: 12.88 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.075e-05/0.4946, allocations: 3.953 kB / 0.5919 GB, free: 12.88 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 3.837e-05/0.4946, allocations: 7.938 kB / 0.5919 GB, free: 12.87 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 4.286e-05/0.4947, allocations: 25.7 kB / 0.5919 GB, free: 12.84 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.095e-06/0.4947, allocations: 4 kB / 0.5919 GB, free: 12.83 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.083e-06/0.4947, allocations: 4 kB / 0.5919 GB, free: 12.83 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.767e-06/0.4947, allocations: 0 / 0.5919 GB, free: 12.83 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001149/0.4948, allocations: 134.2 kB / 0.5921 GB, free: 12.66 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.351e-05/0.4949, allocations: 15.23 kB / 0.5921 GB, free: 12.64 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.165e-05/0.4949, allocations: 4.859 kB / 0.5921 GB, free: 12.63 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.175e-06/0.4949, allocations: 0 / 0.5921 GB, free: 12.63 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.767e-05/0.4949, allocations: 64.36 kB / 0.5921 GB, free: 12.55 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 1.933e-06/0.4949, allocations: 0 / 0.5921 GB, free: 12.55 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001461/0.4951, allocations: 37.59 kB / 0.5922 GB, free: 12.51 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.077e-05/0.4951, allocations: 81.09 kB / 0.5923 GB, free: 12.41 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.109e-05/0.4952, allocations: 92.94 kB / 0.5923 GB, free: 12.31 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.129e-05/0.4952, allocations: 29.7 kB / 0.5924 GB, free: 12.28 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.158e-05/0.4952, allocations: 80.14 kB / 0.5924 GB, free: 12.2 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.846e-05/0.4952, allocations: 0 / 0.5924 GB, free: 12.2 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.385e-06/0.4953, allocations: 0 / 0.5924 GB, free: 12.2 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.549e-05/0.4954, allocations: 314.9 kB / 0.5927 GB, free: 11.88 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.071e-06/0.4954, allocations: 0 / 0.5927 GB, free: 11.88 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.959e-06/0.4954, allocations: 4 kB / 0.5928 GB, free: 11.88 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.449e-05/0.4954, allocations: 0 / 0.5928 GB, free: 11.88 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.062e-06/0.4954, allocations: 0 / 0.5928 GB, free: 11.88 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.063e-05/0.4955, allocations: 33.64 kB / 0.5928 GB, free: 11.84 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.864e-05/0.4955, allocations: 37.69 kB / 0.5928 GB, free: 11.79 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.027e-06/0.4955, allocations: 0 / 0.5928 GB, free: 11.79 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.194e-05/0.4955, allocations: 0 / 0.5928 GB, free: 11.79 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.51e-07/0.4955, allocations: 4.094 kB / 0.5928 GB, free: 11.79 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.598e-06/0.4956, allocations: 3.953 kB / 0.5928 GB, free: 11.79 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.12e-05/0.4956, allocations: 0 / 0.5928 GB, free: 11.79 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.763e-06/0.4956, allocations: 4 kB / 0.5928 GB, free: 11.78 MB / 410.7 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.98e-05/0.4957, allocations: 130.7 kB / 0.593 GB, free: 11.64 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.256e-06/0.4957, allocations: 0 / 0.593 GB, free: 11.64 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.174e-05/0.4957, allocations: 11.64 kB / 0.593 GB, free: 11.63 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.042e-06/0.4957, allocations: 4 kB / 0.593 GB, free: 11.62 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.998e-06/0.4957, allocations: 3.984 kB / 0.593 GB, free: 11.62 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.4957, allocations: 7.953 kB / 0.593 GB, free: 11.61 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.772e-05/0.4958, allocations: 122.2 kB / 0.5931 GB, free: 11.46 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.01e-07/0.4958, allocations: 0 / 0.5931 GB, free: 11.46 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.61e-07/0.4958, allocations: 0 / 0.5931 GB, free: 11.46 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.072e-06/0.4958, allocations: 0 / 0.5931 GB, free: 11.46 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.789e-06/0.4958, allocations: 4 kB / 0.5931 GB, free: 11.45 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.12e-07/0.4958, allocations: 0 / 0.5931 GB, free: 11.45 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.4958, allocations: 0 / 0.5931 GB, free: 11.45 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.489e-05/0.4959, allocations: 73.02 kB / 0.5932 GB, free: 11.36 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.734e-05/0.496, allocations: 77.11 kB / 0.5932 GB, free: 11.27 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.2e-05/0.496, allocations: 4 kB / 0.5932 GB, free: 11.27 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.404e-06/0.496, allocations: 0 / 0.5932 GB, free: 11.27 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.259e-05/0.496, allocations: 0 / 0.5932 GB, free: 11.27 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.235e-06/0.496, allocations: 0 / 0.5932 GB, free: 11.27 MB / 410.7 MB Notification: Performance of sorting global known variables: time 2.684e-05/0.496, allocations: 75.28 kB / 0.5933 GB, free: 11.19 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4961, allocations: 0 / 0.5933 GB, free: 11.19 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0006378/0.4967, allocations: 179.8 kB / 0.5935 GB, free: 11.02 MB / 410.7 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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000783/0.4975, allocations: 417 kB / 0.5939 GB, free: 10.61 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001024/0.4976, allocations: 59.41 kB / 0.5939 GB, free: 10.54 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.285e-06/0.4976, allocations: 0 / 0.5939 GB, free: 10.54 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 3.393e-05/0.4976, allocations: 55.41 kB / 0.594 GB, free: 10.47 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.753e-05/0.4977, allocations: 5.156 kB / 0.594 GB, free: 10.46 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001531/0.4979, allocations: 44.08 kB / 0.594 GB, free: 10.4 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002772/0.4982, allocations: 0.6806 MB / 0.5947 GB, free: 9.691 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 6.292e-06/0.4982, allocations: 0 / 0.5947 GB, free: 9.691 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.29e-05/0.4982, allocations: 7.438 kB / 0.5947 GB, free: 9.684 MB / 410.7 MB Notification: Performance of SimCode: time 2.1e-07/0.4982, allocations: 0 / 0.5947 GB, free: 9.684 MB / 410.7 MB Notification: Performance of Templates: time 0.007223/0.5055, allocations: 4.167 MB / 0.5988 GB, free: 5.516 MB / 410.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.sim & ./ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/ComplexMath/TestComplexFunctions/TestComplexFunctions.csv","../files/ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches