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.001304/0.001304, allocations: 106.3 kB / 17.98 MB, free: 5.402 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.001378/0.001378, allocations: 193.3 kB / 18.91 MB, free: 4.477 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.335/1.335, allocations: 222.9 MB / 242.6 MB, free: 13.73 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.2053/0.2053, allocations: 44.17 MB / 336.9 MB, free: 2.73 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001398/0.001398, allocations: 64.27 kB / 408.5 MB, free: 27.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1125/0.114, allocations: 60.83 MB / 469.4 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.001864/0.1159, allocations: 0.5364 MB / 469.9 MB, free: 14.2 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003269/0.1192, allocations: 2.267 MB / 472.2 MB, free: 11.91 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.367e-05/0.1192, allocations: 0 / 472.2 MB, free: 11.91 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.948e-05/0.1192, allocations: 0 / 472.2 MB, free: 11.91 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.33e-06/0.1193, allocations: 0 / 472.2 MB, free: 11.91 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.002719/0.122, allocations: 1.047 MB / 473.2 MB, free: 10.86 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.552e-05/0.1221, allocations: 8 kB / 473.2 MB, free: 10.86 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.302e-05/0.1221, allocations: 0 / 473.2 MB, free: 10.86 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.357e-05/0.1221, allocations: 0 / 473.2 MB, free: 10.86 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.797e-05/0.1222, allocations: 0 / 473.2 MB, free: 10.86 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.07e-06/0.1222, allocations: 4 kB / 473.2 MB, free: 10.85 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001529/0.1237, allocations: 0.9677 MB / 474.2 MB, free: 9.883 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.016e-06/0.1237, allocations: 8 kB / 474.2 MB, free: 9.875 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.867e-05/0.1238, allocations: 0 / 474.2 MB, free: 9.875 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004722/0.1242, allocations: 267.5 kB / 474.5 MB, free: 9.613 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.746e-06/0.1242, allocations: 0 / 474.5 MB, free: 9.613 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.21e-07/0.1243, allocations: 0 / 474.5 MB, free: 9.613 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.118e-06/0.1243, allocations: 0 / 474.5 MB, free: 9.613 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.0004553/0.1247, allocations: 425.2 kB / 474.9 MB, free: 9.145 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.969e-05/0.1248, allocations: 8.031 kB / 474.9 MB, free: 9.137 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.916e-05/0.1248, allocations: 4.938 kB / 474.9 MB, free: 9.133 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.792e-05/0.1249, allocations: 160.4 kB / 475 MB, free: 8.938 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.215e-05/0.1249, allocations: 8.312 kB / 475.1 MB, free: 8.93 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.594e-06/0.1249, allocations: 384 / 475.1 MB, free: 8.93 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.957e-05/0.125, allocations: 38 kB / 475.1 MB, free: 8.887 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.901e-06/0.125, allocations: 0 / 475.1 MB, free: 8.887 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.145e-06/0.125, allocations: 0 / 475.1 MB, free: 8.887 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.447e-06/0.1251, allocations: 0 / 475.1 MB, free: 8.887 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.854e-05/0.1251, allocations: 0 / 475.1 MB, free: 8.887 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001227/0.1252, allocations: 153.6 kB / 475.2 MB, free: 8.688 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.917e-05/0.1252, allocations: 22.52 kB / 475.3 MB, free: 8.656 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.423e-05/0.1253, allocations: 4.859 kB / 475.3 MB, free: 8.648 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.656e-06/0.1253, allocations: 4.094 kB / 475.3 MB, free: 8.645 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.287e-05/0.1253, allocations: 68.19 kB / 475.3 MB, free: 8.562 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 9.12e-07/0.1253, allocations: 0 / 475.3 MB, free: 8.562 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001551/0.1255, allocations: 63.41 kB / 475.4 MB, free: 8.488 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.888e-05/0.1256, allocations: 77.11 kB / 475.5 MB, free: 8.395 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.534e-05/0.1256, allocations: 93.98 kB / 475.6 MB, free: 8.293 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.185e-05/0.1256, allocations: 25.7 kB / 475.6 MB, free: 8.262 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.597e-05/0.1257, allocations: 80.14 kB / 475.7 MB, free: 8.18 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.858e-05/0.1257, allocations: 4 kB / 475.7 MB, free: 8.176 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.642e-05/0.1257, allocations: 13.7 kB / 475.7 MB, free: 8.156 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001125/0.1258, allocations: 314.8 kB / 476 MB, free: 7.84 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.658e-06/0.1259, allocations: 7.875 kB / 476 MB, free: 7.832 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.571e-06/0.1259, allocations: 4 kB / 476 MB, free: 7.828 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.636e-05/0.1259, allocations: 64.33 kB / 476.1 MB, free: 7.75 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.1259, allocations: 0 / 476.1 MB, free: 7.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.621e-05/0.126, allocations: 59.39 kB / 476.1 MB, free: 7.68 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.523e-05/0.126, allocations: 37.64 kB / 476.2 MB, free: 7.637 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.1261, allocations: 0 / 476.2 MB, free: 7.637 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.051e-05/0.1261, allocations: 0 / 476.2 MB, free: 7.637 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.61e-07/0.1261, allocations: 0 / 476.2 MB, free: 7.637 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.659e-06/0.1261, allocations: 0 / 476.2 MB, free: 7.637 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.345e-05/0.1261, allocations: 288 / 476.2 MB, free: 7.637 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.653e-05/0.1261, allocations: 8 kB / 476.2 MB, free: 7.629 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 7.732e-05/0.1262, allocations: 139.5 kB / 476.3 MB, free: 7.477 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.107e-05/0.1262, allocations: 7.922 kB / 476.3 MB, free: 7.469 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.257e-05/0.1262, allocations: 11.06 kB / 476.3 MB, free: 7.457 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.763e-06/0.1263, allocations: 4 kB / 476.3 MB, free: 7.453 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.636e-06/0.1263, allocations: 0 / 476.3 MB, free: 7.453 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.923e-06/0.1263, allocations: 0 / 476.3 MB, free: 7.453 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.026e-05/0.1264, allocations: 145.6 kB / 476.5 MB, free: 7.262 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.1264, allocations: 0 / 476.5 MB, free: 7.262 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.01e-07/0.1264, allocations: 0 / 476.5 MB, free: 7.262 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.599e-06/0.1264, allocations: 7.938 kB / 476.5 MB, free: 7.254 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.026e-06/0.1264, allocations: 15.91 kB / 476.5 MB, free: 7.238 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.1264, allocations: 0 / 476.5 MB, free: 7.238 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.1264, allocations: 0 / 476.5 MB, free: 7.238 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.788e-05/0.1265, allocations: 90.75 kB / 476.6 MB, free: 7.125 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.283e-05/0.1266, allocations: 81.09 kB / 476.7 MB, free: 7.027 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.507e-05/0.1266, allocations: 3.938 kB / 476.7 MB, free: 7.023 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.007e-05/0.1266, allocations: 4.031 kB / 476.7 MB, free: 7.02 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.344e-05/0.1266, allocations: 0 / 476.7 MB, free: 7.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.342e-06/0.1266, allocations: 11.94 kB / 476.7 MB, free: 7.008 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.465e-05/0.1267, allocations: 75.28 kB / 476.8 MB, free: 6.934 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1267, allocations: 0 / 476.8 MB, free: 6.934 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004618/0.1271, allocations: 136 kB / 476.9 MB, free: 6.801 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.0007479/0.1279, allocations: 371.6 kB / 477.3 MB, free: 6.438 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.893e-05/0.128, allocations: 59.41 kB / 477.3 MB, free: 6.367 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.083e-06/0.128, allocations: 0 / 477.3 MB, free: 6.367 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.298e-05/0.128, allocations: 55.41 kB / 477.4 MB, free: 6.301 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001272/0.1282, allocations: 4.125 kB / 477.4 MB, free: 6.297 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001875/0.1284, allocations: 102.6 kB / 477.5 MB, free: 6.164 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002448/0.1286, allocations: 0.669 MB / 478.1 MB, free: 5.469 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.606e-05/0.1286, allocations: 11.44 kB / 478.2 MB, free: 5.457 MB / 350.1 MB Notification: Performance of SimCode: time 3.5e-07/0.1286, allocations: 0 / 478.2 MB, free: 5.457 MB / 350.1 MB Notification: Performance of Templates: time 0.006458/0.1351, allocations: 3.624 MB / 481.8 MB, free: 1.828 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/ComplexMath/TestComplexOperations/TestComplexOperations.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches