Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations") translateModel(ModelicaTest.ComplexMath.TestComplexOperations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_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: 119.1 kB / 17.09 MB, free: 5.965 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.001809/0.001809, allocations: 197.2 kB / 18.02 MB, free: 5.047 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.421/1.421, allocations: 205.1 MB / 223.9 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2127/0.2127, allocations: 43.51 MB / 314.8 MB, free: 456 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00159/0.00159, allocations: 69.45 kB / 442.4 MB, free: 5.688 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1185/0.1201, allocations: 57.78 MB / 0.4885 GB, free: 11.82 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.002/0.1222, allocations: 485.6 kB / 0.489 GB, free: 11.36 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003588/0.1258, allocations: 2.32 MB / 0.4912 GB, free: 9.016 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.407e-05/0.1258, allocations: 0 / 0.4912 GB, free: 9.016 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.18e-05/0.1259, allocations: 0 / 0.4912 GB, free: 9.016 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 7.013e-06/0.1259, allocations: 0 / 0.4912 GB, free: 9.016 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002951/0.1289, allocations: 1.133 MB / 0.4923 GB, free: 7.879 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 6.686e-05/0.1289, allocations: 0 / 0.4923 GB, free: 7.879 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.249e-05/0.129, allocations: 0 / 0.4923 GB, free: 7.879 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.909e-05/0.129, allocations: 4 kB / 0.4923 GB, free: 7.875 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.291e-05/0.129, allocations: 0 / 0.4923 GB, free: 7.875 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.352e-06/0.1291, allocations: 0 / 0.4923 GB, free: 7.875 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001754/0.1308, allocations: 0.9989 MB / 0.4933 GB, free: 6.875 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.214e-05/0.1308, allocations: 4 kB / 0.4933 GB, free: 6.871 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.129e-05/0.1309, allocations: 0 / 0.4933 GB, free: 6.871 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008124/0.1317, allocations: 419.4 kB / 0.4937 GB, free: 6.461 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.1317, allocations: 0 / 0.4937 GB, free: 6.461 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.1317, allocations: 0 / 0.4937 GB, free: 6.461 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.971e-06/0.1317, allocations: 0 / 0.4937 GB, free: 6.461 MB / 382.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.00051/0.1322, allocations: 429.2 kB / 0.4941 GB, free: 5.988 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.59e-05/0.1323, allocations: 15.88 kB / 0.4941 GB, free: 5.973 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.287e-05/0.1323, allocations: 0.9375 kB / 0.4942 GB, free: 5.973 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001013/0.1324, allocations: 168.4 kB / 0.4943 GB, free: 5.77 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.467e-05/0.1325, allocations: 4.312 kB / 0.4943 GB, free: 5.766 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.217e-06/0.1325, allocations: 384 / 0.4943 GB, free: 5.766 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.835e-05/0.1326, allocations: 38 kB / 0.4944 GB, free: 5.723 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.807e-06/0.1326, allocations: 0 / 0.4944 GB, free: 5.723 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.051e-05/0.1326, allocations: 0 / 0.4944 GB, free: 5.723 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.479e-06/0.1326, allocations: 0 / 0.4944 GB, free: 5.723 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.968e-05/0.1326, allocations: 0 / 0.4944 GB, free: 5.723 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001573/0.1328, allocations: 153.6 kB / 0.4945 GB, free: 5.523 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.193e-05/0.1329, allocations: 26.55 kB / 0.4945 GB, free: 5.488 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.438e-05/0.1329, allocations: 4.859 kB / 0.4945 GB, free: 5.48 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.037e-06/0.1329, allocations: 0 / 0.4945 GB, free: 5.48 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.558e-05/0.133, allocations: 64.27 kB / 0.4946 GB, free: 5.402 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 2.184e-06/0.133, allocations: 0 / 0.4946 GB, free: 5.402 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001856/0.1332, allocations: 71.33 kB / 0.4947 GB, free: 5.32 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.893e-05/0.1332, allocations: 81.23 kB / 0.4947 GB, free: 5.223 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.175e-05/0.1333, allocations: 89.86 kB / 0.4948 GB, free: 5.125 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.365e-05/0.1333, allocations: 25.7 kB / 0.4948 GB, free: 5.094 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.901e-05/0.1333, allocations: 80.14 kB / 0.4949 GB, free: 5.012 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.841e-05/0.1333, allocations: 0 / 0.4949 GB, free: 5.012 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.427e-05/0.1334, allocations: 13.72 kB / 0.4949 GB, free: 4.992 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001035/0.1335, allocations: 314.8 kB / 0.4952 GB, free: 4.676 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.243e-05/0.1335, allocations: 7.922 kB / 0.4952 GB, free: 4.668 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.176e-06/0.1335, allocations: 8 kB / 0.4953 GB, free: 4.66 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.49e-05/0.1336, allocations: 60.2 kB / 0.4953 GB, free: 4.586 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.409e-06/0.1336, allocations: 4 kB / 0.4953 GB, free: 4.582 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.665e-05/0.1337, allocations: 59.41 kB / 0.4954 GB, free: 4.512 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.206e-05/0.1337, allocations: 41.64 kB / 0.4954 GB, free: 4.465 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.954e-06/0.1337, allocations: 3.984 kB / 0.4954 GB, free: 4.461 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.641e-05/0.1338, allocations: 0 / 0.4954 GB, free: 4.461 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.22e-07/0.1338, allocations: 0 / 0.4954 GB, free: 4.461 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.819e-06/0.1338, allocations: 0 / 0.4954 GB, free: 4.461 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.639e-05/0.1338, allocations: 4.094 kB / 0.4954 GB, free: 4.457 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.949e-06/0.1338, allocations: 0 / 0.4954 GB, free: 4.457 MB / 382.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.656e-05/0.1339, allocations: 143.4 kB / 0.4956 GB, free: 4.301 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.276e-05/0.1339, allocations: 3.938 kB / 0.4956 GB, free: 4.297 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.323e-05/0.1339, allocations: 3.125 kB / 0.4956 GB, free: 4.289 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.134, allocations: 0 / 0.4956 GB, free: 4.289 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.421e-06/0.134, allocations: 4 kB / 0.4956 GB, free: 4.285 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.294e-06/0.134, allocations: 0 / 0.4956 GB, free: 4.285 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001016/0.1341, allocations: 145.7 kB / 0.4957 GB, free: 4.094 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.183e-06/0.1341, allocations: 4 kB / 0.4957 GB, free: 4.09 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.91e-07/0.1341, allocations: 0 / 0.4957 GB, free: 4.09 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.567e-06/0.1341, allocations: 3.938 kB / 0.4957 GB, free: 4.086 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.253e-06/0.1341, allocations: 4 kB / 0.4957 GB, free: 4.082 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.1341, allocations: 0 / 0.4957 GB, free: 4.082 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.422e-06/0.1341, allocations: 0 / 0.4957 GB, free: 4.082 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001012/0.1342, allocations: 86.83 kB / 0.4958 GB, free: 3.973 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.059e-05/0.1343, allocations: 81.11 kB / 0.4959 GB, free: 3.875 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.566e-05/0.1343, allocations: 7.969 kB / 0.4959 GB, free: 3.867 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.031e-05/0.1343, allocations: 3.938 kB / 0.4959 GB, free: 3.863 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.702e-05/0.1343, allocations: 4 kB / 0.4959 GB, free: 3.859 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.939e-06/0.1343, allocations: 7.922 kB / 0.4959 GB, free: 3.852 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.887e-05/0.1344, allocations: 79.28 kB / 0.496 GB, free: 3.773 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1344, allocations: 0 / 0.496 GB, free: 3.773 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004736/0.1349, allocations: 132 kB / 0.4961 GB, free: 3.645 MB / 382.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.0008187/0.1357, allocations: 377.5 kB / 0.4965 GB, free: 3.266 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001058/0.1358, allocations: 59.41 kB / 0.4965 GB, free: 3.195 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.1358, allocations: 0 / 0.4965 GB, free: 3.195 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 2.943e-05/0.1358, allocations: 59.47 kB / 0.4966 GB, free: 3.125 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001324/0.136, allocations: 3.984 kB / 0.4966 GB, free: 3.121 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002121/0.1362, allocations: 114.6 kB / 0.4967 GB, free: 2.977 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002315/0.1364, allocations: 0.669 MB / 0.4973 GB, free: 2.281 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.565e-05/0.1365, allocations: 11.44 kB / 0.4973 GB, free: 2.27 MB / 382.1 MB Notification: Performance of SimCode: time 2.8e-07/0.1365, allocations: 0 / 0.4973 GB, free: 2.27 MB / 382.1 MB Notification: Performance of Templates: time 0.006818/0.1433, allocations: 3.628 MB / 0.5009 GB, free: 14.64 MB / 398.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations.sim & ./ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/ComplexMath/TestComplexOperations/TestComplexOperations.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches