Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.ComplexMath.TestComplexOperations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations") translateModel(ModelicaTest.ComplexMath.TestComplexOperations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001014/0.001014, allocations: 99.86 kB / 16.99 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009648/0.0009648, allocations: 198.1 kB / 17.89 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.376/1.376, allocations: 227.2 MB / 245.9 MB, free: 10.36 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1999/0.1999, allocations: 45.92 MB / 344 MB, free: 12.16 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004406/0.0004406, allocations: 8 kB / 417.9 MB, free: 20.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1875/0.188, allocations: 63.47 MB / 481.4 MB, free: 5.441 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.0006817/0.1887, allocations: 193.2 kB / 481.6 MB, free: 5.25 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004633/0.1933, allocations: 2.235 MB / 483.8 MB, free: 3 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.535e-05/0.1934, allocations: 0 / 483.8 MB, free: 3 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.242e-05/0.1934, allocations: 0 / 483.8 MB, free: 3 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 1.111e-05/0.1934, allocations: 0 / 483.8 MB, free: 3 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/ComplexMath.mo:4:3-189:23:writable] Warning: Pure function ‘ModelicaTest.ComplexMath.ComplexFunctions‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.00313/0.1966, allocations: 0.919 MB / 484.7 MB, free: 2.082 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.901e-05/0.1966, allocations: 0 / 484.7 MB, free: 2.082 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.341e-05/0.1967, allocations: 3.938 kB / 484.7 MB, free: 2.078 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.16e-05/0.1967, allocations: 4 kB / 484.7 MB, free: 2.074 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.953e-05/0.1968, allocations: 0 / 484.7 MB, free: 2.074 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.552e-06/0.1968, allocations: 0 / 484.7 MB, free: 2.074 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001372/0.1982, allocations: 0.7646 MB / 485.5 MB, free: 1.309 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.842e-06/0.1982, allocations: 0 / 485.5 MB, free: 1.309 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.152e-05/0.1982, allocations: 25.7 kB / 485.5 MB, free: 1.277 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004332/0.1986, allocations: 279.5 kB / 485.8 MB, free: 1.004 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.1987, allocations: 0 / 485.8 MB, free: 1.004 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.1987, allocations: 0 / 485.8 MB, free: 1.004 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.969e-06/0.1987, allocations: 4 kB / 485.8 MB, free: 1 MB / 350.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.0004586/0.1991, allocations: 433.3 kB / 486.2 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.82e-05/0.1992, allocations: 8.031 kB / 486.2 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.535e-05/0.1992, allocations: 4 kB / 486.2 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001281/0.1994, allocations: 167 kB / 486.4 MB, free: 316 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.393e-05/0.1994, allocations: 0 / 486.4 MB, free: 316 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.124e-06/0.1994, allocations: 4 kB / 486.4 MB, free: 312 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.541e-05/0.1995, allocations: 33.62 kB / 486.4 MB, free: 272 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.833e-06/0.1995, allocations: 0 / 486.4 MB, free: 272 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.476e-06/0.1995, allocations: 0 / 486.4 MB, free: 272 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.818e-06/0.1995, allocations: 4 kB / 486.4 MB, free: 268 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.489e-05/0.1996, allocations: 0 / 486.4 MB, free: 268 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000136/0.1997, allocations: 157.6 kB / 486.6 MB, free: 60 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.868e-05/0.1998, allocations: 18.61 kB / 486.6 MB, free: 32 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.158e-06/0.1998, allocations: 3.938 kB / 486.6 MB, free: 28 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.645e-05/0.1998, allocations: 64.19 kB / 486.7 MB, free: 15.95 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 1.253e-06/0.1998, allocations: 0 / 486.7 MB, free: 15.95 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001766/0.2, allocations: 63.47 kB / 486.7 MB, free: 15.88 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.831e-05/0.2001, allocations: 77.11 kB / 486.8 MB, free: 15.78 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.153e-05/0.2001, allocations: 93.98 kB / 486.9 MB, free: 15.68 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.208e-05/0.2002, allocations: 25.7 kB / 486.9 MB, free: 15.65 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.672e-05/0.2002, allocations: 84.14 kB / 487 MB, free: 15.56 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.321e-05/0.2002, allocations: 0 / 487 MB, free: 15.56 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.084e-06/0.2002, allocations: 0 / 487 MB, free: 15.56 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001464/0.2004, allocations: 314.8 kB / 487.3 MB, free: 15.25 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.516e-06/0.2004, allocations: 0 / 487.3 MB, free: 15.25 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.302e-06/0.2004, allocations: 4 kB / 487.3 MB, free: 15.24 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.148e-05/0.2004, allocations: 29.77 kB / 487.3 MB, free: 15.21 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.497e-06/0.2005, allocations: 0 / 487.3 MB, free: 15.21 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.385e-05/0.2005, allocations: 71.3 kB / 487.4 MB, free: 15.12 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.385e-05/0.2006, allocations: 33.69 kB / 487.4 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.049e-05/0.2006, allocations: 0 / 487.4 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.452e-05/0.2006, allocations: 3.938 kB / 487.5 MB, free: 15.08 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.152e-06/0.2006, allocations: 0 / 487.5 MB, free: 15.08 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.772e-06/0.2006, allocations: 4 kB / 487.5 MB, free: 15.08 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.45e-05/0.2007, allocations: 0 / 487.5 MB, free: 15.08 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.63e-06/0.2007, allocations: 0 / 487.5 MB, free: 15.08 MB / 366.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.131e-05/0.2008, allocations: 135.6 kB / 487.6 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.586e-06/0.2008, allocations: 7.953 kB / 487.6 MB, free: 14.92 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.208e-06/0.2008, allocations: 3.125 kB / 487.6 MB, free: 14.92 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.343e-06/0.2008, allocations: 0 / 487.6 MB, free: 14.92 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.998e-06/0.2008, allocations: 0 / 487.6 MB, free: 14.92 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.138e-06/0.2008, allocations: 3.984 kB / 487.6 MB, free: 14.92 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.756e-05/0.2009, allocations: 149.7 kB / 487.7 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.2009, allocations: 0 / 487.7 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.01e-07/0.2009, allocations: 0 / 487.7 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.538e-06/0.2009, allocations: 7.953 kB / 487.8 MB, free: 14.71 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.983e-06/0.201, allocations: 0 / 487.8 MB, free: 14.71 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.92e-07/0.201, allocations: 0 / 487.8 MB, free: 14.71 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.949e-06/0.201, allocations: 4 kB / 487.8 MB, free: 14.71 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.243e-05/0.2011, allocations: 102.6 kB / 487.9 MB, free: 14.59 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.958e-05/0.2011, allocations: 77.11 kB / 487.9 MB, free: 14.49 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.487e-05/0.2011, allocations: 3.953 kB / 487.9 MB, free: 14.49 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.021e-05/0.2011, allocations: 4 kB / 487.9 MB, free: 14.48 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.277e-05/0.2012, allocations: 8.016 kB / 488 MB, free: 14.48 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.615e-06/0.2012, allocations: 0 / 488 MB, free: 14.48 MB / 366.1 MB Notification: Performance of sorting global known variables: time 2.741e-05/0.2012, allocations: 75.28 kB / 488 MB, free: 14.4 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2012, allocations: 0 / 488 MB, free: 14.4 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004312/0.2016, allocations: 152 kB / 488.2 MB, free: 14.25 MB / 366.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 (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.000699/0.2024, allocations: 382.4 kB / 488.5 MB, free: 13.87 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001022/0.2025, allocations: 63.34 kB / 488.6 MB, free: 13.8 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.2025, allocations: 0 / 488.6 MB, free: 13.8 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.247e-05/0.2025, allocations: 59.39 kB / 488.7 MB, free: 13.73 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.013e-05/0.2026, allocations: 2.156 kB / 488.7 MB, free: 13.73 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001786/0.2028, allocations: 82.7 kB / 488.8 MB, free: 13.62 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003909/0.2032, allocations: 0.6731 MB / 489.4 MB, free: 12.92 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.747e-06/0.2032, allocations: 3.984 kB / 489.4 MB, free: 12.91 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.252e-05/0.2032, allocations: 11.44 kB / 489.4 MB, free: 12.9 MB / 366.1 MB Notification: Performance of SimCode: time 2.11e-07/0.2032, allocations: 0 / 489.4 MB, free: 12.9 MB / 366.1 MB Notification: Performance of Templates: time 0.007507/0.2107, allocations: 4.387 MB / 493.8 MB, free: 8.512 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.makefile (rm -f ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.sim & ./ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.ComplexMath.TestComplexOperations.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches