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.002103/0.002103, allocations: 118.8 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.00291/0.00291, allocations: 198 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.438/1.438, 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.2406/0.2406, allocations: 46.1 MB / 344.3 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001669/0.001669, allocations: 75.88 kB / 481.3 MB, free: 4.117 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4522/0.4539, allocations: 62.44 MB / 0.531 GB, free: 13.6 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.002843/0.4568, allocations: 476.3 kB / 0.5314 GB, free: 13.26 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004757/0.4616, allocations: 2.418 MB / 0.5338 GB, free: 11.36 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.812e-05/0.4617, allocations: 1.375 kB / 0.5338 GB, free: 11.36 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.396e-05/0.4617, allocations: 0 / 0.5338 GB, free: 11.36 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 8.697e-06/0.4617, allocations: 0 / 0.5338 GB, free: 11.36 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.003503/0.4653, allocations: 1.144 MB / 0.5349 GB, free: 10.58 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.639e-05/0.4653, allocations: 2.125 kB / 0.5349 GB, free: 10.58 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.941e-05/0.4654, allocations: 5.125 kB / 0.5349 GB, free: 10.57 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.49e-05/0.4654, allocations: 5.031 kB / 0.5349 GB, free: 10.57 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.272e-05/0.4655, allocations: 0 / 0.5349 GB, free: 10.57 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.125e-06/0.4655, allocations: 1.094 kB / 0.5349 GB, free: 10.57 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002049/0.4675, allocations: 1.03 MB / 0.5359 GB, free: 10.08 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.535e-05/0.4676, allocations: 4 kB / 0.5359 GB, free: 10.07 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.034e-05/0.4676, allocations: 5.016 kB / 0.5359 GB, free: 10.07 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001412/0.469, allocations: 443.4 kB / 0.5363 GB, free: 9.812 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.374e-06/0.469, allocations: 3.938 kB / 0.5363 GB, free: 9.809 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.016e-06/0.4691, allocations: 5.094 kB / 0.5363 GB, free: 9.805 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.639e-05/0.4691, allocations: 0 / 0.5363 GB, free: 9.805 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.0009784/0.4701, allocations: 436.1 kB / 0.5368 GB, free: 9.363 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.078e-05/0.4701, allocations: 9.156 kB / 0.5368 GB, free: 9.363 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.48e-05/0.4702, allocations: 2.062 kB / 0.5368 GB, free: 9.363 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001705/0.4704, allocations: 168.2 kB / 0.5369 GB, free: 9.164 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.167e-05/0.4704, allocations: 1.531 kB / 0.5369 GB, free: 9.164 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.342e-05/0.4704, allocations: 384 / 0.5369 GB, free: 9.164 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001348/0.4706, allocations: 32.27 kB / 0.537 GB, free: 9.129 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.833e-05/0.4706, allocations: 5.188 kB / 0.537 GB, free: 9.125 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.589e-05/0.4706, allocations: 3.938 kB / 0.537 GB, free: 9.121 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.674e-06/0.4706, allocations: 0 / 0.537 GB, free: 9.121 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.855e-05/0.4707, allocations: 2.25 kB / 0.537 GB, free: 9.121 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000248/0.4709, allocations: 142.8 kB / 0.5371 GB, free: 8.934 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.799e-05/0.471, allocations: 32.75 kB / 0.5371 GB, free: 8.895 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.434e-05/0.471, allocations: 6.422 kB / 0.5371 GB, free: 8.887 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.349e-05/0.4711, allocations: 0 / 0.5371 GB, free: 8.887 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.938e-05/0.4711, allocations: 65.08 kB / 0.5372 GB, free: 8.809 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.403e-06/0.4712, allocations: 0 / 0.5372 GB, free: 8.809 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002481/0.4714, allocations: 67.55 kB / 0.5373 GB, free: 8.738 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.834e-05/0.4715, allocations: 81.11 kB / 0.5374 GB, free: 8.641 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.569e-05/0.4716, allocations: 91.02 kB / 0.5374 GB, free: 8.543 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.819e-05/0.4716, allocations: 25.7 kB / 0.5375 GB, free: 8.512 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.864e-05/0.4716, allocations: 80.14 kB / 0.5375 GB, free: 8.43 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.611e-05/0.4717, allocations: 5.406 kB / 0.5375 GB, free: 8.426 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.335e-05/0.4717, allocations: 11.91 kB / 0.5376 GB, free: 8.41 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001517/0.4719, allocations: 311.8 kB / 0.5379 GB, free: 8.098 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.35e-05/0.4719, allocations: 1 kB / 0.5379 GB, free: 8.098 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.746e-06/0.4719, allocations: 1.062 kB / 0.5379 GB, free: 8.098 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.786e-05/0.472, allocations: 67.34 kB / 0.5379 GB, free: 8.02 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.472, allocations: 7.938 kB / 0.5379 GB, free: 8.012 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001048/0.4721, allocations: 66.81 kB / 0.538 GB, free: 7.941 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.882e-05/0.4722, allocations: 35.3 kB / 0.538 GB, free: 7.906 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.23e-06/0.4722, allocations: 0 / 0.538 GB, free: 7.906 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.72e-05/0.4722, allocations: 0 / 0.538 GB, free: 7.906 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.062e-06/0.4722, allocations: 1.156 kB / 0.538 GB, free: 7.906 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.633e-06/0.4722, allocations: 0 / 0.538 GB, free: 7.906 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.028e-05/0.4723, allocations: 1.188 kB / 0.538 GB, free: 7.906 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.024e-05/0.4723, allocations: 3.984 kB / 0.538 GB, free: 7.902 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.0001179/0.4724, allocations: 134.8 kB / 0.5382 GB, free: 7.758 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.678e-05/0.4724, allocations: 11.97 kB / 0.5382 GB, free: 7.746 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.147e-05/0.4725, allocations: 4.344 kB / 0.5382 GB, free: 7.746 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/0.4725, allocations: 0 / 0.5382 GB, free: 7.746 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.005e-06/0.4725, allocations: 1.094 kB / 0.5382 GB, free: 7.746 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/0.4725, allocations: 0 / 0.5382 GB, free: 7.746 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001253/0.4726, allocations: 150.7 kB / 0.5383 GB, free: 7.551 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/0.4726, allocations: 5.094 kB / 0.5383 GB, free: 7.547 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.51e-07/0.4726, allocations: 0 / 0.5383 GB, free: 7.547 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.557e-06/0.4726, allocations: 3.938 kB / 0.5383 GB, free: 7.543 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.128e-05/0.4727, allocations: 5.172 kB / 0.5383 GB, free: 7.539 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.4727, allocations: 0 / 0.5383 GB, free: 7.539 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.4727, allocations: 5.156 kB / 0.5383 GB, free: 7.535 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001394/0.4728, allocations: 93.05 kB / 0.5384 GB, free: 7.43 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.012e-05/0.4729, allocations: 78.2 kB / 0.5385 GB, free: 7.336 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.811e-05/0.4729, allocations: 4.875 kB / 0.5385 GB, free: 7.332 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.046e-05/0.4729, allocations: 1.125 kB / 0.5385 GB, free: 7.332 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.441e-05/0.4729, allocations: 0 / 0.5385 GB, free: 7.332 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.262e-06/0.4729, allocations: 5.078 kB / 0.5385 GB, free: 7.328 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.086e-05/0.473, allocations: 79.31 kB / 0.5386 GB, free: 7.25 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.473, allocations: 1.25 kB / 0.5386 GB, free: 7.25 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007615/0.4738, allocations: 154.1 kB / 0.5387 GB, free: 7.199 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.001078/0.4748, allocations: 390.8 kB / 0.5391 GB, free: 6.984 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001079/0.475, allocations: 56.59 kB / 0.5392 GB, free: 6.922 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.475, allocations: 0 / 0.5392 GB, free: 6.922 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.01e-05/0.475, allocations: 62.17 kB / 0.5392 GB, free: 6.852 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001425/0.4752, allocations: 6.156 kB / 0.5392 GB, free: 6.848 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002284/0.4754, allocations: 76.83 kB / 0.5393 GB, free: 6.754 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002628/0.4757, allocations: 0.6741 MB / 0.54 GB, free: 6.055 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.612e-06/0.4757, allocations: 0 / 0.54 GB, free: 6.055 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.671e-05/0.4757, allocations: 8.781 kB / 0.54 GB, free: 6.047 MB / 398.1 MB Notification: Performance of SimCode: time 2.2e-07/0.4757, allocations: 0 / 0.54 GB, free: 6.047 MB / 398.1 MB Notification: Performance of Templates: time 0.009899/0.4856, allocations: 4.612 MB / 0.5445 GB, free: 3.453 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