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.0009415/0.0009415, allocations: 97.12 kB / 18.01 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001259/0.001259, allocations: 204.5 kB / 18.93 MB, free: 4.848 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.351/1.351, allocations: 227.7 MB / 247.5 MB, free: 11.39 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2028/0.2028, allocations: 46.19 MB / 345.9 MB, free: 11.39 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002979/0.0002979, allocations: 11.98 kB / 420.2 MB, free: 19.74 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1108/0.1112, allocations: 63.55 MB / 483.7 MB, free: 4.172 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.0005511/0.1117, allocations: 193.4 kB / 483.9 MB, free: 3.98 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003758/0.1155, allocations: 2.436 MB / 486.3 MB, free: 1.527 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.185e-05/0.1156, allocations: 0 / 486.3 MB, free: 1.527 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.388e-05/0.1156, allocations: 0 / 486.3 MB, free: 1.527 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.238e-06/0.1156, allocations: 3.938 kB / 486.3 MB, free: 1.523 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.002652/0.1182, allocations: 1.048 MB / 487.4 MB, free: 488 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.802e-05/0.1183, allocations: 0 / 487.4 MB, free: 488 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.653e-05/0.1183, allocations: 4 kB / 487.4 MB, free: 484 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.789e-05/0.1184, allocations: 0 / 487.4 MB, free: 484 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.871e-05/0.1184, allocations: 3.984 kB / 487.4 MB, free: 480 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.506e-06/0.1184, allocations: 4 kB / 487.4 MB, free: 476 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001858/0.1203, allocations: 1.003 MB / 488.4 MB, free: 15.46 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.085e-06/0.1203, allocations: 0 / 488.4 MB, free: 15.46 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 4.212e-05/0.1204, allocations: 29.7 kB / 488.4 MB, free: 15.43 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005322/0.1209, allocations: 283.5 kB / 488.7 MB, free: 15.15 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.036e-06/0.1209, allocations: 0 / 488.7 MB, free: 15.15 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1209, allocations: 0 / 488.7 MB, free: 15.15 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.787e-06/0.1209, allocations: 0 / 488.7 MB, free: 15.15 MB / 366.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.0004381/0.1214, allocations: 437.5 kB / 489.1 MB, free: 14.67 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.046e-05/0.1214, allocations: 12.88 kB / 489.2 MB, free: 14.66 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.88e-05/0.1215, allocations: 0.9375 kB / 489.2 MB, free: 14.66 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.895e-05/0.1216, allocations: 164.3 kB / 489.3 MB, free: 14.46 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.227e-05/0.1216, allocations: 384 / 489.3 MB, free: 14.46 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.504e-06/0.1216, allocations: 384 / 489.3 MB, free: 14.46 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001156/0.1217, allocations: 41.94 kB / 489.4 MB, free: 14.41 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.759e-06/0.1217, allocations: 0 / 489.4 MB, free: 14.41 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.23e-05/0.1217, allocations: 0 / 489.4 MB, free: 14.41 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.142e-06/0.1218, allocations: 0 / 489.4 MB, free: 14.41 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.086e-05/0.1218, allocations: 4 kB / 489.4 MB, free: 14.41 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000185/0.122, allocations: 149.7 kB / 489.5 MB, free: 14.21 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.134e-05/0.122, allocations: 14.58 kB / 489.5 MB, free: 14.19 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.299e-05/0.1221, allocations: 8.938 kB / 489.5 MB, free: 14.18 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.574e-06/0.1221, allocations: 7.938 kB / 489.5 MB, free: 14.17 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.083e-05/0.1222, allocations: 60.2 kB / 489.6 MB, free: 14.09 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 1.372e-06/0.1222, allocations: 4 kB / 489.6 MB, free: 14.09 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002363/0.1224, allocations: 63.41 kB / 489.7 MB, free: 14.02 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.453e-05/0.1225, allocations: 85.03 kB / 489.7 MB, free: 13.91 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.552e-05/0.1225, allocations: 89.86 kB / 489.8 MB, free: 13.82 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.223e-05/0.1226, allocations: 25.7 kB / 489.9 MB, free: 13.79 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.046e-05/0.1226, allocations: 80.14 kB / 489.9 MB, free: 13.7 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.221e-05/0.1226, allocations: 4 kB / 489.9 MB, free: 13.7 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.488e-05/0.1227, allocations: 9.719 kB / 490 MB, free: 13.68 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000121/0.1228, allocations: 319 kB / 490.3 MB, free: 13.36 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.777e-06/0.1228, allocations: 0 / 490.3 MB, free: 13.36 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.673e-06/0.1228, allocations: 7.875 kB / 490.3 MB, free: 13.36 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.721e-05/0.1229, allocations: 60.27 kB / 490.3 MB, free: 13.28 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.514e-06/0.1229, allocations: 0 / 490.3 MB, free: 13.28 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.126e-05/0.123, allocations: 63.39 kB / 490.4 MB, free: 13.21 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.288e-05/0.123, allocations: 33.64 kB / 490.4 MB, free: 13.17 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.529e-06/0.123, allocations: 0 / 490.4 MB, free: 13.17 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.165e-05/0.1231, allocations: 4.094 kB / 490.4 MB, free: 13.16 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.051e-06/0.1231, allocations: 4 kB / 490.4 MB, free: 13.16 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.448e-06/0.1231, allocations: 0 / 490.4 MB, free: 13.16 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.579e-05/0.1231, allocations: 0 / 490.4 MB, free: 13.16 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.103e-06/0.1231, allocations: 0 / 490.4 MB, free: 13.16 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 0.0001024/0.1232, allocations: 143.5 kB / 490.6 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.174e-05/0.1232, allocations: 3.938 kB / 490.6 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.057e-05/0.1233, allocations: 7.062 kB / 490.6 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.435e-06/0.1233, allocations: 0 / 490.6 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.1233, allocations: 0 / 490.6 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.424e-06/0.1233, allocations: 4 kB / 490.6 MB, free: 12.99 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001044/0.1234, allocations: 145.7 kB / 490.7 MB, free: 12.8 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/0.1234, allocations: 3.984 kB / 490.7 MB, free: 12.8 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.142e-06/0.1234, allocations: 0 / 490.7 MB, free: 12.8 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.885e-06/0.1234, allocations: 3.938 kB / 490.7 MB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.482e-06/0.1234, allocations: 0 / 490.7 MB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.1234, allocations: 0 / 490.7 MB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.1235, allocations: 4 kB / 490.7 MB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000108/0.1236, allocations: 90.83 kB / 490.8 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.55e-05/0.1236, allocations: 81.02 kB / 490.9 MB, free: 12.58 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.683e-05/0.1237, allocations: 7.938 kB / 490.9 MB, free: 12.57 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.392e-05/0.1237, allocations: 4 kB / 490.9 MB, free: 12.57 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.044e-05/0.1237, allocations: 3.938 kB / 490.9 MB, free: 12.56 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.006e-06/0.1237, allocations: 0 / 490.9 MB, free: 12.56 MB / 366.1 MB Notification: Performance of sorting global known variables: time 2.973e-05/0.1237, allocations: 79.28 kB / 491 MB, free: 12.48 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.064e-06/0.1237, allocations: 0 / 491 MB, free: 12.48 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000522/0.1243, allocations: 159.9 kB / 491.2 MB, free: 12.33 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.0007562/0.125, allocations: 377.1 kB / 491.5 MB, free: 11.95 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 8.979e-05/0.1251, allocations: 63.39 kB / 491.6 MB, free: 11.88 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.1251, allocations: 0 / 491.6 MB, free: 11.88 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.073e-05/0.1252, allocations: 55.41 kB / 491.6 MB, free: 11.81 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000126/0.1253, allocations: 8 kB / 491.7 MB, free: 11.8 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000178/0.1255, allocations: 96.47 kB / 491.7 MB, free: 11.68 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002497/0.1258, allocations: 0.6731 MB / 492.4 MB, free: 10.98 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.309e-05/0.1258, allocations: 11.44 kB / 492.4 MB, free: 10.97 MB / 366.1 MB Notification: Performance of SimCode: time 5.11e-07/0.1258, allocations: 0 / 492.4 MB, free: 10.97 MB / 366.1 MB Notification: Performance of Templates: time 0.006533/0.1323, allocations: 3.905 MB / 496.3 MB, free: 7.059 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