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.00112/0.00112, allocations: 117.6 kB / 17.79 MB, free: 5.238 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001116/0.001116, allocations: 208.7 kB / 18.74 MB, free: 4.297 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.384/1.384, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2357/0.2357, allocations: 46.1 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00225/0.00225, allocations: 75.88 kB / 481.3 MB, free: 4.102 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4589/0.4611, allocations: 62.44 MB / 0.531 GB, free: 13.82 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.002052/0.4633, allocations: 469.5 kB / 0.5314 GB, free: 13.49 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004484/0.4678, allocations: 2.414 MB / 0.5338 GB, free: 11.59 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.929e-05/0.4678, allocations: 0 / 0.5338 GB, free: 11.59 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.784e-05/0.4679, allocations: 0 / 0.5338 GB, free: 11.59 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.464e-06/0.4679, allocations: 1.312 kB / 0.5338 GB, free: 11.59 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.003545/0.4715, allocations: 1.147 MB / 0.5349 GB, free: 10.81 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.929e-05/0.4715, allocations: 5.375 kB / 0.5349 GB, free: 10.8 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.126e-05/0.4716, allocations: 1.375 kB / 0.5349 GB, free: 10.8 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.515e-05/0.4716, allocations: 5.312 kB / 0.5349 GB, free: 10.8 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.792e-05/0.4717, allocations: 7.922 kB / 0.5349 GB, free: 10.79 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.263e-06/0.4717, allocations: 0 / 0.5349 GB, free: 10.79 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002077/0.4738, allocations: 1.031 MB / 0.5359 GB, free: 10.3 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.31e-05/0.4738, allocations: 0 / 0.5359 GB, free: 10.3 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.596e-05/0.4738, allocations: 4.906 kB / 0.5359 GB, free: 10.3 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007573/0.4746, allocations: 443 kB / 0.5363 GB, free: 10.04 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.799e-06/0.4746, allocations: 0.9375 kB / 0.5363 GB, free: 10.04 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.336e-06/0.4746, allocations: 0 / 0.5363 GB, free: 10.04 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.121e-05/0.4746, allocations: 0 / 0.5363 GB, free: 10.04 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.0006382/0.4753, allocations: 436 kB / 0.5368 GB, free: 9.598 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.885e-05/0.4753, allocations: 9.25 kB / 0.5368 GB, free: 9.598 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.668e-05/0.4754, allocations: 10.17 kB / 0.5368 GB, free: 9.59 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001347/0.4755, allocations: 162.2 kB / 0.5369 GB, free: 9.395 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.451e-05/0.4756, allocations: 5.625 kB / 0.5369 GB, free: 9.391 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.824e-05/0.4756, allocations: 384 / 0.5369 GB, free: 9.391 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001198/0.4757, allocations: 36.64 kB / 0.537 GB, free: 9.352 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.163e-05/0.4757, allocations: 0 / 0.537 GB, free: 9.352 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.384e-05/0.4758, allocations: 1.375 kB / 0.537 GB, free: 9.352 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.841e-06/0.4758, allocations: 3.938 kB / 0.537 GB, free: 9.348 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.882e-05/0.4758, allocations: 5.406 kB / 0.537 GB, free: 9.344 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002004/0.476, allocations: 151 kB / 0.5371 GB, free: 9.148 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.49e-05/0.4761, allocations: 25.08 kB / 0.5371 GB, free: 9.117 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.01e-05/0.4761, allocations: 4.859 kB / 0.5372 GB, free: 9.109 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.161e-05/0.4761, allocations: 1 kB / 0.5372 GB, free: 9.109 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.537e-05/0.4762, allocations: 69.23 kB / 0.5372 GB, free: 9.027 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.122e-06/0.4762, allocations: 0 / 0.5372 GB, free: 9.027 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002487/0.4765, allocations: 63.36 kB / 0.5373 GB, free: 8.961 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.687e-05/0.4766, allocations: 78.17 kB / 0.5374 GB, free: 8.867 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.811e-05/0.4766, allocations: 89.98 kB / 0.5374 GB, free: 8.77 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.017e-05/0.4767, allocations: 30.73 kB / 0.5375 GB, free: 8.734 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.347e-05/0.4767, allocations: 80.14 kB / 0.5375 GB, free: 8.652 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.131e-05/0.4767, allocations: 1.375 kB / 0.5375 GB, free: 8.652 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.356e-05/0.4768, allocations: 14.94 kB / 0.5376 GB, free: 8.633 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001558/0.4769, allocations: 312.1 kB / 0.5379 GB, free: 8.32 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.401e-05/0.477, allocations: 1.438 kB / 0.5379 GB, free: 8.32 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.398e-06/0.477, allocations: 3.984 kB / 0.5379 GB, free: 8.316 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.094e-05/0.4771, allocations: 68.33 kB / 0.5379 GB, free: 8.238 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.975e-06/0.4771, allocations: 0 / 0.5379 GB, free: 8.238 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.661e-05/0.4772, allocations: 61.81 kB / 0.538 GB, free: 8.172 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.114e-05/0.4772, allocations: 35.08 kB / 0.538 GB, free: 8.137 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.147e-06/0.4772, allocations: 5.109 kB / 0.538 GB, free: 8.133 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.938e-05/0.4773, allocations: 0 / 0.538 GB, free: 8.133 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.565e-06/0.4773, allocations: 5.062 kB / 0.538 GB, free: 8.129 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.584e-06/0.4773, allocations: 0 / 0.538 GB, free: 8.129 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.07e-05/0.4773, allocations: 1 kB / 0.538 GB, free: 8.129 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.638e-06/0.4773, allocations: 0 / 0.538 GB, free: 8.129 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 0.0001202/0.4775, allocations: 138.8 kB / 0.5382 GB, free: 7.98 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.221e-05/0.4775, allocations: 3.938 kB / 0.5382 GB, free: 7.977 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.321e-05/0.4775, allocations: 4.156 kB / 0.5382 GB, free: 7.977 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.813e-06/0.4775, allocations: 0 / 0.5382 GB, free: 7.977 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.561e-06/0.4775, allocations: 1 kB / 0.5382 GB, free: 7.977 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.596e-06/0.4775, allocations: 0 / 0.5382 GB, free: 7.977 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001455/0.4777, allocations: 151.9 kB / 0.5383 GB, free: 7.781 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.986e-06/0.4777, allocations: 3.938 kB / 0.5383 GB, free: 7.777 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.72e-07/0.4777, allocations: 3.938 kB / 0.5383 GB, free: 7.773 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.486e-06/0.4777, allocations: 13.14 kB / 0.5383 GB, free: 7.762 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.969e-06/0.4777, allocations: 0 / 0.5383 GB, free: 7.762 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.575e-06/0.4777, allocations: 0.9688 kB / 0.5383 GB, free: 7.762 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.4777, allocations: 4 kB / 0.5383 GB, free: 7.758 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001567/0.4779, allocations: 94.7 kB / 0.5384 GB, free: 7.652 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.038e-05/0.478, allocations: 77.11 kB / 0.5385 GB, free: 7.559 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.005e-05/0.478, allocations: 5.5 kB / 0.5385 GB, free: 7.555 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.816e-06/0.478, allocations: 4.031 kB / 0.5385 GB, free: 7.551 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.383e-05/0.478, allocations: 1.25 kB / 0.5385 GB, free: 7.551 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.771e-06/0.478, allocations: 3.984 kB / 0.5385 GB, free: 7.547 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.371e-05/0.4781, allocations: 76.91 kB / 0.5386 GB, free: 7.473 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4781, allocations: 0 / 0.5386 GB, free: 7.473 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005729/0.4787, allocations: 153.7 kB / 0.5387 GB, free: 7.422 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.0009051/0.4796, allocations: 377.3 kB / 0.5391 GB, free: 7.215 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001221/0.4797, allocations: 69.2 kB / 0.5392 GB, free: 7.141 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.4797, allocations: 0 / 0.5392 GB, free: 7.141 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.159e-05/0.4798, allocations: 55.19 kB / 0.5392 GB, free: 7.078 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001287/0.4799, allocations: 5.281 kB / 0.5392 GB, free: 7.074 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002388/0.4802, allocations: 80.52 kB / 0.5393 GB, free: 6.977 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003007/0.4805, allocations: 0.6742 MB / 0.54 GB, free: 6.277 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 8.666e-06/0.4805, allocations: 0 / 0.54 GB, free: 6.277 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.697e-05/0.4805, allocations: 8.719 kB / 0.54 GB, free: 6.27 MB / 398.1 MB Notification: Performance of SimCode: time 2.41e-07/0.4805, allocations: 1.219 kB / 0.54 GB, free: 6.27 MB / 398.1 MB Notification: Performance of Templates: time 0.01011/0.4906, allocations: 4.607 MB / 0.5445 GB, free: 3.582 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/ComplexMath/TestComplexFunctions/TestComplexFunctions.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches