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.001342/0.001342, allocations: 112.5 kB / 17.86 MB, free: 5.629 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001789/0.001789, allocations: 209.7 kB / 18.79 MB, free: 4.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.367/1.367, allocations: 227.4 MB / 246.9 MB, free: 10.78 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2179/0.2179, allocations: 46.11 MB / 344.3 MB, free: 11.8 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001424/0.001424, allocations: 76.16 kB / 417.5 MB, free: 20.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1156/0.117, allocations: 62.44 MB / 479.9 MB, free: 5.746 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001831/0.1189, allocations: 0.541 MB / 480.5 MB, free: 5.199 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003434/0.1223, allocations: 2.47 MB / 482.9 MB, free: 2.711 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.271e-05/0.1224, allocations: 4 kB / 482.9 MB, free: 2.707 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.977e-05/0.1225, allocations: 0 / 482.9 MB, free: 2.707 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.318e-06/0.1225, allocations: 0 / 482.9 MB, free: 2.707 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.002403/0.1249, allocations: 1.051 MB / 484 MB, free: 1.656 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.228e-05/0.1249, allocations: 7.938 kB / 484 MB, free: 1.648 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.347e-05/0.125, allocations: 0 / 484 MB, free: 1.648 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.306e-05/0.125, allocations: 0 / 484 MB, free: 1.648 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.684e-05/0.125, allocations: 0 / 484 MB, free: 1.648 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.742e-06/0.125, allocations: 0 / 484 MB, free: 1.648 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001566/0.1266, allocations: 1.007 MB / 485 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.208e-06/0.1266, allocations: 4 kB / 485 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.764e-05/0.1266, allocations: 4 kB / 485 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004622/0.1271, allocations: 279.5 kB / 485.3 MB, free: 368 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.1271, allocations: 0 / 485.3 MB, free: 368 kB / 350.1 MB Notification: Performance of FrontEnd: time 9.82e-07/0.1271, allocations: 0 / 485.3 MB, free: 368 kB / 350.1 MB Notification: Performance of Transformations before backend: time 3.676e-06/0.1271, allocations: 0 / 485.3 MB, free: 368 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.0004553/0.1276, allocations: 441.5 kB / 485.7 MB, free: 15.88 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.533e-05/0.1276, allocations: 12.88 kB / 485.7 MB, free: 15.86 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.075e-05/0.1277, allocations: 4.875 kB / 485.7 MB, free: 15.86 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.211e-05/0.1278, allocations: 172.3 kB / 485.9 MB, free: 15.65 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.157e-05/0.1278, allocations: 4.375 kB / 485.9 MB, free: 15.65 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.153e-06/0.1278, allocations: 384 / 485.9 MB, free: 15.65 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.273e-05/0.1279, allocations: 34 kB / 485.9 MB, free: 15.61 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.722e-06/0.1279, allocations: 7.875 kB / 485.9 MB, free: 15.6 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.276e-06/0.1279, allocations: 4 kB / 485.9 MB, free: 15.6 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.418e-06/0.1279, allocations: 0 / 485.9 MB, free: 15.6 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.729e-05/0.1279, allocations: 0 / 485.9 MB, free: 15.6 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001196/0.1281, allocations: 145.7 kB / 486.1 MB, free: 15.41 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.817e-05/0.1281, allocations: 26.55 kB / 486.1 MB, free: 15.37 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.347e-05/0.1281, allocations: 4.859 kB / 486.1 MB, free: 15.36 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.229e-06/0.1281, allocations: 0 / 486.1 MB, free: 15.36 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.372e-05/0.1282, allocations: 68.25 kB / 486.2 MB, free: 15.28 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 8.82e-07/0.1282, allocations: 0 / 486.2 MB, free: 15.28 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001645/0.1284, allocations: 63.41 kB / 486.2 MB, free: 15.21 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.123e-05/0.1284, allocations: 85.05 kB / 486.3 MB, free: 15.11 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.722e-05/0.1285, allocations: 89.86 kB / 486.4 MB, free: 15.01 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.903e-05/0.1285, allocations: 25.7 kB / 486.4 MB, free: 14.98 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.186e-05/0.1285, allocations: 80.14 kB / 486.5 MB, free: 14.89 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.8e-05/0.1285, allocations: 3.984 kB / 486.5 MB, free: 14.89 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.79e-05/0.1286, allocations: 13.72 kB / 486.5 MB, free: 14.87 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.303e-05/0.1287, allocations: 310.8 kB / 486.8 MB, free: 14.56 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.806e-06/0.1287, allocations: 4.125 kB / 486.8 MB, free: 14.55 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.36e-06/0.1287, allocations: 0 / 486.8 MB, free: 14.55 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.392e-05/0.1288, allocations: 64.27 kB / 486.9 MB, free: 14.48 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.1288, allocations: 0 / 486.9 MB, free: 14.48 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.771e-05/0.1288, allocations: 63.39 kB / 487 MB, free: 14.4 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.101e-05/0.1289, allocations: 33.64 kB / 487 MB, free: 14.36 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.1289, allocations: 4 kB / 487 MB, free: 14.36 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.201e-05/0.1289, allocations: 3.938 kB / 487 MB, free: 14.36 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.032e-06/0.1289, allocations: 4.094 kB / 487 MB, free: 14.35 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.559e-06/0.1289, allocations: 0 / 487 MB, free: 14.35 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.595e-05/0.1289, allocations: 4 kB / 487 MB, free: 14.35 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.821e-06/0.129, allocations: 0 / 487 MB, free: 14.35 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 7.969e-05/0.129, allocations: 135.5 kB / 487.2 MB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.252e-05/0.1291, allocations: 11.92 kB / 487.2 MB, free: 14.19 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.764e-06/0.1291, allocations: 3.125 kB / 487.2 MB, free: 14.19 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-06/0.1291, allocations: 0 / 487.2 MB, free: 14.19 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.316e-06/0.1291, allocations: 0 / 487.2 MB, free: 14.19 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.1291, allocations: 4 kB / 487.2 MB, free: 14.18 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.667e-05/0.1292, allocations: 149.6 kB / 487.3 MB, free: 13.99 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.1292, allocations: 0 / 487.3 MB, free: 13.99 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.22e-07/0.1292, allocations: 0 / 487.3 MB, free: 13.99 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.067e-06/0.1292, allocations: 7.922 kB / 487.3 MB, free: 13.98 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.881e-06/0.1292, allocations: 0 / 487.3 MB, free: 13.98 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.1292, allocations: 0 / 487.3 MB, free: 13.98 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/0.1292, allocations: 7.938 kB / 487.3 MB, free: 13.97 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.058e-05/0.1293, allocations: 94.69 kB / 487.4 MB, free: 13.86 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.697e-05/0.1294, allocations: 81.09 kB / 487.5 MB, free: 13.76 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.382e-05/0.1294, allocations: 7.938 kB / 487.5 MB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.257e-06/0.1294, allocations: 0 / 487.5 MB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.698e-06/0.1294, allocations: 0 / 487.5 MB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.725e-06/0.1294, allocations: 0 / 487.5 MB, free: 13.75 MB / 366.1 MB Notification: Performance of sorting global known variables: time 2.368e-05/0.1295, allocations: 75.28 kB / 487.6 MB, free: 13.68 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1295, allocations: 0 / 487.6 MB, free: 13.68 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000471/0.1299, allocations: 156 kB / 487.7 MB, free: 13.52 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.0007195/0.1307, allocations: 389.1 kB / 488.1 MB, free: 13.14 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 8.659e-05/0.1308, allocations: 59.41 kB / 488.2 MB, free: 13.07 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.1308, allocations: 0 / 488.2 MB, free: 13.07 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.098e-05/0.1308, allocations: 55.41 kB / 488.2 MB, free: 13 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000121/0.1309, allocations: 6.188 kB / 488.2 MB, free: 13 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001725/0.1311, allocations: 112.3 kB / 488.3 MB, free: 12.85 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002186/0.1313, allocations: 0.6692 MB / 489 MB, free: 12.16 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.051e-05/0.1314, allocations: 11.44 kB / 489 MB, free: 12.15 MB / 366.1 MB Notification: Performance of SimCode: time 3.4e-07/0.1314, allocations: 0 / 489 MB, free: 12.15 MB / 366.1 MB Notification: Performance of Templates: time 0.007185/0.1386, allocations: 3.901 MB / 492.9 MB, free: 8.242 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