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.001117/0.001117, allocations: 122.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00111/0.00111, allocations: 202 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.432/1.432, 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.2145/0.2145, allocations: 46.1 MB / 344.3 MB, free: 11.46 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001416/0.001416, allocations: 71.88 kB / 481.3 MB, free: 4.074 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4206/0.4221, allocations: 62.45 MB / 0.531 GB, free: 13.56 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.002023/0.4242, allocations: 475.7 kB / 0.5314 GB, free: 13.21 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004762/0.429, allocations: 2.409 MB / 0.5338 GB, free: 11.32 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.672e-05/0.429, allocations: 1.969 kB / 0.5338 GB, free: 11.32 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.878e-05/0.429, allocations: 0 / 0.5338 GB, free: 11.32 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 8.566e-06/0.4291, allocations: 4 kB / 0.5338 GB, free: 11.32 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.003272/0.4323, allocations: 1.135 MB / 0.5349 GB, free: 10.55 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.597e-05/0.4324, allocations: 1.375 kB / 0.5349 GB, free: 10.55 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.301e-05/0.4325, allocations: 1.375 kB / 0.5349 GB, free: 10.55 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.916e-05/0.4325, allocations: 9.25 kB / 0.5349 GB, free: 10.54 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.801e-05/0.4325, allocations: 4 kB / 0.5349 GB, free: 10.54 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.893e-06/0.4325, allocations: 5.375 kB / 0.5349 GB, free: 10.53 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00233/0.4349, allocations: 1.034 MB / 0.5359 GB, free: 10.04 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.255e-05/0.4349, allocations: 0 / 0.5359 GB, free: 10.04 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.256e-05/0.4349, allocations: 5.047 kB / 0.5359 GB, free: 10.03 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00123/0.4362, allocations: 447.6 kB / 0.5364 GB, free: 9.773 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/0.4362, allocations: 0 / 0.5364 GB, free: 9.773 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.4362, allocations: 0 / 0.5364 GB, free: 9.773 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.31e-06/0.4362, allocations: 0 / 0.5364 GB, free: 9.773 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.000751/0.437, allocations: 443.5 kB / 0.5368 GB, free: 9.324 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.623e-05/0.437, allocations: 10.38 kB / 0.5368 GB, free: 9.324 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.749e-05/0.4371, allocations: 0.9375 kB / 0.5368 GB, free: 9.324 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000145/0.4372, allocations: 168.3 kB / 0.5369 GB, free: 9.121 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.067e-05/0.4372, allocations: 1.812 kB / 0.5369 GB, free: 9.121 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.045e-05/0.4373, allocations: 384 / 0.5369 GB, free: 9.121 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001161/0.4374, allocations: 32.83 kB / 0.537 GB, free: 9.086 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.836e-06/0.4374, allocations: 0 / 0.537 GB, free: 9.086 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.43e-05/0.4374, allocations: 1.312 kB / 0.537 GB, free: 9.086 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.63e-06/0.4374, allocations: 3.938 kB / 0.537 GB, free: 9.082 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.654e-05/0.4375, allocations: 5.469 kB / 0.537 GB, free: 9.078 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001768/0.4376, allocations: 154.9 kB / 0.5371 GB, free: 8.879 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.492e-05/0.4377, allocations: 19.7 kB / 0.5372 GB, free: 8.852 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.802e-05/0.4377, allocations: 6.953 kB / 0.5372 GB, free: 8.844 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.387e-06/0.4377, allocations: 0 / 0.5372 GB, free: 8.844 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.641e-05/0.4378, allocations: 61.2 kB / 0.5372 GB, free: 8.77 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.001e-06/0.4378, allocations: 5.125 kB / 0.5372 GB, free: 8.766 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002187/0.438, allocations: 69.86 kB / 0.5373 GB, free: 8.691 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.989e-05/0.4381, allocations: 78.27 kB / 0.5374 GB, free: 8.598 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.102e-05/0.4382, allocations: 94.97 kB / 0.5375 GB, free: 8.496 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.542e-05/0.4382, allocations: 25.7 kB / 0.5375 GB, free: 8.465 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.536e-05/0.4383, allocations: 80.14 kB / 0.5376 GB, free: 8.383 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.509e-05/0.4383, allocations: 1.062 kB / 0.5376 GB, free: 8.383 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.777e-05/0.4383, allocations: 11.72 kB / 0.5376 GB, free: 8.367 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001198/0.4385, allocations: 320.1 kB / 0.5379 GB, free: 8.047 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.452e-05/0.4385, allocations: 1.219 kB / 0.5379 GB, free: 8.047 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.282e-06/0.4385, allocations: 0 / 0.5379 GB, free: 8.047 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.218e-05/0.4386, allocations: 63.88 kB / 0.5379 GB, free: 7.973 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.4386, allocations: 0 / 0.5379 GB, free: 7.973 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001099/0.4387, allocations: 62.56 kB / 0.538 GB, free: 7.906 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.199e-05/0.4388, allocations: 39.33 kB / 0.538 GB, free: 7.867 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.304e-06/0.4388, allocations: 0 / 0.538 GB, free: 7.867 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.14e-05/0.4388, allocations: 13.17 kB / 0.538 GB, free: 7.855 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.949e-06/0.4388, allocations: 3.984 kB / 0.5381 GB, free: 7.852 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.214e-06/0.4389, allocations: 1.062 kB / 0.5381 GB, free: 7.852 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.773e-05/0.4389, allocations: 0 / 0.5381 GB, free: 7.852 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.977e-06/0.4389, allocations: 1.156 kB / 0.5381 GB, free: 7.852 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.0001013/0.439, allocations: 133.7 kB / 0.5382 GB, free: 7.707 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.34e-05/0.439, allocations: 5.094 kB / 0.5382 GB, free: 7.703 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.104e-05/0.439, allocations: 3.125 kB / 0.5382 GB, free: 7.703 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.304e-06/0.439, allocations: 1.125 kB / 0.5382 GB, free: 7.703 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.997e-06/0.4391, allocations: 4 kB / 0.5382 GB, free: 7.699 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.415e-06/0.4391, allocations: 0 / 0.5382 GB, free: 7.699 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001222/0.4392, allocations: 151.6 kB / 0.5383 GB, free: 7.504 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.342e-06/0.4392, allocations: 0 / 0.5383 GB, free: 7.504 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.81e-07/0.4392, allocations: 5.062 kB / 0.5383 GB, free: 7.5 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.459e-06/0.4392, allocations: 3.938 kB / 0.5383 GB, free: 7.496 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.744e-06/0.4392, allocations: 0.7812 kB / 0.5383 GB, free: 7.496 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/0.4392, allocations: 1 kB / 0.5383 GB, free: 7.496 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.4392, allocations: 0 / 0.5383 GB, free: 7.496 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001059/0.4394, allocations: 97.27 kB / 0.5384 GB, free: 7.387 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.527e-05/0.4394, allocations: 78.27 kB / 0.5385 GB, free: 7.293 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.668e-05/0.4394, allocations: 4.781 kB / 0.5385 GB, free: 7.289 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.103e-05/0.4394, allocations: 1.156 kB / 0.5385 GB, free: 7.289 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.385e-05/0.4395, allocations: 4 kB / 0.5385 GB, free: 7.285 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.037e-06/0.4395, allocations: 0.9062 kB / 0.5385 GB, free: 7.285 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.395e-05/0.4395, allocations: 76.16 kB / 0.5386 GB, free: 7.211 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4395, allocations: 0 / 0.5386 GB, free: 7.211 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007224/0.4402, allocations: 157.7 kB / 0.5387 GB, free: 7.156 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.001187/0.4414, allocations: 393.4 kB / 0.5391 GB, free: 6.938 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001311/0.4416, allocations: 65.55 kB / 0.5392 GB, free: 6.867 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.4416, allocations: 0 / 0.5392 GB, free: 6.867 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.441e-05/0.4416, allocations: 58.38 kB / 0.5392 GB, free: 6.801 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001537/0.4418, allocations: 5.812 kB / 0.5392 GB, free: 6.797 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002433/0.4421, allocations: 75.28 kB / 0.5393 GB, free: 6.703 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002746/0.4423, allocations: 0.6742 MB / 0.54 GB, free: 6.004 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 9.448e-06/0.4424, allocations: 1.281 kB / 0.54 GB, free: 6.004 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.73e-05/0.4424, allocations: 8.844 kB / 0.54 GB, free: 5.996 MB / 398.1 MB Notification: Performance of SimCode: time 2.61e-07/0.4424, allocations: 4 kB / 0.54 GB, free: 5.992 MB / 398.1 MB Notification: Performance of Templates: time 0.01126/0.4537, allocations: 4.612 MB / 0.5445 GB, free: 3.367 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