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.001177/0.001177, allocations: 118.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001362/0.001362, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.398/1.398, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2302/0.2302, allocations: 46.1 MB / 344.3 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001608/0.001609, allocations: 79.81 kB / 481.3 MB, free: 4.113 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4649/0.4665, allocations: 62.43 MB / 0.531 GB, free: 13.62 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.002046/0.4686, allocations: 476.7 kB / 0.5314 GB, free: 13.28 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004179/0.4728, allocations: 2.416 MB / 0.5338 GB, free: 11.38 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.148e-05/0.4729, allocations: 0 / 0.5338 GB, free: 11.38 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.458e-05/0.473, allocations: 3.938 kB / 0.5338 GB, free: 11.38 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 1.051e-05/0.473, allocations: 4 kB / 0.5338 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.004297/0.4773, allocations: 1.135 MB / 0.5349 GB, free: 10.61 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 9.46e-05/0.4774, allocations: 6.734 kB / 0.5349 GB, free: 10.61 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.853e-05/0.4775, allocations: 0 / 0.5349 GB, free: 10.61 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.441e-05/0.4775, allocations: 5.312 kB / 0.5349 GB, free: 10.6 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.712e-05/0.4776, allocations: 5.375 kB / 0.5349 GB, free: 10.6 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.654e-06/0.4776, allocations: 4 kB / 0.5349 GB, free: 10.59 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002053/0.4796, allocations: 1.034 MB / 0.5359 GB, free: 10.1 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.177e-06/0.4797, allocations: 0 / 0.5359 GB, free: 10.1 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.276e-05/0.4797, allocations: 1.125 kB / 0.5359 GB, free: 10.1 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007182/0.4804, allocations: 448.1 kB / 0.5363 GB, free: 9.84 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.372e-06/0.4804, allocations: 0 / 0.5363 GB, free: 9.84 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.4805, allocations: 3.938 kB / 0.5363 GB, free: 9.836 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.398e-05/0.4805, allocations: 0 / 0.5363 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.0005335/0.481, allocations: 444 kB / 0.5368 GB, free: 9.387 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.707e-05/0.4811, allocations: 9.281 kB / 0.5368 GB, free: 9.387 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.71e-05/0.4811, allocations: 0.9375 kB / 0.5368 GB, free: 9.387 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001612/0.4813, allocations: 169.6 kB / 0.5369 GB, free: 9.184 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.463e-05/0.4813, allocations: 4.312 kB / 0.5369 GB, free: 9.18 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.649e-05/0.4813, allocations: 5.734 kB / 0.5369 GB, free: 9.176 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00012/0.4814, allocations: 32.52 kB / 0.537 GB, free: 9.141 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.014e-05/0.4815, allocations: 0 / 0.537 GB, free: 9.141 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.431e-05/0.4815, allocations: 0 / 0.537 GB, free: 9.141 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.511e-06/0.4815, allocations: 5.375 kB / 0.537 GB, free: 9.137 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.021e-05/0.4815, allocations: 5.469 kB / 0.537 GB, free: 9.133 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001569/0.4817, allocations: 149.7 kB / 0.5371 GB, free: 8.938 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.321e-05/0.4817, allocations: 25.58 kB / 0.5372 GB, free: 8.906 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.654e-05/0.4818, allocations: 6.422 kB / 0.5372 GB, free: 8.898 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.187e-06/0.4818, allocations: 0 / 0.5372 GB, free: 8.898 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.85e-05/0.4818, allocations: 61.73 kB / 0.5372 GB, free: 8.824 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.182e-06/0.4819, allocations: 4 kB / 0.5372 GB, free: 8.82 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002143/0.4821, allocations: 67.2 kB / 0.5373 GB, free: 8.75 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.897e-05/0.4821, allocations: 77.11 kB / 0.5374 GB, free: 8.656 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.793e-05/0.4822, allocations: 93.81 kB / 0.5375 GB, free: 8.555 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.461e-05/0.4822, allocations: 26.95 kB / 0.5375 GB, free: 8.523 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.439e-05/0.4823, allocations: 80.14 kB / 0.5376 GB, free: 8.441 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.815e-05/0.4823, allocations: 1.312 kB / 0.5376 GB, free: 8.441 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.793e-05/0.4823, allocations: 11.06 kB / 0.5376 GB, free: 8.426 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001426/0.4825, allocations: 324.2 kB / 0.5379 GB, free: 8.102 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.182e-05/0.4825, allocations: 1.375 kB / 0.5379 GB, free: 8.102 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.073e-06/0.4825, allocations: 3.984 kB / 0.5379 GB, free: 8.098 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.267e-05/0.4826, allocations: 60.27 kB / 0.5379 GB, free: 8.027 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.447e-06/0.4826, allocations: 4 kB / 0.5379 GB, free: 8.023 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.326e-05/0.4826, allocations: 58.25 kB / 0.538 GB, free: 7.961 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.177e-05/0.4827, allocations: 35.7 kB / 0.538 GB, free: 7.926 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.371e-06/0.4827, allocations: 0 / 0.538 GB, free: 7.926 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.534e-05/0.4827, allocations: 8.078 kB / 0.538 GB, free: 7.918 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.302e-06/0.4827, allocations: 1.5 kB / 0.538 GB, free: 7.918 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.214e-06/0.4827, allocations: 0 / 0.538 GB, free: 7.918 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.997e-05/0.4828, allocations: 4 kB / 0.538 GB, free: 7.914 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.715e-06/0.4828, allocations: 5.281 kB / 0.5381 GB, free: 7.91 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 9.046e-05/0.4829, allocations: 134.3 kB / 0.5382 GB, free: 7.766 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.889e-06/0.4829, allocations: 3.938 kB / 0.5382 GB, free: 7.762 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.167e-06/0.4829, allocations: 4.5 kB / 0.5382 GB, free: 7.762 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.92e-07/0.4829, allocations: 3.938 kB / 0.5382 GB, free: 7.758 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.047e-06/0.4829, allocations: 4 kB / 0.5382 GB, free: 7.754 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.194e-06/0.4829, allocations: 1.062 kB / 0.5382 GB, free: 7.754 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.807e-05/0.483, allocations: 146.7 kB / 0.5383 GB, free: 7.562 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.975e-06/0.4831, allocations: 0 / 0.5383 GB, free: 7.562 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.52e-07/0.4831, allocations: 5 kB / 0.5383 GB, free: 7.559 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.006e-06/0.4831, allocations: 3.938 kB / 0.5383 GB, free: 7.555 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.473e-06/0.4831, allocations: 1.094 kB / 0.5383 GB, free: 7.555 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.4831, allocations: 1.031 kB / 0.5383 GB, free: 7.555 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/0.4831, allocations: 0 / 0.5383 GB, free: 7.555 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.899e-05/0.4832, allocations: 93.92 kB / 0.5384 GB, free: 7.449 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.171e-05/0.4832, allocations: 77.11 kB / 0.5385 GB, free: 7.355 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.43e-05/0.4833, allocations: 5.062 kB / 0.5385 GB, free: 7.352 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.844e-06/0.4833, allocations: 1.188 kB / 0.5385 GB, free: 7.352 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.841e-05/0.4833, allocations: 5.062 kB / 0.5385 GB, free: 7.348 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.858e-06/0.4833, allocations: 4 kB / 0.5385 GB, free: 7.344 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.892e-05/0.4833, allocations: 76.53 kB / 0.5386 GB, free: 7.27 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4834, allocations: 0 / 0.5386 GB, free: 7.27 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004801/0.4838, allocations: 158.1 kB / 0.5387 GB, free: 7.215 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.000829/0.4847, allocations: 388 kB / 0.5391 GB, free: 6.996 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000111/0.4848, allocations: 64.67 kB / 0.5392 GB, free: 6.926 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.4848, allocations: 1.062 kB / 0.5392 GB, free: 6.926 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.056e-05/0.4849, allocations: 54.59 kB / 0.5392 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.0001305/0.485, allocations: 4.312 kB / 0.5392 GB, free: 6.863 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001883/0.4852, allocations: 79.5 kB / 0.5393 GB, free: 6.766 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002562/0.4854, allocations: 0.6739 MB / 0.54 GB, free: 6.066 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.402e-06/0.4855, allocations: 0 / 0.54 GB, free: 6.066 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.702e-05/0.4855, allocations: 13.94 kB / 0.54 GB, free: 6.055 MB / 398.1 MB Notification: Performance of SimCode: time 2.2e-07/0.4855, allocations: 3.938 kB / 0.54 GB, free: 6.051 MB / 398.1 MB Notification: Performance of Templates: time 0.00949/0.495, allocations: 4.611 MB / 0.5445 GB, free: 3.457 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/ComplexMath/TestComplexOperations/TestComplexOperations.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches