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.001417/0.001417, allocations: 113.4 kB / 17.99 MB, free: 5.383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00181/0.00181, allocations: 209.8 kB / 18.92 MB, free: 4.453 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.509/1.509, allocations: 227.4 MB / 247.1 MB, free: 9.043 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2286/0.2286, allocations: 46.12 MB / 344.5 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002178/0.002178, allocations: 80.7 kB / 417.8 MB, free: 20.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.112/0.1142, allocations: 62.47 MB / 480.2 MB, free: 5.539 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001708/0.1159, allocations: 0.5099 MB / 480.7 MB, free: 5.023 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00348/0.1194, allocations: 2.395 MB / 483.1 MB, free: 2.609 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.451e-05/0.1195, allocations: 0 / 483.1 MB, free: 2.609 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.845e-05/0.1195, allocations: 3.938 kB / 483.1 MB, free: 2.605 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.39e-06/0.1195, allocations: 0 / 483.1 MB, free: 2.605 MB / 350.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.00266/0.1222, allocations: 1.075 MB / 484.2 MB, free: 1.531 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.946e-05/0.1222, allocations: 0 / 484.2 MB, free: 1.531 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.822e-05/0.1223, allocations: 4 kB / 484.2 MB, free: 1.527 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.378e-05/0.1223, allocations: 0 / 484.2 MB, free: 1.527 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.237e-05/0.1223, allocations: 0 / 484.2 MB, free: 1.527 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.28e-06/0.1223, allocations: 3.938 kB / 484.2 MB, free: 1.523 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001541/0.1239, allocations: 1.007 MB / 485.2 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.155e-06/0.1239, allocations: 0 / 485.2 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.14e-05/0.1239, allocations: 11.98 kB / 485.2 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004001/0.1243, allocations: 279.5 kB / 485.5 MB, free: 236 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.1243, allocations: 0 / 485.5 MB, free: 236 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1243, allocations: 0 / 485.5 MB, free: 236 kB / 350.1 MB Notification: Performance of Transformations before backend: time 4.799e-06/0.1244, allocations: 3.938 kB / 485.5 MB, free: 232 kB / 350.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.0004969/0.1249, allocations: 441.5 kB / 485.9 MB, free: 15.74 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.708e-05/0.1249, allocations: 8.031 kB / 485.9 MB, free: 15.73 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.794e-05/0.1249, allocations: 0.9375 kB / 486 MB, free: 15.73 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001279/0.1251, allocations: 164.3 kB / 486.1 MB, free: 15.54 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.369e-05/0.1251, allocations: 384 / 486.1 MB, free: 15.54 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.727e-06/0.1251, allocations: 8.375 kB / 486.1 MB, free: 15.53 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.416e-05/0.1252, allocations: 37.94 kB / 486.2 MB, free: 15.48 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.856e-06/0.1252, allocations: 0 / 486.2 MB, free: 15.48 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.967e-06/0.1252, allocations: 0 / 486.2 MB, free: 15.48 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.158e-06/0.1253, allocations: 4 kB / 486.2 MB, free: 15.48 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.593e-05/0.1253, allocations: 0 / 486.2 MB, free: 15.48 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001468/0.1254, allocations: 145.7 kB / 486.3 MB, free: 15.29 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.224e-05/0.1255, allocations: 22.61 kB / 486.3 MB, free: 15.26 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.47e-05/0.1255, allocations: 4.859 kB / 486.3 MB, free: 15.25 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.077e-05/0.1255, allocations: 3.938 kB / 486.3 MB, free: 15.25 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.468e-05/0.1256, allocations: 68.19 kB / 486.4 MB, free: 15.16 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 2.525e-06/0.1256, allocations: 4.062 kB / 486.4 MB, free: 15.16 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001828/0.1258, allocations: 63.34 kB / 486.5 MB, free: 15.09 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.754e-05/0.1258, allocations: 81.11 kB / 486.5 MB, free: 14.99 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.448e-05/0.1259, allocations: 89.98 kB / 486.6 MB, free: 14.89 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.966e-05/0.1259, allocations: 29.7 kB / 486.7 MB, free: 14.86 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.239e-05/0.126, allocations: 80.14 kB / 486.7 MB, free: 14.77 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.463e-05/0.126, allocations: 0 / 486.7 MB, free: 14.77 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.157e-05/0.126, allocations: 17.7 kB / 486.8 MB, free: 14.75 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001301/0.1262, allocations: 310.8 kB / 487.1 MB, free: 14.44 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.566e-06/0.1262, allocations: 0 / 487.1 MB, free: 14.44 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.223e-06/0.1262, allocations: 3.938 kB / 487.1 MB, free: 14.43 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.879e-05/0.1262, allocations: 68.33 kB / 487.1 MB, free: 14.35 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.1263, allocations: 0 / 487.1 MB, free: 14.35 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.079e-05/0.1263, allocations: 63.39 kB / 487.2 MB, free: 14.28 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.193e-05/0.1264, allocations: 33.64 kB / 487.2 MB, free: 14.24 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/0.1264, allocations: 0 / 487.2 MB, free: 14.24 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.384e-05/0.1264, allocations: 4 kB / 487.2 MB, free: 14.23 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.82e-07/0.1264, allocations: 0 / 487.2 MB, free: 14.23 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.897e-06/0.1264, allocations: 0 / 487.2 MB, free: 14.23 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.441e-05/0.1264, allocations: 0 / 487.2 MB, free: 14.23 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.172e-06/0.1264, allocations: 0 / 487.2 MB, free: 14.23 MB / 366.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.689e-05/0.1265, allocations: 147.6 kB / 487.4 MB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.769e-06/0.1266, allocations: 3.938 kB / 487.4 MB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.329e-05/0.1266, allocations: 7.109 kB / 487.4 MB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.072e-06/0.1266, allocations: 3.938 kB / 487.4 MB, free: 14.06 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.1266, allocations: 3.938 kB / 487.4 MB, free: 14.06 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.643e-06/0.1266, allocations: 0 / 487.4 MB, free: 14.06 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001083/0.1267, allocations: 145.7 kB / 487.5 MB, free: 13.87 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.21e-07/0.1267, allocations: 0 / 487.5 MB, free: 13.87 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.51e-07/0.1267, allocations: 0 / 487.5 MB, free: 13.87 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.825e-06/0.1267, allocations: 7.938 kB / 487.5 MB, free: 13.86 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.049e-05/0.1268, allocations: 3.984 kB / 487.5 MB, free: 13.86 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.82e-07/0.1268, allocations: 0 / 487.5 MB, free: 13.86 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.1268, allocations: 4 kB / 487.6 MB, free: 13.85 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.457e-05/0.1269, allocations: 82.84 kB / 487.6 MB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.718e-05/0.1269, allocations: 85 kB / 487.7 MB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.733e-05/0.1269, allocations: 7.938 kB / 487.7 MB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.656e-06/0.127, allocations: 3.938 kB / 487.7 MB, free: 13.63 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.009e-05/0.127, allocations: 4.031 kB / 487.7 MB, free: 13.63 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.605e-06/0.127, allocations: 0 / 487.7 MB, free: 13.63 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.461e-05/0.127, allocations: 75.28 kB / 487.8 MB, free: 13.55 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.127, allocations: 0 / 487.8 MB, free: 13.55 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004493/0.1275, allocations: 160 kB / 488 MB, free: 13.4 MB / 366.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.0007307/0.1282, allocations: 392.6 kB / 488.3 MB, free: 13.01 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001047/0.1283, allocations: 59.41 kB / 488.4 MB, free: 12.94 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.1283, allocations: 0 / 488.4 MB, free: 12.94 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.884e-05/0.1284, allocations: 59.41 kB / 488.5 MB, free: 12.87 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001207/0.1285, allocations: 4.125 kB / 488.5 MB, free: 12.86 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001936/0.1287, allocations: 106.6 kB / 488.6 MB, free: 12.73 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002805/0.129, allocations: 0.6728 MB / 489.2 MB, free: 12.03 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.33e-05/0.129, allocations: 11.44 kB / 489.3 MB, free: 12.02 MB / 366.1 MB Notification: Performance of SimCode: time 3.41e-07/0.129, allocations: 0 / 489.3 MB, free: 12.02 MB / 366.1 MB Notification: Performance of Templates: time 0.006746/0.1358, allocations: 3.912 MB / 493.2 MB, free: 8.105 MB / 366.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