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.001591/0.001591, allocations: 106.1 kB / 18.3 MB, free: 4.887 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.001845/0.001845, allocations: 195.3 kB / 19.23 MB, free: 3.961 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.354/1.354, allocations: 222.9 MB / 242.9 MB, free: 15.22 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.2051/0.2051, allocations: 44.18 MB / 337.3 MB, free: 2.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00138/0.00138, allocations: 57.19 kB / 409.1 MB, free: 27.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.112/0.1134, allocations: 60.82 MB / 469.9 MB, free: 14.4 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.001842/0.1153, allocations: 471.3 kB / 470.4 MB, free: 13.94 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003411/0.1188, allocations: 2.294 MB / 472.7 MB, free: 11.63 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.551e-05/0.1188, allocations: 0 / 472.7 MB, free: 11.63 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.257e-05/0.1188, allocations: 0 / 472.7 MB, free: 11.63 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.779e-06/0.1189, allocations: 0 / 472.7 MB, free: 11.63 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.002934/0.1218, allocations: 1.124 MB / 473.8 MB, free: 10.5 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.123e-05/0.1219, allocations: 7.984 kB / 473.8 MB, free: 10.5 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.964e-05/0.1219, allocations: 0 / 473.8 MB, free: 10.5 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.523e-05/0.1219, allocations: 0 / 473.8 MB, free: 10.5 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.191e-05/0.122, allocations: 3.984 kB / 473.8 MB, free: 10.49 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.543e-06/0.122, allocations: 0 / 473.8 MB, free: 10.49 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001678/0.1237, allocations: 0.9561 MB / 474.8 MB, free: 9.535 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.207e-06/0.1237, allocations: 3.938 kB / 474.8 MB, free: 9.531 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.163e-05/0.1237, allocations: 0 / 474.8 MB, free: 9.531 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008703/0.1246, allocations: 427.4 kB / 475.2 MB, free: 9.113 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.1246, allocations: 0 / 475.2 MB, free: 9.113 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1246, allocations: 0 / 475.2 MB, free: 9.113 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.641e-06/0.1246, allocations: 0 / 475.2 MB, free: 9.113 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.000568/0.1252, allocations: 429.2 kB / 475.6 MB, free: 8.641 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.58e-05/0.1253, allocations: 8.031 kB / 475.6 MB, free: 8.633 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.364e-05/0.1253, allocations: 4.922 kB / 475.6 MB, free: 8.629 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.515e-05/0.1254, allocations: 160.4 kB / 475.8 MB, free: 8.434 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.267e-05/0.1254, allocations: 384 / 475.8 MB, free: 8.434 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.853e-05/0.1255, allocations: 4.375 kB / 475.8 MB, free: 8.43 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.646e-05/0.1256, allocations: 37.95 kB / 475.8 MB, free: 8.387 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.067e-05/0.1256, allocations: 0 / 475.8 MB, free: 8.387 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.909e-06/0.1256, allocations: 3.938 kB / 475.8 MB, free: 8.383 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.049e-06/0.1256, allocations: 0 / 475.8 MB, free: 8.383 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.906e-05/0.1256, allocations: 4 kB / 475.8 MB, free: 8.379 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001429/0.1258, allocations: 149.7 kB / 476 MB, free: 8.184 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.049e-05/0.1258, allocations: 22.55 kB / 476 MB, free: 8.152 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.683e-05/0.1259, allocations: 8.859 kB / 476 MB, free: 8.141 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.063e-05/0.1259, allocations: 0 / 476 MB, free: 8.141 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.688e-05/0.1259, allocations: 64.14 kB / 476.1 MB, free: 8.062 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.273e-06/0.1259, allocations: 0 / 476.1 MB, free: 8.062 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001842/0.1261, allocations: 67.45 kB / 476.1 MB, free: 7.984 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.304e-05/0.1262, allocations: 77.11 kB / 476.2 MB, free: 7.891 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.71e-05/0.1262, allocations: 93.86 kB / 476.3 MB, free: 7.789 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.111e-05/0.1263, allocations: 25.7 kB / 476.3 MB, free: 7.758 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.403e-05/0.1263, allocations: 84.27 kB / 476.4 MB, free: 7.672 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.349e-05/0.1263, allocations: 0 / 476.4 MB, free: 7.672 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.845e-05/0.1264, allocations: 9.719 kB / 476.4 MB, free: 7.656 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001213/0.1265, allocations: 314.8 kB / 476.7 MB, free: 7.34 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.382e-05/0.1265, allocations: 4 kB / 476.7 MB, free: 7.336 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.115e-05/0.1265, allocations: 7.922 kB / 476.7 MB, free: 7.328 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.953e-05/0.1266, allocations: 60.27 kB / 476.8 MB, free: 7.254 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.1266, allocations: 4.062 kB / 476.8 MB, free: 7.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.78e-05/0.1267, allocations: 59.41 kB / 476.8 MB, free: 7.18 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.354e-05/0.1267, allocations: 36.45 kB / 476.9 MB, free: 7.141 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.1267, allocations: 3.984 kB / 476.9 MB, free: 7.137 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.25e-05/0.1268, allocations: 0 / 476.9 MB, free: 7.137 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.002e-06/0.1268, allocations: 0 / 476.9 MB, free: 7.137 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.178e-06/0.1268, allocations: 4 kB / 476.9 MB, free: 7.133 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.823e-05/0.1268, allocations: 288 / 476.9 MB, free: 7.133 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.508e-06/0.1268, allocations: 3.984 kB / 476.9 MB, free: 7.129 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.802e-05/0.1269, allocations: 143.6 kB / 477 MB, free: 6.973 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.036e-05/0.1269, allocations: 3.938 kB / 477 MB, free: 6.969 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.403e-05/0.1269, allocations: 11.08 kB / 477 MB, free: 6.957 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.1269, allocations: 0 / 477 MB, free: 6.957 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.127, allocations: 3.938 kB / 477.1 MB, free: 6.953 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.605e-06/0.127, allocations: 0 / 477.1 MB, free: 6.953 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001044/0.1271, allocations: 157.6 kB / 477.2 MB, free: 6.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.1271, allocations: 3.938 kB / 477.2 MB, free: 6.746 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.82e-07/0.1271, allocations: 0 / 477.2 MB, free: 6.746 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.885e-06/0.1271, allocations: 3.938 kB / 477.2 MB, free: 6.742 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.121e-06/0.1271, allocations: 4 kB / 477.2 MB, free: 6.738 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.1271, allocations: 0 / 477.2 MB, free: 6.738 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.1271, allocations: 0 / 477.2 MB, free: 6.738 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.872e-05/0.1272, allocations: 94.73 kB / 477.3 MB, free: 6.621 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.613e-05/0.1273, allocations: 77.11 kB / 477.4 MB, free: 6.527 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.493e-05/0.1273, allocations: 3.938 kB / 477.4 MB, free: 6.523 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.002e-05/0.1273, allocations: 4 kB / 477.4 MB, free: 6.52 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.458e-05/0.1273, allocations: 7.969 kB / 477.4 MB, free: 6.512 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.368e-06/0.1273, allocations: 3.984 kB / 477.4 MB, free: 6.508 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.872e-05/0.1274, allocations: 75.28 kB / 477.5 MB, free: 6.434 MB / 350.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1274, allocations: 0 / 477.5 MB, free: 6.434 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004755/0.1279, allocations: 140 kB / 477.6 MB, free: 6.297 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.0007531/0.1286, allocations: 356.4 kB / 478 MB, free: 5.945 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.451e-05/0.1287, allocations: 63.39 kB / 478 MB, free: 5.871 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.517e-06/0.1287, allocations: 8 kB / 478 MB, free: 5.863 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.841e-05/0.1288, allocations: 51.41 kB / 478.1 MB, free: 5.801 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001305/0.1289, allocations: 4 kB / 478.1 MB, free: 5.797 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001859/0.1291, allocations: 110.8 kB / 478.2 MB, free: 5.656 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002269/0.1294, allocations: 0.669 MB / 478.9 MB, free: 4.961 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.252e-05/0.1294, allocations: 7.438 kB / 478.9 MB, free: 4.953 MB / 350.1 MB Notification: Performance of SimCode: time 4.41e-07/0.1294, allocations: 0 / 478.9 MB, free: 4.953 MB / 350.1 MB Notification: Performance of Templates: time 0.006437/0.1358, allocations: 3.636 MB / 482.5 MB, free: 1.312 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