Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.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.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions") translateModel(ModelicaTest.ComplexMath.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001168/0.001168, allocations: 113.7 kB / 18.45 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001219/0.001219, allocations: 206.7 kB / 19.41 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.23/1.23, allocations: 227.4 MB / 247.6 MB, free: 10.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1878/0.1878, allocations: 46.1 MB / 345 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001326/0.001326, allocations: 75.86 kB / 481.9 MB, free: 4.109 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.271/0.2723, allocations: 62.44 MB / 0.5316 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001263/0.2736, allocations: 466.3 kB / 0.5321 GB, free: 13.27 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002959/0.2766, allocations: 2.412 MB / 0.5344 GB, free: 11.38 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.135e-05/0.2766, allocations: 0 / 0.5344 GB, free: 11.38 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 8.836e-06/0.2766, allocations: 0 / 0.5344 GB, free: 11.38 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.869e-06/0.2767, 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.002349/0.279, allocations: 1.145 MB / 0.5355 GB, free: 10.6 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.36e-05/0.2791, allocations: 5 kB / 0.5356 GB, free: 10.59 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.113e-05/0.2791, allocations: 5.016 kB / 0.5356 GB, free: 10.59 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.401e-05/0.2791, allocations: 4.781 kB / 0.5356 GB, free: 10.59 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.656e-05/0.2792, allocations: 0.6562 kB / 0.5356 GB, free: 10.59 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.541e-06/0.2792, allocations: 1 kB / 0.5356 GB, free: 10.59 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00142/0.2806, allocations: 1.034 MB / 0.5366 GB, free: 10.09 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.967e-06/0.2806, allocations: 4.828 kB / 0.5366 GB, free: 10.09 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.729e-05/0.2806, allocations: 1.125 kB / 0.5366 GB, free: 10.09 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000546/0.2812, allocations: 442.6 kB / 0.537 GB, free: 9.828 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.2812, allocations: 9.062 kB / 0.537 GB, free: 9.82 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.2812, allocations: 0 / 0.537 GB, free: 9.82 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.097e-06/0.2812, allocations: 0 / 0.537 GB, free: 9.82 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.0003792/0.2816, allocations: 436.1 kB / 0.5374 GB, free: 9.379 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.929e-05/0.2816, allocations: 9.031 kB / 0.5374 GB, free: 9.379 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.236e-05/0.2817, allocations: 6.031 kB / 0.5374 GB, free: 9.375 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.129e-05/0.2818, allocations: 164.2 kB / 0.5376 GB, free: 9.18 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.578e-06/0.2818, allocations: 1.438 kB / 0.5376 GB, free: 9.18 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.953e-06/0.2818, allocations: 1.312 kB / 0.5376 GB, free: 9.18 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.015e-05/0.2819, allocations: 43.97 kB / 0.5376 GB, free: 9.133 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.31e-06/0.2819, allocations: 0 / 0.5376 GB, free: 9.133 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.155e-06/0.2819, allocations: 1.031 kB / 0.5376 GB, free: 9.133 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.156e-06/0.2819, allocations: 3.938 kB / 0.5376 GB, free: 9.129 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.425e-05/0.2819, allocations: 1.094 kB / 0.5376 GB, free: 9.129 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001078/0.282, allocations: 143.8 kB / 0.5378 GB, free: 8.941 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.399e-05/0.2821, allocations: 24.77 kB / 0.5378 GB, free: 8.91 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.656e-05/0.2821, allocations: 9.984 kB / 0.5378 GB, free: 8.898 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.512e-06/0.2821, allocations: 3.938 kB / 0.5378 GB, free: 8.895 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.729e-05/0.2822, allocations: 65.31 kB / 0.5379 GB, free: 8.816 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.31e-07/0.2822, allocations: 0 / 0.5379 GB, free: 8.816 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.000137/0.2823, allocations: 58.94 kB / 0.5379 GB, free: 8.754 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.838e-05/0.2824, allocations: 82.17 kB / 0.538 GB, free: 8.656 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.615e-05/0.2824, allocations: 91.05 kB / 0.5381 GB, free: 8.559 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 9.648e-06/0.2824, allocations: 25.7 kB / 0.5381 GB, free: 8.527 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.706e-05/0.2825, allocations: 84.27 kB / 0.5382 GB, free: 8.441 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.356e-05/0.2825, allocations: 1.125 kB / 0.5382 GB, free: 8.441 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.486e-05/0.2825, allocations: 15.86 kB / 0.5382 GB, free: 8.422 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 8.591e-05/0.2826, allocations: 310.8 kB / 0.5385 GB, free: 8.109 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.805e-06/0.2826, allocations: 1.156 kB / 0.5385 GB, free: 8.109 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.113e-06/0.2826, allocations: 4.938 kB / 0.5385 GB, free: 8.105 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.163e-05/0.2827, allocations: 63.45 kB / 0.5386 GB, free: 8.031 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.2827, allocations: 5.062 kB / 0.5386 GB, free: 8.027 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.394e-05/0.2827, allocations: 62.17 kB / 0.5387 GB, free: 7.961 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.64e-05/0.2828, allocations: 34.92 kB / 0.5387 GB, free: 7.926 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.937e-06/0.2828, allocations: 1.094 kB / 0.5387 GB, free: 7.926 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.668e-06/0.2828, allocations: 0 / 0.5387 GB, free: 7.926 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.31e-07/0.2828, allocations: 0 / 0.5387 GB, free: 7.926 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.707e-06/0.2828, allocations: 1.094 kB / 0.5387 GB, free: 7.926 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.209e-05/0.2828, allocations: 0 / 0.5387 GB, free: 7.926 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.893e-06/0.2828, allocations: 5.047 kB / 0.5387 GB, free: 7.922 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 6.996e-05/0.2829, allocations: 137.7 kB / 0.5388 GB, free: 7.773 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.253e-05/0.2829, allocations: 13.05 kB / 0.5388 GB, free: 7.762 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.284e-06/0.2829, allocations: 12 kB / 0.5388 GB, free: 7.754 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.283, allocations: 3.984 kB / 0.5389 GB, free: 7.75 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.347e-06/0.283, allocations: 1.031 kB / 0.5389 GB, free: 7.75 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.763e-06/0.283, allocations: 0 / 0.5389 GB, free: 7.75 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.048e-05/0.283, allocations: 146.7 kB / 0.539 GB, free: 7.559 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.283, allocations: 1.031 kB / 0.539 GB, free: 7.559 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.2831, allocations: 3.938 kB / 0.539 GB, free: 7.555 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.946e-06/0.2831, allocations: 5 kB / 0.539 GB, free: 7.551 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.234e-05/0.2831, allocations: 7.984 kB / 0.539 GB, free: 7.543 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.11e-07/0.2831, allocations: 1.125 kB / 0.539 GB, free: 7.543 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.023e-06/0.2831, allocations: 4 kB / 0.539 GB, free: 7.539 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.003e-05/0.2832, allocations: 89.52 kB / 0.5391 GB, free: 7.438 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.796e-05/0.2832, allocations: 82.16 kB / 0.5392 GB, free: 7.34 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.193e-05/0.2832, allocations: 5.031 kB / 0.5392 GB, free: 7.336 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.355e-06/0.2832, allocations: 1.094 kB / 0.5392 GB, free: 7.336 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.034e-05/0.2833, allocations: 4.031 kB / 0.5392 GB, free: 7.332 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.236e-06/0.2833, allocations: 1.312 kB / 0.5392 GB, free: 7.332 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.76e-05/0.2833, allocations: 75.28 kB / 0.5393 GB, free: 7.258 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.373e-06/0.2833, allocations: 0 / 0.5393 GB, free: 7.258 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004163/0.2837, allocations: 159.3 kB / 0.5394 GB, free: 7.203 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.0006103/0.2843, allocations: 382 kB / 0.5398 GB, free: 6.992 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 7.891e-05/0.2844, allocations: 56.91 kB / 0.5398 GB, free: 6.93 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.2844, allocations: 0 / 0.5398 GB, free: 6.93 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 2.917e-05/0.2845, allocations: 58.09 kB / 0.5399 GB, free: 6.863 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001109/0.2846, allocations: 2.812 kB / 0.5399 GB, free: 6.863 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001572/0.2848, allocations: 114.3 kB / 0.54 GB, free: 6.727 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002033/0.285, allocations: 0.669 MB / 0.5407 GB, free: 6.031 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.338e-06/0.285, allocations: 8.812 kB / 0.5407 GB, free: 6.023 MB / 398.1 MB Notification: Performance of SimCode: time 2.01e-07/0.285, allocations: 1.375 kB / 0.5407 GB, free: 6.023 MB / 398.1 MB Notification: Performance of Templates: time 0.005764/0.2908, allocations: 3.921 MB / 0.5445 GB, free: 4.004 MB / 398.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.makefile (rm -f ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.sim & ./ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/ComplexMath/TestComplexFunctions/TestComplexFunctions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches