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.0009863/0.0009863, allocations: 110 kB / 18.45 MB, free: 4.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00103/0.00103, allocations: 213.9 kB / 19.4 MB, free: 3.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.247/1.247, allocations: 227.4 MB / 247.6 MB, free: 10.52 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1897/0.1897, allocations: 46.11 MB / 345 MB, free: 11.54 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001307/0.001307, allocations: 72.2 kB / 481.9 MB, free: 4.141 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2789/0.2803, allocations: 62.43 MB / 0.5316 GB, free: 13.63 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.001437/0.2817, allocations: 481.2 kB / 0.5321 GB, free: 13.28 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003013/0.2848, allocations: 2.411 MB / 0.5344 GB, free: 11.38 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.283e-05/0.2848, allocations: 1.375 kB / 0.5344 GB, free: 11.38 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.279e-05/0.2848, allocations: 0 / 0.5344 GB, free: 11.38 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.19e-06/0.2848, allocations: 0 / 0.5344 GB, free: 11.38 MB / 398.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.002373/0.2872, allocations: 1.136 MB / 0.5355 GB, free: 10.61 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 3.986e-05/0.2873, allocations: 5.188 kB / 0.5356 GB, free: 10.61 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.13e-05/0.2873, allocations: 1.188 kB / 0.5356 GB, free: 10.61 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.644e-05/0.2873, allocations: 9.047 kB / 0.5356 GB, free: 10.6 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.558e-05/0.2873, allocations: 1.219 kB / 0.5356 GB, free: 10.6 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.443e-06/0.2874, allocations: 0 / 0.5356 GB, free: 10.6 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001411/0.2888, allocations: 1.035 MB / 0.5366 GB, free: 10.11 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.523e-06/0.2888, allocations: 0 / 0.5366 GB, free: 10.11 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.616e-05/0.2888, allocations: 0.9688 kB / 0.5366 GB, free: 10.11 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005279/0.2893, allocations: 446.4 kB / 0.537 GB, free: 9.844 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.2894, allocations: 5.219 kB / 0.537 GB, free: 9.84 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.2894, allocations: 0 / 0.537 GB, free: 9.84 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.247e-06/0.2894, allocations: 3.938 kB / 0.537 GB, free: 9.836 MB / 398.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.0003995/0.2898, allocations: 436.3 kB / 0.5374 GB, free: 9.395 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.156e-05/0.2898, allocations: 13.7 kB / 0.5374 GB, free: 9.391 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.436e-05/0.2898, allocations: 0.9375 kB / 0.5374 GB, free: 9.391 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.897e-05/0.2899, allocations: 164.2 kB / 0.5376 GB, free: 9.195 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.508e-06/0.2899, allocations: 5.703 kB / 0.5376 GB, free: 9.191 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.929e-06/0.29, allocations: 1.75 kB / 0.5376 GB, free: 9.191 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.102e-05/0.29, allocations: 39.05 kB / 0.5376 GB, free: 9.148 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.191e-06/0.29, allocations: 1.031 kB / 0.5376 GB, free: 9.148 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.414e-06/0.2901, allocations: 3.938 kB / 0.5376 GB, free: 9.145 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.238e-06/0.2901, allocations: 1.188 kB / 0.5376 GB, free: 9.145 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.699e-05/0.2901, allocations: 5.062 kB / 0.5377 GB, free: 9.141 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001072/0.2902, allocations: 146.8 kB / 0.5378 GB, free: 8.949 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.358e-05/0.2902, allocations: 20.73 kB / 0.5378 GB, free: 8.922 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.39e-05/0.2903, allocations: 9.984 kB / 0.5378 GB, free: 8.91 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.624e-06/0.2903, allocations: 0 / 0.5378 GB, free: 8.91 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.272e-05/0.2903, allocations: 66.2 kB / 0.5379 GB, free: 8.832 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.31e-07/0.2903, allocations: 0 / 0.5379 GB, free: 8.832 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002042/0.2905, allocations: 66.27 kB / 0.5379 GB, free: 8.762 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.816e-05/0.2906, allocations: 78.17 kB / 0.538 GB, free: 8.668 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001075/0.2907, allocations: 90.92 kB / 0.5381 GB, free: 8.57 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.187e-05/0.2907, allocations: 25.7 kB / 0.5381 GB, free: 8.539 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.46e-05/0.2908, allocations: 84.27 kB / 0.5382 GB, free: 8.453 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.913e-05/0.2908, allocations: 5.094 kB / 0.5382 GB, free: 8.449 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.627e-05/0.2908, allocations: 11.94 kB / 0.5382 GB, free: 8.434 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001026/0.2909, allocations: 312.1 kB / 0.5385 GB, free: 8.121 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.049e-05/0.2909, allocations: 3.984 kB / 0.5385 GB, free: 8.117 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.139e-06/0.2909, allocations: 1.219 kB / 0.5385 GB, free: 8.117 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.253e-05/0.291, allocations: 59.7 kB / 0.5386 GB, free: 8.047 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.291, allocations: 4.062 kB / 0.5386 GB, free: 8.043 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.361e-05/0.2911, allocations: 66.94 kB / 0.5387 GB, free: 7.973 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.347e-05/0.2911, allocations: 40.44 kB / 0.5387 GB, free: 7.934 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.778e-06/0.2911, allocations: 1.125 kB / 0.5387 GB, free: 7.934 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.105e-05/0.2911, allocations: 0 / 0.5387 GB, free: 7.934 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.026e-06/0.2911, allocations: 4.938 kB / 0.5387 GB, free: 7.93 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.319e-06/0.2912, allocations: 0 / 0.5387 GB, free: 7.93 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.572e-05/0.2912, allocations: 1.156 kB / 0.5387 GB, free: 7.93 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.533e-06/0.2912, allocations: 0 / 0.5387 GB, free: 7.93 MB / 398.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 7.974e-05/0.2913, allocations: 138.8 kB / 0.5388 GB, free: 7.781 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.488e-06/0.2913, allocations: 5.125 kB / 0.5388 GB, free: 7.777 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.586e-06/0.2913, allocations: 3.125 kB / 0.5388 GB, free: 7.777 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.12e-07/0.2913, allocations: 0 / 0.5388 GB, free: 7.777 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.2913, allocations: 4.844 kB / 0.5388 GB, free: 7.773 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.525e-06/0.2913, allocations: 0 / 0.5388 GB, free: 7.773 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.662e-05/0.2914, allocations: 155.8 kB / 0.539 GB, free: 7.574 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.41e-07/0.2914, allocations: 3.938 kB / 0.539 GB, free: 7.57 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.31e-07/0.2914, allocations: 0 / 0.539 GB, free: 7.57 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.627e-06/0.2914, allocations: 5.125 kB / 0.539 GB, free: 7.566 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.68e-06/0.2915, allocations: 4 kB / 0.539 GB, free: 7.562 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.92e-07/0.2915, allocations: 1.5 kB / 0.539 GB, free: 7.562 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.81e-07/0.2915, allocations: 0 / 0.539 GB, free: 7.562 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.877e-05/0.2916, allocations: 93.89 kB / 0.5391 GB, free: 7.457 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.482e-05/0.2916, allocations: 77.11 kB / 0.5392 GB, free: 7.363 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.387e-05/0.2916, allocations: 5.406 kB / 0.5392 GB, free: 7.359 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.057e-06/0.2916, allocations: 1.156 kB / 0.5392 GB, free: 7.359 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.596e-05/0.2917, allocations: 8.016 kB / 0.5392 GB, free: 7.352 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.076e-06/0.2917, allocations: 1.094 kB / 0.5392 GB, free: 7.352 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.725e-05/0.2917, allocations: 75.28 kB / 0.5393 GB, free: 7.277 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2917, allocations: 0 / 0.5393 GB, free: 7.277 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003968/0.2921, allocations: 154.8 kB / 0.5394 GB, free: 7.227 MB / 398.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.0006583/0.2928, allocations: 378.5 kB / 0.5398 GB, free: 7.02 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 8.831e-05/0.2929, allocations: 60.98 kB / 0.5398 GB, free: 6.953 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.2929, allocations: 0 / 0.5398 GB, free: 6.953 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.148e-05/0.2929, allocations: 58.62 kB / 0.5399 GB, free: 6.887 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001143/0.293, allocations: 4.328 kB / 0.5399 GB, free: 6.887 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001618/0.2932, allocations: 114 kB / 0.54 GB, free: 6.75 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002177/0.2934, allocations: 0.6736 MB / 0.5407 GB, free: 6.051 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.014e-05/0.2934, allocations: 9.719 kB / 0.5407 GB, free: 6.043 MB / 398.1 MB Notification: Performance of SimCode: time 2e-07/0.2935, allocations: 0 / 0.5407 GB, free: 6.043 MB / 398.1 MB Notification: Performance of Templates: time 0.005671/0.2991, allocations: 3.91 MB / 0.5445 GB, free: 4.035 MB / 398.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/ComplexMath/TestComplexOperations/TestComplexOperations.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches