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.001036/0.001036, allocations: 118.8 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001161/0.001161, allocations: 201.2 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.417/1.417, allocations: 227.4 MB / 246.9 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.2424/0.2424, allocations: 46.1 MB / 344.3 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001349/0.001349, allocations: 75.88 kB / 481.3 MB, free: 4.082 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4451/0.4465, allocations: 62.43 MB / 0.531 GB, free: 13.59 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.001801/0.4483, allocations: 483 kB / 0.5314 GB, free: 13.24 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003613/0.452, allocations: 2.404 MB / 0.5338 GB, free: 11.35 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.472e-05/0.452, allocations: 0 / 0.5338 GB, free: 11.35 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.709e-05/0.452, allocations: 0 / 0.5338 GB, free: 11.35 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.663e-06/0.452, allocations: 0 / 0.5338 GB, free: 11.35 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.003236/0.4553, allocations: 1.156 MB / 0.5349 GB, free: 10.56 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 7.313e-05/0.4554, allocations: 1.75 kB / 0.5349 GB, free: 10.56 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.03e-05/0.4554, allocations: 1.688 kB / 0.5349 GB, free: 10.56 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.299e-05/0.4555, allocations: 5.312 kB / 0.5349 GB, free: 10.56 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.89e-05/0.4555, allocations: 0 / 0.5349 GB, free: 10.56 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 9.347e-06/0.4555, allocations: 0 / 0.5349 GB, free: 10.56 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001933/0.4575, allocations: 1.03 MB / 0.5359 GB, free: 10.07 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.007e-05/0.4575, allocations: 1.031 kB / 0.5359 GB, free: 10.07 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.553e-05/0.4575, allocations: 8.922 kB / 0.5359 GB, free: 10.06 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006763/0.4582, allocations: 450.9 kB / 0.5363 GB, free: 9.793 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.4582, allocations: 3.938 kB / 0.5364 GB, free: 9.789 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.4582, allocations: 1.281 kB / 0.5364 GB, free: 9.789 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.861e-06/0.4582, allocations: 0 / 0.5364 GB, free: 9.789 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.0004878/0.4587, allocations: 431.8 kB / 0.5368 GB, free: 9.352 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.309e-05/0.4588, allocations: 8.812 kB / 0.5368 GB, free: 9.352 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.644e-05/0.4588, allocations: 2 kB / 0.5368 GB, free: 9.352 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001097/0.4589, allocations: 164.2 kB / 0.5369 GB, free: 9.156 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.412e-05/0.459, allocations: 5.375 kB / 0.5369 GB, free: 9.152 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.458e-06/0.459, allocations: 1.531 kB / 0.5369 GB, free: 9.152 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001007/0.4591, allocations: 40.31 kB / 0.537 GB, free: 9.109 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.396e-06/0.4591, allocations: 3.938 kB / 0.537 GB, free: 9.105 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.927e-06/0.4591, allocations: 0.9688 kB / 0.537 GB, free: 9.105 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.199e-06/0.4591, allocations: 0 / 0.537 GB, free: 9.105 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.1e-05/0.4591, allocations: 5.062 kB / 0.537 GB, free: 9.102 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001393/0.4593, allocations: 142.8 kB / 0.5371 GB, free: 8.914 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.47e-05/0.4593, allocations: 24.61 kB / 0.5371 GB, free: 8.883 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.877e-05/0.4594, allocations: 9.969 kB / 0.5372 GB, free: 8.871 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.235e-06/0.4594, allocations: 0.9688 kB / 0.5372 GB, free: 8.871 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.739e-05/0.4594, allocations: 65.3 kB / 0.5372 GB, free: 8.793 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.72e-07/0.4594, allocations: 0 / 0.5372 GB, free: 8.793 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001866/0.4596, allocations: 63.22 kB / 0.5373 GB, free: 8.727 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.008e-05/0.4597, allocations: 82.19 kB / 0.5374 GB, free: 8.629 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.319e-05/0.4597, allocations: 93.98 kB / 0.5374 GB, free: 8.527 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.157e-05/0.4598, allocations: 26.8 kB / 0.5375 GB, free: 8.496 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.72e-05/0.4598, allocations: 80.14 kB / 0.5376 GB, free: 8.414 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.264e-05/0.4598, allocations: 4.938 kB / 0.5376 GB, free: 8.41 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.547e-05/0.4599, allocations: 11.84 kB / 0.5376 GB, free: 8.395 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001214/0.46, allocations: 310.8 kB / 0.5379 GB, free: 8.082 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.968e-06/0.46, allocations: 1.094 kB / 0.5379 GB, free: 8.082 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.411e-06/0.46, allocations: 1.062 kB / 0.5379 GB, free: 8.082 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.402e-05/0.4601, allocations: 63.52 kB / 0.5379 GB, free: 8.008 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.4601, allocations: 1.031 kB / 0.5379 GB, free: 8.008 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.624e-05/0.4601, allocations: 69.8 kB / 0.538 GB, free: 7.934 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.222e-05/0.4602, allocations: 34.92 kB / 0.538 GB, free: 7.898 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.488e-06/0.4602, allocations: 1.125 kB / 0.538 GB, free: 7.898 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.463e-05/0.4602, allocations: 0 / 0.538 GB, free: 7.898 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.863e-06/0.4602, allocations: 1.062 kB / 0.538 GB, free: 7.898 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.03e-06/0.4602, allocations: 0 / 0.538 GB, free: 7.898 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.657e-05/0.4603, allocations: 1.062 kB / 0.538 GB, free: 7.898 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.113e-06/0.4603, allocations: 4.031 kB / 0.538 GB, free: 7.895 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 8.234e-05/0.4604, allocations: 138.8 kB / 0.5382 GB, free: 7.746 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.919e-06/0.4604, allocations: 3.938 kB / 0.5382 GB, free: 7.742 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.186e-06/0.4604, allocations: 8.375 kB / 0.5382 GB, free: 7.738 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.192e-06/0.4604, allocations: 0 / 0.5382 GB, free: 7.738 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.4604, allocations: 0 / 0.5382 GB, free: 7.738 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.761e-06/0.4604, allocations: 1.438 kB / 0.5382 GB, free: 7.738 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.886e-05/0.4605, allocations: 158.8 kB / 0.5383 GB, free: 7.535 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.32e-07/0.4605, allocations: 0 / 0.5383 GB, free: 7.535 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.32e-07/0.4605, allocations: 4 kB / 0.5383 GB, free: 7.531 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.587e-06/0.4605, allocations: 9.156 kB / 0.5383 GB, free: 7.523 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.065e-06/0.4606, allocations: 1.125 kB / 0.5383 GB, free: 7.523 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.4606, allocations: 0 / 0.5383 GB, free: 7.523 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.4606, allocations: 0 / 0.5383 GB, free: 7.523 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.262e-05/0.4607, allocations: 94.58 kB / 0.5384 GB, free: 7.418 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.708e-05/0.4607, allocations: 81.09 kB / 0.5385 GB, free: 7.32 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.504e-05/0.4607, allocations: 5 kB / 0.5385 GB, free: 7.316 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.968e-06/0.4607, allocations: 5.062 kB / 0.5385 GB, free: 7.312 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.518e-05/0.4608, allocations: 3.984 kB / 0.5385 GB, free: 7.309 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.525e-06/0.4608, allocations: 1.094 kB / 0.5385 GB, free: 7.309 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.554e-05/0.4608, allocations: 76.5 kB / 0.5386 GB, free: 7.234 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4608, allocations: 0 / 0.5386 GB, free: 7.234 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004852/0.4613, allocations: 154.4 kB / 0.5387 GB, free: 7.184 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.0007744/0.4621, allocations: 384 kB / 0.5391 GB, free: 6.973 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001001/0.4622, allocations: 56.91 kB / 0.5392 GB, free: 6.91 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.017e-06/0.4622, allocations: 0 / 0.5392 GB, free: 6.91 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.261e-05/0.4622, allocations: 66.33 kB / 0.5392 GB, free: 6.836 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001213/0.4624, allocations: 2.875 kB / 0.5392 GB, free: 6.836 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001735/0.4626, allocations: 84.58 kB / 0.5393 GB, free: 6.734 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002289/0.4628, allocations: 0.669 MB / 0.54 GB, free: 6.039 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.883e-06/0.4628, allocations: 1.656 kB / 0.54 GB, free: 6.039 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.207e-05/0.4628, allocations: 9 kB / 0.54 GB, free: 6.031 MB / 398.1 MB Notification: Performance of SimCode: time 2.1e-07/0.4628, allocations: 0 / 0.54 GB, free: 6.031 MB / 398.1 MB Notification: Performance of Templates: time 0.008626/0.4715, allocations: 4.602 MB / 0.5445 GB, free: 3.418 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