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.0009851/0.0009853, allocations: 101.1 kB / 16.4 MB, free: 6.441 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.001476/0.001477, allocations: 192.2 kB / 17.34 MB, free: 5.703 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.465/1.465, 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.2306/0.2306, allocations: 43.52 MB / 314.1 MB, free: 448 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.001408/0.001408, allocations: 69.61 kB / 441.3 MB, free: 6.176 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1327/0.1341, allocations: 57.79 MB / 499.1 MB, free: 12.31 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.001652/0.1358, allocations: 494.6 kB / 499.5 MB, free: 11.84 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003303/0.1391, allocations: 2.33 MB / 0.4901 GB, free: 9.484 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.199e-05/0.1391, allocations: 0 / 0.4901 GB, free: 9.484 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.198e-05/0.1391, allocations: 0 / 0.4901 GB, free: 9.484 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.64e-06/0.1392, allocations: 0 / 0.4901 GB, free: 9.484 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002412/0.1416, allocations: 1.125 MB / 0.4912 GB, free: 8.355 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 6.826e-05/0.1417, allocations: 4 kB / 0.4912 GB, free: 8.352 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.764e-05/0.1417, allocations: 4 kB / 0.4912 GB, free: 8.348 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.067e-05/0.1417, allocations: 0 / 0.4912 GB, free: 8.348 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.615e-05/0.1418, allocations: 0 / 0.4912 GB, free: 8.348 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.191e-05/0.1418, allocations: 4 kB / 0.4912 GB, free: 8.344 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001494/0.1433, allocations: 0.9795 MB / 0.4922 GB, free: 7.363 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.107e-05/0.1433, allocations: 3.984 kB / 0.4922 GB, free: 7.359 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.634e-05/0.1433, allocations: 8 kB / 0.4922 GB, free: 7.352 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005595/0.1439, allocations: 415.1 kB / 0.4926 GB, free: 6.945 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.1439, allocations: 0 / 0.4926 GB, free: 6.945 MB / 382.1 MB Notification: Performance of FrontEnd: time 4.198e-06/0.1439, allocations: 8 kB / 0.4926 GB, free: 6.938 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.923e-06/0.1439, allocations: 0 / 0.4926 GB, free: 6.938 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.0004816/0.1444, allocations: 432.5 kB / 0.493 GB, free: 6.461 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.974e-05/0.1445, allocations: 11.89 kB / 0.493 GB, free: 6.449 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.215e-05/0.1445, allocations: 30.75 kB / 0.493 GB, free: 6.41 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.589e-05/0.1445, allocations: 0.9375 kB / 0.493 GB, free: 6.41 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.915e-05/0.1446, allocations: 164.4 kB / 0.4932 GB, free: 6.211 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.257e-05/0.1447, allocations: 4.375 kB / 0.4932 GB, free: 6.207 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.114e-06/0.1447, allocations: 384 / 0.4932 GB, free: 6.207 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.545e-05/0.1448, allocations: 45.73 kB / 0.4932 GB, free: 6.156 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.155e-06/0.1448, allocations: 0 / 0.4932 GB, free: 6.156 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.296e-06/0.1448, allocations: 4 kB / 0.4933 GB, free: 6.152 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.679e-06/0.1448, allocations: 0 / 0.4933 GB, free: 6.152 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.772e-05/0.1448, allocations: 0 / 0.4933 GB, free: 6.152 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000138/0.145, allocations: 145.7 kB / 0.4934 GB, free: 5.961 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.14e-05/0.145, allocations: 22.59 kB / 0.4934 GB, free: 5.93 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.593e-05/0.145, allocations: 4.859 kB / 0.4934 GB, free: 5.922 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.314e-06/0.1451, allocations: 4 kB / 0.4934 GB, free: 5.918 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.022e-05/0.1451, allocations: 68.2 kB / 0.4935 GB, free: 5.836 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.072e-06/0.1451, allocations: 3.938 kB / 0.4935 GB, free: 5.832 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001746/0.1453, allocations: 67.39 kB / 0.4936 GB, free: 5.754 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.113e-05/0.1454, allocations: 77.11 kB / 0.4936 GB, free: 5.66 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.449e-05/0.1454, allocations: 89.86 kB / 0.4937 GB, free: 5.562 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.29e-05/0.1454, allocations: 25.7 kB / 0.4937 GB, free: 5.531 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.935e-05/0.1455, allocations: 88.2 kB / 0.4938 GB, free: 5.441 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.641e-05/0.1455, allocations: 0 / 0.4938 GB, free: 5.441 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.555e-05/0.1455, allocations: 13.72 kB / 0.4938 GB, free: 5.422 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001362/0.1457, allocations: 314.8 kB / 0.4941 GB, free: 5.105 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.938e-06/0.1457, allocations: 0 / 0.4941 GB, free: 5.105 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.628e-06/0.1457, allocations: 0 / 0.4941 GB, free: 5.105 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.162e-05/0.1458, allocations: 68.19 kB / 0.4942 GB, free: 5.023 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.1458, allocations: 0 / 0.4942 GB, free: 5.023 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.414e-05/0.1458, allocations: 63.47 kB / 0.4943 GB, free: 4.949 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.462e-05/0.1459, allocations: 37.64 kB / 0.4943 GB, free: 4.906 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.989e-06/0.1459, allocations: 4 kB / 0.4943 GB, free: 4.902 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.105e-05/0.1459, allocations: 0 / 0.4943 GB, free: 4.902 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.22e-07/0.1459, allocations: 0 / 0.4943 GB, free: 4.902 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.492e-06/0.1459, allocations: 3.984 kB / 0.4943 GB, free: 4.898 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.673e-05/0.1459, allocations: 4 kB / 0.4943 GB, free: 4.895 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.094e-05/0.146, allocations: 3.984 kB / 0.4943 GB, free: 4.891 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.155e-05/0.146, allocations: 139.5 kB / 0.4944 GB, free: 4.738 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.083e-05/0.1461, allocations: 7.969 kB / 0.4945 GB, free: 4.73 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.19e-05/0.1461, allocations: 3.125 kB / 0.4945 GB, free: 4.723 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.022e-06/0.1461, allocations: 0 / 0.4945 GB, free: 4.723 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.1461, allocations: 0 / 0.4945 GB, free: 4.723 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.468e-06/0.1461, allocations: 4 kB / 0.4945 GB, free: 4.719 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001046/0.1462, allocations: 149.6 kB / 0.4946 GB, free: 4.523 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.1462, allocations: 0 / 0.4946 GB, free: 4.523 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.5e-07/0.1462, allocations: 3.938 kB / 0.4946 GB, free: 4.52 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.815e-06/0.1462, allocations: 3.938 kB / 0.4946 GB, free: 4.516 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.151e-06/0.1462, allocations: 0 / 0.4946 GB, free: 4.516 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.585e-06/0.1463, allocations: 4 kB / 0.4946 GB, free: 4.512 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.1463, allocations: 4 kB / 0.4946 GB, free: 4.508 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001021/0.1464, allocations: 86.83 kB / 0.4947 GB, free: 4.398 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.538e-05/0.1464, allocations: 81.05 kB / 0.4948 GB, free: 4.301 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.163e-05/0.1464, allocations: 7.938 kB / 0.4948 GB, free: 4.293 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.305e-06/0.1464, allocations: 0 / 0.4948 GB, free: 4.293 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.603e-05/0.1465, allocations: 4 kB / 0.4948 GB, free: 4.289 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.234e-06/0.1465, allocations: 0 / 0.4948 GB, free: 4.289 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.366e-05/0.1465, allocations: 79.31 kB / 0.4949 GB, free: 4.211 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1465, allocations: 0 / 0.4949 GB, free: 4.211 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003923/0.1469, allocations: 143.6 kB / 0.495 GB, free: 4.07 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.0009326/0.1479, allocations: 0.8972 MB / 0.4959 GB, free: 3.137 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001021/0.148, allocations: 59.41 kB / 0.4959 GB, free: 3.066 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.148, allocations: 0 / 0.4959 GB, free: 3.066 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 4.126e-05/0.148, allocations: 59.45 kB / 0.496 GB, free: 2.996 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001218/0.1482, allocations: 7.609 kB / 0.496 GB, free: 2.992 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003733/0.1485, allocations: 186 kB / 0.4962 GB, free: 2.77 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002749/0.1488, allocations: 0.6768 MB / 0.4968 GB, free: 2.066 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 6.663e-06/0.1488, allocations: 0 / 0.4968 GB, free: 2.066 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.453e-05/0.1489, allocations: 7.438 kB / 0.4968 GB, free: 2.059 MB / 382.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1489, allocations: 0 / 0.4968 GB, free: 2.059 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02461/0.1735, allocations: 5.306 MB / 0.502 GB, free: 12.74 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.435/7.609, allocations: 11.97 kB / 0.502 GB, free: 12.73 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 & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 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.csv","/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