Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.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.TestComplexOperations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations") translateModel(ModelicaTest.ComplexMath.TestComplexOperations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001319/0.001319, allocations: 108.1 kB / 17.21 MB, free: 6.289 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.001517/0.001517, allocations: 194 kB / 18.12 MB, free: 5.383 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.343/1.343, allocations: 222.9 MB / 241.8 MB, free: 15.51 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.2262/0.2262, allocations: 44.17 MB / 336.1 MB, free: 2.961 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001277/0.001277, allocations: 69.3 kB / 407.7 MB, free: 27.74 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1221/0.1234, allocations: 60.82 MB / 468.5 MB, free: 14.89 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.001632/0.125, allocations: 0.5214 MB / 469 MB, free: 14.36 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003339/0.1284, allocations: 2.345 MB / 471.4 MB, free: 12 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.117e-05/0.1284, allocations: 0 / 471.4 MB, free: 12 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.669e-05/0.1285, allocations: 0 / 471.4 MB, free: 12 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.716e-06/0.1285, allocations: 0 / 471.4 MB, free: 12 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.002479/0.131, allocations: 1.04 MB / 472.4 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.1e-05/0.131, allocations: 4 kB / 472.4 MB, free: 10.95 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.112e-05/0.1311, allocations: 3.984 kB / 472.4 MB, free: 10.95 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.468e-05/0.1311, allocations: 4 kB / 472.4 MB, free: 10.95 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.802e-05/0.1311, allocations: 0 / 472.4 MB, free: 10.95 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.35e-06/0.1311, allocations: 0 / 472.4 MB, free: 10.95 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001584/0.1327, allocations: 0.9639 MB / 473.4 MB, free: 9.98 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.785e-06/0.1327, allocations: 0 / 473.4 MB, free: 9.98 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.83e-05/0.1327, allocations: 0 / 473.4 MB, free: 9.98 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006756/0.1334, allocations: 419.3 kB / 473.8 MB, free: 9.57 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.1335, allocations: 0 / 473.8 MB, free: 9.57 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1335, allocations: 0 / 473.8 MB, free: 9.57 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.987e-06/0.1335, allocations: 0 / 473.8 MB, free: 9.57 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.0004977/0.134, allocations: 425.2 kB / 474.2 MB, free: 9.102 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.232e-05/0.134, allocations: 12.03 kB / 474.2 MB, free: 9.09 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.406e-05/0.1341, allocations: 0.9375 kB / 474.2 MB, free: 9.09 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001066/0.1342, allocations: 176.3 kB / 474.4 MB, free: 8.879 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.133e-05/0.1342, allocations: 384 / 474.4 MB, free: 8.879 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.213e-06/0.1342, allocations: 384 / 474.4 MB, free: 8.879 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.945e-05/0.1343, allocations: 38.02 kB / 474.4 MB, free: 8.836 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.683e-06/0.1343, allocations: 0 / 474.4 MB, free: 8.836 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.161e-05/0.1343, allocations: 0 / 474.4 MB, free: 8.836 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.118e-06/0.1343, allocations: 7.875 kB / 474.4 MB, free: 8.828 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.635e-05/0.1344, allocations: 0 / 474.4 MB, free: 8.828 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001188/0.1345, allocations: 149.7 kB / 474.6 MB, free: 8.633 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.211e-05/0.1345, allocations: 18.58 kB / 474.6 MB, free: 8.605 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.561e-05/0.1346, allocations: 8.953 kB / 474.6 MB, free: 8.594 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.162e-06/0.1346, allocations: 0 / 474.6 MB, free: 8.594 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.79e-05/0.1346, allocations: 64.2 kB / 474.7 MB, free: 8.516 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.032e-06/0.1346, allocations: 0 / 474.7 MB, free: 8.516 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001549/0.1348, allocations: 67.33 kB / 474.8 MB, free: 8.438 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.164e-05/0.1348, allocations: 77.23 kB / 474.8 MB, free: 8.344 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.83e-05/0.1349, allocations: 93.86 kB / 474.9 MB, free: 8.242 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.072e-05/0.1349, allocations: 25.7 kB / 474.9 MB, free: 8.211 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.177e-05/0.1349, allocations: 80.14 kB / 475 MB, free: 8.129 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.416e-05/0.135, allocations: 8 kB / 475 MB, free: 8.121 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.766e-05/0.135, allocations: 9.719 kB / 475 MB, free: 8.105 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000103/0.1351, allocations: 310.8 kB / 475.3 MB, free: 7.793 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.281e-05/0.1351, allocations: 4 kB / 475.3 MB, free: 7.789 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.062e-06/0.1351, allocations: 0 / 475.3 MB, free: 7.789 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.689e-05/0.1352, allocations: 72.25 kB / 475.4 MB, free: 7.703 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.1352, allocations: 0 / 475.4 MB, free: 7.703 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.247e-05/0.1353, allocations: 59.41 kB / 475.5 MB, free: 7.633 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.18e-05/0.1353, allocations: 37.64 kB / 475.5 MB, free: 7.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.638e-06/0.1353, allocations: 0 / 475.5 MB, free: 7.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.111e-05/0.1353, allocations: 0 / 475.5 MB, free: 7.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.042e-06/0.1353, allocations: 0 / 475.5 MB, free: 7.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.202e-06/0.1354, allocations: 3.984 kB / 475.5 MB, free: 7.586 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.579e-05/0.1354, allocations: 288 / 475.5 MB, free: 7.586 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.794e-06/0.1354, allocations: 8.031 kB / 475.5 MB, free: 7.578 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.139e-05/0.1355, allocations: 131.5 kB / 475.7 MB, free: 7.434 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.009e-05/0.1355, allocations: 3.938 kB / 475.7 MB, free: 7.43 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.037e-05/0.1355, allocations: 11.08 kB / 475.7 MB, free: 7.418 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.1355, allocations: 0 / 475.7 MB, free: 7.418 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.1355, allocations: 0 / 475.7 MB, free: 7.418 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.833e-06/0.1355, allocations: 0 / 475.7 MB, free: 7.418 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001013/0.1356, allocations: 153.6 kB / 475.8 MB, free: 7.219 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.414e-06/0.1357, allocations: 0 / 475.8 MB, free: 7.219 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.92e-07/0.1357, allocations: 11.88 kB / 475.8 MB, free: 7.207 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.549e-06/0.1357, allocations: 7.938 kB / 475.8 MB, free: 7.199 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.722e-06/0.1357, allocations: 0 / 475.8 MB, free: 7.199 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.514e-05/0.1357, allocations: 4 kB / 475.8 MB, free: 7.195 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.1357, allocations: 3.938 kB / 475.8 MB, free: 7.191 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.26e-05/0.1358, allocations: 94.73 kB / 475.9 MB, free: 7.074 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.135e-05/0.1359, allocations: 81.09 kB / 476 MB, free: 6.977 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.359e-05/0.1359, allocations: 3.938 kB / 476 MB, free: 6.973 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.127e-06/0.1359, allocations: 4.031 kB / 476 MB, free: 6.969 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.508e-05/0.1359, allocations: 0 / 476 MB, free: 6.969 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.056e-06/0.1359, allocations: 4 kB / 476 MB, free: 6.965 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.234e-05/0.136, allocations: 75.28 kB / 476.1 MB, free: 6.891 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.136, allocations: 0 / 476.1 MB, free: 6.891 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005392/0.1365, allocations: 140 kB / 476.2 MB, free: 6.754 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.000852/0.1374, allocations: 380.1 kB / 476.6 MB, free: 6.387 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000118/0.1375, allocations: 63.33 kB / 476.7 MB, free: 6.312 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.1375, allocations: 0 / 476.7 MB, free: 6.312 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.989e-05/0.1376, allocations: 59.47 kB / 476.7 MB, free: 6.242 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001309/0.1377, allocations: 0 / 476.7 MB, free: 6.242 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001877/0.1379, allocations: 74.77 kB / 476.8 MB, free: 6.141 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002538/0.1382, allocations: 0.6731 MB / 477.5 MB, free: 5.441 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.352e-06/0.1382, allocations: 0 / 477.5 MB, free: 5.441 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.277e-05/0.1382, allocations: 11.44 kB / 477.5 MB, free: 5.43 MB / 350.1 MB Notification: Performance of SimCode: time 4.71e-07/0.1382, allocations: 0 / 477.5 MB, free: 5.43 MB / 350.1 MB Notification: Performance of Templates: time 0.008314/0.1465, allocations: 4.275 MB / 481.8 MB, free: 1.152 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.sim & ./ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/ComplexMath/TestComplexOperations/TestComplexOperations.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches