Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.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.TestComplexOperations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations") translateModel(ModelicaTest.ComplexMath.TestComplexOperations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009587/0.0009587, allocations: 175.8 kB / 17.06 MB, free: 5.098 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.248/1.248, allocations: 223.2 MB / 241 MB, free: 10.15 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008821/0.0008821, allocations: 100.7 kB / 292.1 MB, free: 10.7 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.4052/0.4052, allocations: 44.2 MB / 387.5 MB, free: 38.46 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003375/0.0003375, allocations: 8 kB / 459.9 MB, free: 1.52 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3478/0.3482, allocations: 61.9 MB / 0.5095 GB, free: 37.88 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1212/0.4694, allocations: 89.77 MB / 0.5972 GB, free: 5.359 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002423/0.4697, allocations: 71.97 kB / 0.5973 GB, free: 5.289 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02813/0.4978, allocations: 10.02 MB / 0.6071 GB, free: 11.26 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.114e-06/0.4979, allocations: 0 / 0.6071 GB, free: 11.26 MB / 426.7 MB Notification: Performance of Transformations before backend: time 4.95e-06/0.4979, allocations: 0 / 0.6071 GB, free: 11.26 MB / 426.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.0006805/0.4986, allocations: 476.8 kB / 0.6075 GB, free: 10.74 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.074e-05/0.4986, allocations: 8.031 kB / 0.6075 GB, free: 10.73 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.129e-05/0.4987, allocations: 0 / 0.6075 GB, free: 10.73 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001016/0.4988, allocations: 159.1 kB / 0.6077 GB, free: 10.54 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.446e-05/0.4988, allocations: 8 kB / 0.6077 GB, free: 10.53 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.121e-05/0.4988, allocations: 3.953 kB / 0.6077 GB, free: 10.52 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.42e-05/0.4989, allocations: 37.61 kB / 0.6077 GB, free: 10.48 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.806e-06/0.4989, allocations: 0 / 0.6077 GB, free: 10.48 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.039e-05/0.499, allocations: 7.938 kB / 0.6077 GB, free: 10.47 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.048e-06/0.499, allocations: 0 / 0.6077 GB, free: 10.47 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.605e-05/0.499, allocations: 3.938 kB / 0.6077 GB, free: 10.47 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000128/0.4991, allocations: 145.7 kB / 0.6079 GB, free: 10.28 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.338e-05/0.4992, allocations: 26.59 kB / 0.6079 GB, free: 10.24 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.382e-06/0.4992, allocations: 0 / 0.6079 GB, free: 10.24 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.462e-05/0.4992, allocations: 64.16 kB / 0.608 GB, free: 10.16 MB / 426.7 MB Notification: Performance of pre-optimization done (n=1): time 9.62e-07/0.4993, allocations: 0 / 0.608 GB, free: 10.16 MB / 426.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001882/0.4994, allocations: 67.38 kB / 0.608 GB, free: 10.09 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.502e-05/0.4995, allocations: 77.11 kB / 0.6081 GB, free: 9.992 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.958e-05/0.4996, allocations: 85 kB / 0.6082 GB, free: 9.902 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.404e-05/0.4996, allocations: 33.81 kB / 0.6082 GB, free: 9.863 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.468e-05/0.4996, allocations: 84.14 kB / 0.6083 GB, free: 9.777 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.614e-05/0.4997, allocations: 0 / 0.6083 GB, free: 9.777 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.364e-06/0.4997, allocations: 0 / 0.6083 GB, free: 9.777 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001286/0.4998, allocations: 310.8 kB / 0.6086 GB, free: 9.465 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.824e-06/0.4998, allocations: 0 / 0.6086 GB, free: 9.465 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.376e-06/0.4998, allocations: 4 kB / 0.6086 GB, free: 9.461 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.715e-05/0.4999, allocations: 29.64 kB / 0.6086 GB, free: 9.426 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.4999, allocations: 4.062 kB / 0.6086 GB, free: 9.422 MB / 426.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.554e-05/0.5, allocations: 63.41 kB / 0.6087 GB, free: 9.348 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.176e-05/0.5, allocations: 33.69 kB / 0.6087 GB, free: 9.309 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.368e-06/0.5, allocations: 0 / 0.6087 GB, free: 9.309 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.862e-05/0.5, allocations: 3.953 kB / 0.6087 GB, free: 9.305 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.92e-07/0.5, allocations: 0 / 0.6087 GB, free: 9.305 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.835e-06/0.5001, allocations: 4 kB / 0.6087 GB, free: 9.301 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.269e-05/0.5001, allocations: 0 / 0.6087 GB, free: 9.301 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.661e-06/0.5001, allocations: 0 / 0.6087 GB, free: 9.301 MB / 426.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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.191e-05/0.5002, allocations: 136.1 kB / 0.6089 GB, free: 9.152 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.472e-06/0.5002, allocations: 4 kB / 0.6089 GB, free: 9.148 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.5e-05/0.5002, allocations: 6.719 kB / 0.6089 GB, free: 9.145 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-06/0.5002, allocations: 3.984 kB / 0.6089 GB, free: 9.141 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/0.5002, allocations: 3.953 kB / 0.6089 GB, free: 9.137 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/0.5002, allocations: 0 / 0.6089 GB, free: 9.137 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.992e-05/0.5003, allocations: 145.7 kB / 0.609 GB, free: 8.945 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.098e-06/0.5004, allocations: 8 kB / 0.609 GB, free: 8.938 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.31e-07/0.5004, allocations: 3.938 kB / 0.609 GB, free: 8.934 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.5004, allocations: 0 / 0.609 GB, free: 8.934 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.466e-06/0.5004, allocations: 0 / 0.609 GB, free: 8.934 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.5004, allocations: 7.938 kB / 0.609 GB, free: 8.926 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.5004, allocations: 0 / 0.609 GB, free: 8.926 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.727e-05/0.5005, allocations: 94.78 kB / 0.6091 GB, free: 8.809 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.977e-05/0.5005, allocations: 77.11 kB / 0.6092 GB, free: 8.715 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.268e-05/0.5006, allocations: 0 / 0.6092 GB, free: 8.715 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.336e-05/0.5006, allocations: 11.92 kB / 0.6092 GB, free: 8.703 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.369e-05/0.5006, allocations: 0 / 0.6092 GB, free: 8.703 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.414e-06/0.5006, allocations: 4.031 kB / 0.6092 GB, free: 8.699 MB / 426.7 MB Notification: Performance of sorting global known variables: time 3.208e-05/0.5006, allocations: 79.23 kB / 0.6093 GB, free: 8.621 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5007, allocations: 0 / 0.6093 GB, free: 8.621 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0005944/0.5013, allocations: 175.8 kB / 0.6095 GB, free: 8.449 MB / 426.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) * 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 (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.0007821/0.502, allocations: 404 kB / 0.6098 GB, free: 8.055 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 9.369e-05/0.5021, allocations: 59.34 kB / 0.6099 GB, free: 7.984 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.5022, allocations: 0 / 0.6099 GB, free: 7.984 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 3.381e-05/0.5022, allocations: 59.41 kB / 0.6099 GB, free: 7.914 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.139e-05/0.5023, allocations: 11.23 kB / 0.61 GB, free: 7.906 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001926/0.5025, allocations: 74.89 kB / 0.61 GB, free: 7.805 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002294/0.5027, allocations: 0.677 MB / 0.6107 GB, free: 7.102 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 5.901e-06/0.5027, allocations: 3.938 kB / 0.6107 GB, free: 7.098 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.137e-05/0.5028, allocations: 7.438 kB / 0.6107 GB, free: 7.09 MB / 426.7 MB Notification: Performance of SimCode: time 2.11e-07/0.5028, allocations: 0 / 0.6107 GB, free: 7.09 MB / 426.7 MB Notification: Performance of Templates: time 0.007271/0.51, allocations: 4.017 MB / 0.6146 GB, free: 3.074 MB / 426.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.sim & ./ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/ComplexMath/TestComplexOperations/TestComplexOperations.csv","../files/ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches