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.001598/0.001598, allocations: 121.7 kB / 18.46 MB, free: 4.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002018/0.002018, allocations: 212.8 kB / 19.41 MB, free: 3.672 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 / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2069/0.2069, allocations: 46.09 MB / 344.9 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001548/0.001548, allocations: 79.88 kB / 481.9 MB, free: 4.105 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3396/0.3412, allocations: 62.43 MB / 0.5316 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001523/0.3427, allocations: 479.1 kB / 0.5321 GB, free: 13.26 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003487/0.3462, allocations: 2.407 MB / 0.5344 GB, free: 11.37 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.452e-05/0.3463, allocations: 0 / 0.5344 GB, free: 11.37 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.067e-05/0.3463, allocations: 1.375 kB / 0.5344 GB, free: 11.37 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.281e-06/0.3463, allocations: 0 / 0.5344 GB, free: 11.37 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.002937/0.3493, allocations: 1.148 MB / 0.5356 GB, free: 10.59 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.471e-05/0.3493, allocations: 5.188 kB / 0.5356 GB, free: 10.59 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.442e-05/0.3494, allocations: 1.281 kB / 0.5356 GB, free: 10.59 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.709e-05/0.3494, allocations: 5.062 kB / 0.5356 GB, free: 10.58 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.48e-05/0.3495, allocations: 1.188 kB / 0.5356 GB, free: 10.58 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.364e-06/0.3495, allocations: 3.938 kB / 0.5356 GB, free: 10.58 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001928/0.3514, allocations: 1.031 MB / 0.5366 GB, free: 10.09 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.844e-06/0.3514, allocations: 0 / 0.5366 GB, free: 10.09 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.274e-05/0.3514, allocations: 5.391 kB / 0.5366 GB, free: 10.08 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000895/0.3523, allocations: 451.2 kB / 0.537 GB, free: 9.816 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.3524, allocations: 0 / 0.537 GB, free: 9.816 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.3524, allocations: 0 / 0.537 GB, free: 9.816 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.48e-06/0.3524, allocations: 0 / 0.537 GB, free: 9.816 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.00048/0.3529, allocations: 432.6 kB / 0.5374 GB, free: 9.379 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.841e-05/0.3529, allocations: 13.03 kB / 0.5374 GB, free: 9.375 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.406e-05/0.353, allocations: 1.938 kB / 0.5374 GB, free: 9.375 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.92e-05/0.353, allocations: 168.2 kB / 0.5376 GB, free: 9.176 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.251e-05/0.3531, allocations: 1.406 kB / 0.5376 GB, free: 9.176 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.068e-05/0.3531, allocations: 1.375 kB / 0.5376 GB, free: 9.176 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.652e-05/0.3532, allocations: 35.95 kB / 0.5376 GB, free: 9.137 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.923e-06/0.3532, allocations: 0 / 0.5376 GB, free: 9.137 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.708e-06/0.3532, allocations: 1.125 kB / 0.5376 GB, free: 9.137 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.988e-06/0.3532, allocations: 3.938 kB / 0.5376 GB, free: 9.133 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.144e-05/0.3532, allocations: 5.938 kB / 0.5376 GB, free: 9.129 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001297/0.3534, allocations: 150.7 kB / 0.5378 GB, free: 8.934 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.673e-05/0.3534, allocations: 20.52 kB / 0.5378 GB, free: 8.906 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.516e-05/0.3535, allocations: 6.078 kB / 0.5378 GB, free: 8.898 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.824e-06/0.3535, allocations: 0 / 0.5378 GB, free: 8.898 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.093e-05/0.3535, allocations: 65.42 kB / 0.5379 GB, free: 8.82 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.71e-07/0.3535, allocations: 0 / 0.5379 GB, free: 8.82 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001623/0.3537, allocations: 71.23 kB / 0.5379 GB, free: 8.746 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.525e-05/0.3537, allocations: 78.27 kB / 0.538 GB, free: 8.652 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.27e-05/0.3538, allocations: 89.86 kB / 0.5381 GB, free: 8.555 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.137e-05/0.3538, allocations: 26.83 kB / 0.5381 GB, free: 8.523 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.733e-05/0.3538, allocations: 80.14 kB / 0.5382 GB, free: 8.441 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.78e-05/0.3539, allocations: 1.031 kB / 0.5382 GB, free: 8.441 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.895e-05/0.3539, allocations: 16.06 kB / 0.5382 GB, free: 8.422 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.595e-05/0.354, allocations: 310.8 kB / 0.5385 GB, free: 8.109 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.036e-05/0.354, allocations: 9.219 kB / 0.5385 GB, free: 8.102 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.731e-06/0.354, allocations: 1.125 kB / 0.5385 GB, free: 8.102 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.62e-05/0.3541, allocations: 63.69 kB / 0.5386 GB, free: 8.027 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.3541, allocations: 0 / 0.5386 GB, free: 8.027 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.659e-05/0.3542, allocations: 66.19 kB / 0.5387 GB, free: 7.957 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.369e-05/0.3542, allocations: 35.02 kB / 0.5387 GB, free: 7.922 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.3542, allocations: 1.188 kB / 0.5387 GB, free: 7.922 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.261e-05/0.3542, allocations: 0 / 0.5387 GB, free: 7.922 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.92e-07/0.3542, allocations: 96 / 0.5387 GB, free: 7.922 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.921e-06/0.3543, allocations: 9.203 kB / 0.5387 GB, free: 7.914 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.618e-05/0.3543, allocations: 0 / 0.5387 GB, free: 7.914 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.43e-06/0.3543, allocations: 1.156 kB / 0.5387 GB, free: 7.914 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 7.937e-05/0.3544, allocations: 134 kB / 0.5388 GB, free: 7.77 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.11e-05/0.3544, allocations: 5.219 kB / 0.5388 GB, free: 7.766 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.536e-06/0.3544, allocations: 3.125 kB / 0.5388 GB, free: 7.766 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.462e-06/0.3544, allocations: 0 / 0.5388 GB, free: 7.766 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.3544, allocations: 5.312 kB / 0.5388 GB, free: 7.762 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.374e-06/0.3544, allocations: 0 / 0.5388 GB, free: 7.762 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.257e-05/0.3545, allocations: 154.7 kB / 0.539 GB, free: 7.562 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.3545, allocations: 1.219 kB / 0.539 GB, free: 7.562 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.71e-07/0.3545, allocations: 3.938 kB / 0.539 GB, free: 7.559 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.448e-06/0.3545, allocations: 7.922 kB / 0.539 GB, free: 7.551 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.033e-06/0.3546, allocations: 5.312 kB / 0.539 GB, free: 7.547 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.3546, allocations: 0 / 0.539 GB, free: 7.547 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.3546, allocations: 1.281 kB / 0.539 GB, free: 7.547 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.643e-05/0.3547, allocations: 97.7 kB / 0.5391 GB, free: 7.438 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.026e-05/0.3547, allocations: 77.11 kB / 0.5392 GB, free: 7.344 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.377e-05/0.3547, allocations: 5.031 kB / 0.5392 GB, free: 7.34 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.039e-05/0.3547, allocations: 1.094 kB / 0.5392 GB, free: 7.34 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.478e-05/0.3548, allocations: 3.984 kB / 0.5392 GB, free: 7.336 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.655e-06/0.3548, allocations: 1.125 kB / 0.5392 GB, free: 7.336 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.939e-05/0.3548, allocations: 76.47 kB / 0.5393 GB, free: 7.262 MB / 398.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3548, allocations: 0 / 0.5393 GB, free: 7.262 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006339/0.3554, allocations: 154.7 kB / 0.5394 GB, free: 7.211 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.0008351/0.3563, allocations: 385.4 kB / 0.5398 GB, free: 6.996 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.954e-05/0.3564, allocations: 65.2 kB / 0.5398 GB, free: 6.926 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.39e-06/0.3564, allocations: 3.938 kB / 0.5398 GB, free: 6.922 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.161e-05/0.3564, allocations: 55.66 kB / 0.5399 GB, free: 6.859 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001304/0.3566, allocations: 1.125 kB / 0.5399 GB, free: 6.859 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001862/0.3568, allocations: 105.4 kB / 0.54 GB, free: 6.73 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002273/0.357, allocations: 0.6742 MB / 0.5406 GB, free: 6.031 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.471e-05/0.357, allocations: 8.969 kB / 0.5407 GB, free: 6.023 MB / 398.1 MB Notification: Performance of SimCode: time 2.31e-07/0.357, allocations: 0 / 0.5407 GB, free: 6.023 MB / 398.1 MB Notification: Performance of Templates: time 0.008088/0.3651, allocations: 3.918 MB / 0.5445 GB, free: 4.008 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