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: "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexOperations,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_ComplexMath_TestComplexOperations",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexOperations,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_ComplexMath_TestComplexOperations",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001133/0.001133, allocations: 107 kB / 16.41 MB, free: 6.422 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.001118/0.001118, allocations: 185 kB / 17.34 MB, free: 5.707 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.509/1.509, allocations: 205.1 MB / 223.2 MB, free: 12.21 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.2112/0.2112, allocations: 43.52 MB / 314.1 MB, free: 444 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.00155/0.00155, allocations: 69.78 kB / 441.3 MB, free: 6.199 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1315/0.133, allocations: 57.8 MB / 499.1 MB, free: 12.32 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.001801/0.1349, allocations: 482.8 kB / 499.5 MB, free: 11.86 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003526/0.1384, allocations: 2.33 MB / 0.4901 GB, free: 9.504 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.812e-05/0.1385, allocations: 4 kB / 0.4901 GB, free: 9.5 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.249e-05/0.1385, allocations: 0 / 0.4901 GB, free: 9.5 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.342e-06/0.1385, allocations: 4 kB / 0.4901 GB, free: 9.496 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002919/0.1415, allocations: 1.125 MB / 0.4912 GB, free: 8.367 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 6.544e-05/0.1415, allocations: 4 kB / 0.4912 GB, free: 8.363 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.333e-05/0.1416, allocations: 0 / 0.4912 GB, free: 8.363 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.29e-05/0.1416, allocations: 8 kB / 0.4912 GB, free: 8.355 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.562e-05/0.1417, allocations: 0 / 0.4912 GB, free: 8.355 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.313e-06/0.1417, allocations: 0 / 0.4912 GB, free: 8.355 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0017/0.1434, allocations: 0.9873 MB / 0.4922 GB, free: 7.367 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.01e-05/0.1434, allocations: 0 / 0.4922 GB, free: 7.367 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.333e-05/0.1434, allocations: 3.984 kB / 0.4922 GB, free: 7.363 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008065/0.1442, allocations: 423.5 kB / 0.4926 GB, free: 6.949 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.868e-06/0.1443, allocations: 0 / 0.4926 GB, free: 6.949 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.1443, allocations: 0 / 0.4926 GB, free: 6.949 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.109e-06/0.1443, allocations: 4 kB / 0.4926 GB, free: 6.945 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.000464/0.1447, allocations: 433.1 kB / 0.493 GB, free: 6.469 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.705e-05/0.1448, allocations: 11.89 kB / 0.493 GB, free: 6.457 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.557e-05/0.1448, allocations: 34.75 kB / 0.4931 GB, free: 6.414 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.938e-05/0.1449, allocations: 0.9375 kB / 0.4931 GB, free: 6.414 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001096/0.145, allocations: 168.4 kB / 0.4932 GB, free: 6.211 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.336e-05/0.145, allocations: 384 / 0.4932 GB, free: 6.211 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.345e-06/0.145, allocations: 384 / 0.4932 GB, free: 6.211 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.01e-05/0.1451, allocations: 37.77 kB / 0.4933 GB, free: 6.168 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.085e-06/0.1451, allocations: 4 kB / 0.4933 GB, free: 6.164 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.233e-06/0.1451, allocations: 0 / 0.4933 GB, free: 6.164 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.178e-06/0.1451, allocations: 0 / 0.4933 GB, free: 6.164 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.827e-05/0.1452, allocations: 0 / 0.4933 GB, free: 6.164 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001515/0.1453, allocations: 149.7 kB / 0.4934 GB, free: 5.969 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.546e-05/0.1454, allocations: 18.58 kB / 0.4934 GB, free: 5.941 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.822e-05/0.1454, allocations: 8.953 kB / 0.4934 GB, free: 5.93 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.859e-06/0.1454, allocations: 0 / 0.4934 GB, free: 5.93 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.779e-05/0.1455, allocations: 72.08 kB / 0.4935 GB, free: 5.844 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.032e-06/0.1455, allocations: 0 / 0.4935 GB, free: 5.844 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001816/0.1457, allocations: 63.39 kB / 0.4936 GB, free: 5.77 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.783e-05/0.1457, allocations: 77.11 kB / 0.4936 GB, free: 5.676 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.769e-05/0.1458, allocations: 93.86 kB / 0.4937 GB, free: 5.574 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.589e-05/0.1458, allocations: 25.7 kB / 0.4937 GB, free: 5.543 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.981e-05/0.1459, allocations: 80.14 kB / 0.4938 GB, free: 5.461 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.049e-05/0.1459, allocations: 4.125 kB / 0.4938 GB, free: 5.457 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.219e-05/0.1459, allocations: 13.72 kB / 0.4938 GB, free: 5.438 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001208/0.1461, allocations: 314.8 kB / 0.4941 GB, free: 5.121 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.17e-05/0.1461, allocations: 4 kB / 0.4941 GB, free: 5.117 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.981e-06/0.1461, allocations: 0 / 0.4941 GB, free: 5.117 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.64e-05/0.1462, allocations: 72.19 kB / 0.4942 GB, free: 5.031 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.1462, allocations: 0 / 0.4942 GB, free: 5.031 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.988e-05/0.1462, allocations: 55.41 kB / 0.4943 GB, free: 4.965 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.963e-05/0.1463, allocations: 41.73 kB / 0.4943 GB, free: 4.918 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.451e-06/0.1463, allocations: 0 / 0.4943 GB, free: 4.918 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.537e-05/0.1463, allocations: 0 / 0.4943 GB, free: 4.918 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.51e-07/0.1463, allocations: 0 / 0.4943 GB, free: 4.918 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.444e-06/0.1463, allocations: 3.984 kB / 0.4943 GB, free: 4.914 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.592e-05/0.1464, allocations: 0 / 0.4943 GB, free: 4.914 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.029e-05/0.1464, allocations: 4 kB / 0.4943 GB, free: 4.91 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 9.219e-05/0.1465, allocations: 135.5 kB / 0.4944 GB, free: 4.762 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.123e-05/0.1465, allocations: 3.938 kB / 0.4944 GB, free: 4.758 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.303e-05/0.1465, allocations: 11.12 kB / 0.4945 GB, free: 4.742 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.262e-06/0.1465, allocations: 0 / 0.4945 GB, free: 4.742 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.498e-06/0.1465, allocations: 0 / 0.4945 GB, free: 4.742 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.509e-06/0.1465, allocations: 0 / 0.4945 GB, free: 4.742 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001061/0.1467, allocations: 157.6 kB / 0.4946 GB, free: 4.539 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.1467, allocations: 0 / 0.4946 GB, free: 4.539 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.61e-07/0.1467, allocations: 0 / 0.4946 GB, free: 4.539 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.246e-06/0.1467, allocations: 7.938 kB / 0.4946 GB, free: 4.531 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.524e-06/0.1467, allocations: 0 / 0.4946 GB, free: 4.531 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.01e-07/0.1467, allocations: 0 / 0.4946 GB, free: 4.531 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.21e-07/0.1467, allocations: 0 / 0.4946 GB, free: 4.531 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001044/0.1468, allocations: 94.83 kB / 0.4947 GB, free: 4.414 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.585e-05/0.1469, allocations: 84.98 kB / 0.4948 GB, free: 4.312 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.126e-05/0.1469, allocations: 0 / 0.4948 GB, free: 4.312 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.879e-06/0.1469, allocations: 0 / 0.4948 GB, free: 4.312 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.378e-05/0.1469, allocations: 4 kB / 0.4948 GB, free: 4.309 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.146e-06/0.1469, allocations: 0 / 0.4948 GB, free: 4.309 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.64e-05/0.1469, allocations: 75.28 kB / 0.4949 GB, free: 4.234 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.147, allocations: 4.031 kB / 0.4949 GB, free: 4.23 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004484/0.1474, allocations: 140 kB / 0.495 GB, free: 4.094 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.001013/0.1484, allocations: 0.9 MB / 0.4959 GB, free: 3.16 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001008/0.1485, allocations: 59.39 kB / 0.4959 GB, free: 3.09 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.1486, allocations: 0 / 0.4959 GB, free: 3.09 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 3.53e-05/0.1486, allocations: 59.41 kB / 0.496 GB, free: 3.02 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001246/0.1487, allocations: 128 / 0.496 GB, free: 3.02 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004264/0.1492, allocations: 194.3 kB / 0.4962 GB, free: 2.789 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002587/0.1494, allocations: 0.6729 MB / 0.4968 GB, free: 2.09 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 6.242e-06/0.1494, allocations: 0 / 0.4968 GB, free: 2.09 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.785e-05/0.1495, allocations: 11.44 kB / 0.4968 GB, free: 2.078 MB / 382.1 MB Notification: Performance of SimCode: time 3.6e-07/0.1495, allocations: 0 / 0.4968 GB, free: 2.078 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0259/0.1754, allocations: 5.307 MB / 0.502 GB, free: 12.77 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.963/8.138, allocations: 11.98 kB / 0.502 GB, free: 12.75 MB / 398.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_ComplexMath_TestComplexOperations_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_ComplexMath_TestComplexOperations.fmu > 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