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.00159/0.00159, allocations: 180.5 kB / 14.15 MB, free: 1.176 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.304/1.304, allocations: 221.3 MB / 236 MB, free: 2.914 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.000815/0.000815, allocations: 99.72 kB / 287 MB, free: 192 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1793/0.1793, allocations: 44.15 MB / 382 MB, free: 14.69 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 2.387e-05/2.397e-05, allocations: 4.219 kB / 451.8 MB, free: 9.457 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1127/0.1127, allocations: 61.91 MB / 0.5017 GB, free: 11.48 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3626/0.4753, allocations: 89.69 MB / 0.5893 GB, free: 15.66 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00024/0.4756, allocations: 63.92 kB / 0.5893 GB, free: 15.6 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02783/0.5034, allocations: 9.992 MB / 0.5991 GB, free: 5.617 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.432e-06/0.5035, allocations: 0 / 0.5991 GB, free: 5.617 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.688e-06/0.5035, allocations: 0 / 0.5991 GB, free: 5.617 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.0004993/0.504, allocations: 467.9 kB / 0.5995 GB, free: 5.109 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.396e-05/0.504, allocations: 11.97 kB / 0.5996 GB, free: 5.098 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.674e-05/0.5041, allocations: 4 kB / 0.5996 GB, free: 5.094 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.138e-05/0.5042, allocations: 167 kB / 0.5997 GB, free: 4.891 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.494e-05/0.5042, allocations: 7.938 kB / 0.5997 GB, free: 4.883 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.355e-05/0.5042, allocations: 7.938 kB / 0.5997 GB, free: 4.875 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.703e-05/0.5043, allocations: 29.69 kB / 0.5998 GB, free: 4.84 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.564e-06/0.5043, allocations: 4 kB / 0.5998 GB, free: 4.836 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.103e-06/0.5043, allocations: 0 / 0.5998 GB, free: 4.836 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.438e-06/0.5043, allocations: 0 / 0.5998 GB, free: 4.836 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.449e-05/0.5043, allocations: 0 / 0.5998 GB, free: 4.836 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001121/0.5045, allocations: 149.7 kB / 0.5999 GB, free: 4.641 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.603e-05/0.5045, allocations: 22.55 kB / 0.5999 GB, free: 4.609 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.3e-05/0.5045, allocations: 4.859 kB / 0.5999 GB, free: 4.602 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.652e-06/0.5045, allocations: 0 / 0.5999 GB, free: 4.602 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.769e-05/0.5046, allocations: 64.28 kB / 0.6 GB, free: 4.523 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 1.202e-06/0.5046, allocations: 0 / 0.6 GB, free: 4.523 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001454/0.5047, allocations: 63.39 kB / 0.6001 GB, free: 4.449 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.306e-05/0.5048, allocations: 85.14 kB / 0.6001 GB, free: 4.348 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.938e-05/0.5048, allocations: 85 kB / 0.6002 GB, free: 4.258 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.172e-05/0.5048, allocations: 25.7 kB / 0.6002 GB, free: 4.227 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.778e-05/0.5049, allocations: 80.14 kB / 0.6003 GB, free: 4.145 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.496e-05/0.5049, allocations: 0 / 0.6003 GB, free: 4.145 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.743e-06/0.5049, allocations: 0 / 0.6003 GB, free: 4.145 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.081e-05/0.505, allocations: 310.8 kB / 0.6006 GB, free: 3.832 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.177e-06/0.505, allocations: 4 kB / 0.6006 GB, free: 3.828 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.641e-06/0.505, allocations: 7.938 kB / 0.6006 GB, free: 3.82 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.537e-05/0.5051, allocations: 29.69 kB / 0.6007 GB, free: 3.785 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.223e-06/0.5051, allocations: 0 / 0.6007 GB, free: 3.785 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.499e-05/0.5051, allocations: 63.41 kB / 0.6007 GB, free: 3.711 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.479e-05/0.5052, allocations: 30.95 kB / 0.6007 GB, free: 3.676 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.5052, allocations: 4 kB / 0.6007 GB, free: 3.672 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.156e-05/0.5052, allocations: 3.953 kB / 0.6007 GB, free: 3.668 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.71e-07/0.5052, allocations: 0 / 0.6007 GB, free: 3.668 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.31e-06/0.5052, allocations: 0 / 0.6007 GB, free: 3.668 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.339e-05/0.5052, allocations: 8.078 kB / 0.6008 GB, free: 3.66 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.43e-06/0.5052, allocations: 0 / 0.6008 GB, free: 3.66 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.427e-05/0.5053, allocations: 130.7 kB / 0.6009 GB, free: 3.52 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.355e-06/0.5053, allocations: 0 / 0.6009 GB, free: 3.52 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.236e-05/0.5053, allocations: 11.02 kB / 0.6009 GB, free: 3.504 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.5053, allocations: 3.953 kB / 0.6009 GB, free: 3.5 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-06/0.5053, allocations: 0 / 0.6009 GB, free: 3.5 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.794e-06/0.5054, allocations: 0 / 0.6009 GB, free: 3.5 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.185e-05/0.5054, allocations: 153.6 kB / 0.601 GB, free: 3.301 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.91e-07/0.5054, allocations: 0 / 0.601 GB, free: 3.301 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.984e-06/0.5054, allocations: 7.938 kB / 0.601 GB, free: 3.293 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.172e-06/0.5055, allocations: 0 / 0.601 GB, free: 3.293 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.36e-06/0.5055, allocations: 0 / 0.601 GB, free: 3.293 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.91e-07/0.5055, allocations: 0 / 0.601 GB, free: 3.293 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.057e-06/0.5055, allocations: 7.953 kB / 0.6011 GB, free: 3.285 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.705e-05/0.5056, allocations: 86.83 kB / 0.6011 GB, free: 3.176 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.367e-05/0.5056, allocations: 77.11 kB / 0.6012 GB, free: 3.082 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.407e-05/0.5056, allocations: 8 kB / 0.6012 GB, free: 3.074 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.995e-06/0.5056, allocations: 4.031 kB / 0.6012 GB, free: 3.07 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.398e-05/0.5056, allocations: 0 / 0.6012 GB, free: 3.07 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.479e-06/0.5057, allocations: 7.953 kB / 0.6012 GB, free: 3.062 MB / 410.7 MB Notification: Performance of sorting global known variables: time 2.02e-05/0.5057, allocations: 75.28 kB / 0.6013 GB, free: 2.988 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5057, allocations: 0 / 0.6013 GB, free: 2.988 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0005032/0.5062, allocations: 179.8 kB / 0.6015 GB, free: 2.812 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.0007473/0.5069, allocations: 408.6 kB / 0.6019 GB, free: 2.418 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 8.81e-05/0.507, allocations: 63.33 kB / 0.6019 GB, free: 2.344 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.5071, allocations: 0 / 0.6019 GB, free: 2.344 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 2.98e-05/0.5071, allocations: 55.47 kB / 0.602 GB, free: 2.277 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 7.408e-05/0.5072, allocations: 5.312 kB / 0.602 GB, free: 2.273 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001364/0.5073, allocations: 53.5 kB / 0.602 GB, free: 2.199 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001894/0.5075, allocations: 0.6731 MB / 0.6027 GB, free: 1.5 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 8.416e-06/0.5075, allocations: 0 / 0.6027 GB, free: 1.5 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.124e-05/0.5075, allocations: 11.44 kB / 0.6027 GB, free: 1.488 MB / 410.7 MB Notification: Performance of SimCode: time 2.31e-07/0.5075, allocations: 0 / 0.6027 GB, free: 1.488 MB / 410.7 MB Notification: Performance of Templates: time 0.006805/0.5144, allocations: 3.932 MB / 0.6065 GB, free: 13.55 MB / 426.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