Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.ComplexMath.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions") translateModel(ModelicaTest.ComplexMath.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00116/0.00116, allocations: 110.1 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001178/0.001178, allocations: 199.3 kB / 19.23 MB, free: 3.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.324/1.324, allocations: 222.9 MB / 242.9 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2078/0.2078, allocations: 44.17 MB / 337.3 MB, free: 2.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001521/0.001521, allocations: 61.12 kB / 409.1 MB, free: 27.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1183/0.1198, allocations: 60.83 MB / 469.9 MB, free: 14.39 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.002006/0.1219, allocations: 471.1 kB / 470.4 MB, free: 13.93 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003525/0.1254, allocations: 2.29 MB / 472.7 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.715e-05/0.1255, allocations: 0 / 472.7 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.102e-05/0.1255, allocations: 0 / 472.7 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.292e-06/0.1255, allocations: 0 / 472.7 MB, free: 11.62 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/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.002869/0.1284, allocations: 1.12 MB / 473.8 MB, free: 10.5 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.171e-05/0.1285, allocations: 7.938 kB / 473.8 MB, free: 10.49 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.463e-05/0.1285, allocations: 3.984 kB / 473.8 MB, free: 10.48 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.536e-05/0.1286, allocations: 0 / 473.8 MB, free: 10.48 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.163e-05/0.1286, allocations: 4 kB / 473.8 MB, free: 10.48 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.091e-06/0.1286, allocations: 0 / 473.8 MB, free: 10.48 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00169/0.1303, allocations: 0.9638 MB / 474.8 MB, free: 9.516 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.428e-06/0.1303, allocations: 4 kB / 474.8 MB, free: 9.512 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.092e-05/0.1304, allocations: 0 / 474.8 MB, free: 9.512 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007442/0.1311, allocations: 423.4 kB / 475.2 MB, free: 9.098 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.1311, allocations: 0 / 475.2 MB, free: 9.098 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.1311, allocations: 0 / 475.2 MB, free: 9.098 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.911e-06/0.1311, allocations: 0 / 475.2 MB, free: 9.098 MB / 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.0005038/0.1316, allocations: 425.2 kB / 475.6 MB, free: 8.629 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.075e-05/0.1317, allocations: 15.97 kB / 475.6 MB, free: 8.613 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.82e-05/0.1317, allocations: 0.9375 kB / 475.6 MB, free: 8.613 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001054/0.1319, allocations: 164.4 kB / 475.8 MB, free: 8.414 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.072e-05/0.1319, allocations: 4.375 kB / 475.8 MB, free: 8.41 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.212e-05/0.1319, allocations: 384 / 475.8 MB, free: 8.41 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.619e-05/0.132, allocations: 30.02 kB / 475.8 MB, free: 8.375 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.803e-06/0.132, allocations: 0 / 475.8 MB, free: 8.375 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.866e-06/0.132, allocations: 4 kB / 475.8 MB, free: 8.371 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.268e-06/0.132, allocations: 3.938 kB / 475.8 MB, free: 8.367 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.934e-05/0.1321, allocations: 0 / 475.8 MB, free: 8.367 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001487/0.1322, allocations: 153.7 kB / 476 MB, free: 8.168 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.444e-05/0.1323, allocations: 22.55 kB / 476 MB, free: 8.137 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.822e-05/0.1323, allocations: 4.859 kB / 476 MB, free: 8.129 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.294e-06/0.1323, allocations: 3.984 kB / 476 MB, free: 8.125 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.629e-05/0.1324, allocations: 64.27 kB / 476.1 MB, free: 8.047 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.002e-06/0.1324, allocations: 0 / 476.1 MB, free: 8.047 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002156/0.1326, allocations: 71.39 kB / 476.1 MB, free: 7.965 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.53e-05/0.1327, allocations: 81.05 kB / 476.2 MB, free: 7.867 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.403e-05/0.1327, allocations: 89.86 kB / 476.3 MB, free: 7.77 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.648e-05/0.1327, allocations: 25.7 kB / 476.3 MB, free: 7.738 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.096e-05/0.1328, allocations: 80.14 kB / 476.4 MB, free: 7.656 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.68e-05/0.1328, allocations: 0 / 476.4 MB, free: 7.656 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.306e-05/0.1329, allocations: 13.72 kB / 476.4 MB, free: 7.637 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001162/0.133, allocations: 310.8 kB / 476.7 MB, free: 7.324 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.122e-05/0.133, allocations: 8.125 kB / 476.7 MB, free: 7.316 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.835e-06/0.133, allocations: 3.984 kB / 476.7 MB, free: 7.312 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.569e-05/0.1331, allocations: 60.27 kB / 476.8 MB, free: 7.238 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.1331, allocations: 0 / 476.8 MB, free: 7.238 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.101e-05/0.1332, allocations: 59.41 kB / 476.8 MB, free: 7.168 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.226e-05/0.1332, allocations: 37.58 kB / 476.9 MB, free: 7.125 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.219e-06/0.1332, allocations: 7.938 kB / 476.9 MB, free: 7.117 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.589e-05/0.1333, allocations: 3.984 kB / 476.9 MB, free: 7.113 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.012e-06/0.1333, allocations: 4.094 kB / 476.9 MB, free: 7.109 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.773e-06/0.1333, allocations: 3.984 kB / 476.9 MB, free: 7.105 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.502e-05/0.1333, allocations: 288 / 476.9 MB, free: 7.105 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.131e-06/0.1333, allocations: 0 / 476.9 MB, free: 7.105 MB / 350.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 8.538e-05/0.1334, allocations: 139.5 kB / 477 MB, free: 6.953 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.228e-05/0.1334, allocations: 7.938 kB / 477 MB, free: 6.945 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.064e-05/0.1334, allocations: 7.078 kB / 477.1 MB, free: 6.938 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-06/0.1334, allocations: 0 / 477.1 MB, free: 6.938 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.297e-06/0.1334, allocations: 0 / 477.1 MB, free: 6.938 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.396e-06/0.1335, allocations: 8 kB / 477.1 MB, free: 6.93 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.668e-05/0.1336, allocations: 149.6 kB / 477.2 MB, free: 6.734 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.906e-06/0.1336, allocations: 0 / 477.2 MB, free: 6.734 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.71e-07/0.1336, allocations: 3.938 kB / 477.2 MB, free: 6.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.326e-06/0.1336, allocations: 3.938 kB / 477.2 MB, free: 6.727 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.992e-06/0.1336, allocations: 0 / 477.2 MB, free: 6.727 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.497e-06/0.1336, allocations: 4 kB / 477.2 MB, free: 6.723 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.1336, allocations: 0 / 477.2 MB, free: 6.723 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.518e-05/0.1337, allocations: 98.67 kB / 477.3 MB, free: 6.602 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.748e-05/0.1337, allocations: 77.11 kB / 477.4 MB, free: 6.508 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.388e-05/0.1338, allocations: 7.938 kB / 477.4 MB, free: 6.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.648e-06/0.1338, allocations: 0 / 477.4 MB, free: 6.5 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.133e-05/0.1338, allocations: 0 / 477.4 MB, free: 6.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.966e-06/0.1338, allocations: 0 / 477.4 MB, free: 6.5 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.644e-05/0.1338, allocations: 79.27 kB / 477.5 MB, free: 6.422 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1338, allocations: 0 / 477.5 MB, free: 6.422 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004541/0.1343, allocations: 140 kB / 477.6 MB, free: 6.285 MB / 350.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.0007472/0.1351, allocations: 363.9 kB / 478 MB, free: 5.93 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001034/0.1352, allocations: 67.39 kB / 478 MB, free: 5.852 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.909e-06/0.1352, allocations: 11.94 kB / 478 MB, free: 5.84 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.027e-05/0.1352, allocations: 55.41 kB / 478.1 MB, free: 5.773 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001262/0.1354, allocations: 2.5 kB / 478.1 MB, free: 5.773 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002059/0.1356, allocations: 110.6 kB / 478.2 MB, free: 5.633 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000215/0.1358, allocations: 0.669 MB / 478.9 MB, free: 4.938 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.453e-05/0.1358, allocations: 11.44 kB / 478.9 MB, free: 4.926 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1358, allocations: 0 / 478.9 MB, free: 4.926 MB / 350.1 MB Notification: Performance of Templates: time 0.006695/0.1425, allocations: 3.624 MB / 482.5 MB, free: 1.297 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.sim & ./ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches