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.00107/0.00107, allocations: 119.9 kB / 18.42 MB, free: 4.688 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001099/0.001099, allocations: 203.5 kB / 19.36 MB, free: 3.746 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.34/1.34, allocations: 227.4 MB / 247.5 MB, free: 10.39 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2259/0.2259, allocations: 46.1 MB / 344.9 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0013/0.0013, allocations: 75.88 kB / 419 MB, free: 19.04 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1294/0.1307, allocations: 62.44 MB / 481.4 MB, free: 4.559 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.002136/0.1329, allocations: 481.8 kB / 481.9 MB, free: 4.09 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003921/0.1368, allocations: 2.403 MB / 484.3 MB, free: 1.668 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.771e-05/0.1369, allocations: 0 / 484.3 MB, free: 1.668 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.18e-05/0.1369, allocations: 0 / 484.3 MB, free: 1.668 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.312e-06/0.1369, allocations: 0 / 484.3 MB, free: 1.668 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.002944/0.1399, allocations: 1.156 MB / 485.5 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.43e-05/0.1399, allocations: 3.984 kB / 485.5 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.516e-05/0.14, allocations: 0 / 485.5 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.448e-05/0.14, allocations: 0 / 485.5 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.103e-05/0.14, allocations: 4 kB / 485.5 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.155e-06/0.14, allocations: 0 / 485.5 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001509/0.1416, allocations: 1.034 MB / 486.5 MB, free: 15.47 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.777e-06/0.1416, allocations: 0 / 486.5 MB, free: 15.47 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 2.299e-05/0.1416, allocations: 0 / 486.5 MB, free: 15.47 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005336/0.1422, allocations: 459.3 kB / 487 MB, free: 15.02 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.1422, allocations: 0 / 487 MB, free: 15.02 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1422, allocations: 3.938 kB / 487 MB, free: 15.02 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.215e-06/0.1422, allocations: 0 / 487 MB, free: 15.02 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.0004299/0.1426, allocations: 437.2 kB / 487.4 MB, free: 14.54 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.973e-05/0.1427, allocations: 8.031 kB / 487.4 MB, free: 14.53 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.901e-05/0.1427, allocations: 4.938 kB / 487.4 MB, free: 14.52 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000103/0.1428, allocations: 168.3 kB / 487.6 MB, free: 14.32 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.243e-05/0.1428, allocations: 384 / 487.6 MB, free: 14.32 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.488e-06/0.1429, allocations: 4.359 kB / 487.6 MB, free: 14.32 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001012/0.143, allocations: 46 kB / 487.6 MB, free: 14.27 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.622e-06/0.143, allocations: 0 / 487.6 MB, free: 14.27 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.647e-06/0.143, allocations: 0 / 487.6 MB, free: 14.27 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.68e-06/0.143, allocations: 0 / 487.6 MB, free: 14.27 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.006e-05/0.143, allocations: 3.938 kB / 487.6 MB, free: 14.26 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000126/0.1432, allocations: 145.7 kB / 487.8 MB, free: 14.07 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.905e-05/0.1432, allocations: 18.56 kB / 487.8 MB, free: 14.04 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.954e-05/0.1432, allocations: 8.859 kB / 487.8 MB, free: 14.03 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.278e-06/0.1432, allocations: 96 / 487.8 MB, free: 14.03 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.426e-05/0.1433, allocations: 68.2 kB / 487.9 MB, free: 13.95 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 7.82e-07/0.1433, allocations: 0 / 487.9 MB, free: 13.95 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001743/0.1435, allocations: 63.34 kB / 487.9 MB, free: 13.88 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.955e-05/0.1435, allocations: 81.09 kB / 488 MB, free: 13.78 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.688e-05/0.1436, allocations: 89.86 kB / 488.1 MB, free: 13.68 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.163e-05/0.1436, allocations: 25.7 kB / 488.1 MB, free: 13.65 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.489e-05/0.1436, allocations: 84.27 kB / 488.2 MB, free: 13.56 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.962e-05/0.1437, allocations: 4 kB / 488.2 MB, free: 13.56 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.156e-05/0.1437, allocations: 13.72 kB / 488.2 MB, free: 13.54 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.779e-05/0.1438, allocations: 310.8 kB / 488.5 MB, free: 13.23 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.999e-06/0.1438, allocations: 0 / 488.5 MB, free: 13.23 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.003e-06/0.1438, allocations: 4 kB / 488.5 MB, free: 13.22 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.289e-05/0.1439, allocations: 56.27 kB / 488.6 MB, free: 13.15 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.1439, allocations: 8.062 kB / 488.6 MB, free: 13.14 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.038e-05/0.144, allocations: 67.33 kB / 488.7 MB, free: 13.07 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.535e-05/0.144, allocations: 37.64 kB / 488.7 MB, free: 13.02 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-06/0.144, allocations: 0 / 488.7 MB, free: 13.02 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.504e-05/0.144, allocations: 0 / 488.7 MB, free: 13.02 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.064e-06/0.144, allocations: 4 kB / 488.7 MB, free: 13.02 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.36e-06/0.1441, allocations: 0 / 488.7 MB, free: 13.02 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.434e-05/0.1441, allocations: 0 / 488.7 MB, free: 13.02 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.085e-06/0.1441, allocations: 4 kB / 488.7 MB, free: 13.02 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.965e-05/0.1442, allocations: 139.6 kB / 488.8 MB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.909e-06/0.1442, allocations: 3.938 kB / 488.8 MB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.604e-06/0.1442, allocations: 7.062 kB / 488.8 MB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.384e-06/0.1442, allocations: 7.938 kB / 488.9 MB, free: 12.85 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/0.1442, allocations: 0 / 488.9 MB, free: 12.85 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.854e-06/0.1442, allocations: 0 / 488.9 MB, free: 12.85 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.57e-05/0.1443, allocations: 149.7 kB / 489 MB, free: 12.65 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.12e-07/0.1443, allocations: 0 / 489 MB, free: 12.65 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.11e-07/0.1443, allocations: 0 / 489 MB, free: 12.65 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.986e-06/0.1443, allocations: 3.938 kB / 489 MB, free: 12.65 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.536e-06/0.1443, allocations: 8 kB / 489 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.41e-07/0.1444, allocations: 0 / 489 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.1444, allocations: 0 / 489 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.274e-05/0.1445, allocations: 94.77 kB / 489.1 MB, free: 12.52 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.606e-05/0.1445, allocations: 81.02 kB / 489.2 MB, free: 12.43 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.476e-05/0.1445, allocations: 3.938 kB / 489.2 MB, free: 12.42 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.646e-06/0.1445, allocations: 0 / 489.2 MB, free: 12.42 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.859e-06/0.1445, allocations: 0 / 489.2 MB, free: 12.42 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.747e-06/0.1446, allocations: 8.031 kB / 489.2 MB, free: 12.41 MB / 366.1 MB Notification: Performance of sorting global known variables: time 2.628e-05/0.1446, allocations: 75.28 kB / 489.3 MB, free: 12.34 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1446, allocations: 0 / 489.3 MB, free: 12.34 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004031/0.145, allocations: 148 kB / 489.4 MB, free: 12.2 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.0006422/0.1457, allocations: 389 kB / 489.8 MB, free: 11.81 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 8.83e-05/0.1457, allocations: 55.41 kB / 489.8 MB, free: 11.74 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.1458, allocations: 0 / 489.8 MB, free: 11.74 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.34e-05/0.1458, allocations: 63.33 kB / 489.9 MB, free: 11.67 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001197/0.1459, allocations: 4 kB / 489.9 MB, free: 11.66 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001618/0.1461, allocations: 85 kB / 490 MB, free: 11.55 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002274/0.1463, allocations: 0.6729 MB / 490.7 MB, free: 10.86 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.24e-06/0.1463, allocations: 0 / 490.7 MB, free: 10.86 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.011e-05/0.1464, allocations: 7.438 kB / 490.7 MB, free: 10.85 MB / 366.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1464, allocations: 0 / 490.7 MB, free: 10.85 MB / 366.1 MB Notification: Performance of Templates: time 0.007411/0.1538, allocations: 4.61 MB / 495.3 MB, free: 6.238 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 -s cvode -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