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: "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexOperations,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_ComplexMath_TestComplexOperations",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexOperations,fileNamePrefix="ModelicaTest_4_0_0_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.001775/0.001775, allocations: 104.1 kB / 17.64 MB, free: 5.48 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.001815/0.001815, allocations: 192 kB / 18.55 MB, free: 4.566 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.359/1.359, allocations: 222.9 MB / 242.3 MB, free: 15.16 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.314/0.314, allocations: 44.17 MB / 336.6 MB, free: 2.73 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001278/0.001278, allocations: 69.34 kB / 408.5 MB, free: 27.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1008/0.102, allocations: 60.82 MB / 469.3 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.001631/0.1037, allocations: 478.6 kB / 469.8 MB, free: 13.8 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003177/0.1069, allocations: 2.278 MB / 472.1 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.167e-05/0.107, allocations: 0 / 472.1 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.068e-05/0.107, allocations: 0 / 472.1 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.589e-06/0.107, allocations: 0 / 472.1 MB, free: 11.5 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.002429/0.1094, allocations: 1.125 MB / 473.2 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.889e-05/0.1095, allocations: 4 kB / 473.2 MB, free: 10.37 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.398e-05/0.1095, allocations: 3.984 kB / 473.2 MB, free: 10.37 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.494e-05/0.1096, allocations: 3.938 kB / 473.2 MB, free: 10.36 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.631e-05/0.1096, allocations: 7.938 kB / 473.2 MB, free: 10.36 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.381e-06/0.1096, allocations: 0 / 473.2 MB, free: 10.36 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001339/0.1109, allocations: 0.9678 MB / 474.2 MB, free: 9.387 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.873e-06/0.111, allocations: 0 / 474.2 MB, free: 9.387 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.575e-05/0.111, allocations: 0 / 474.2 MB, free: 9.387 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005367/0.1115, allocations: 419.3 kB / 474.6 MB, free: 8.977 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.554e-06/0.1115, allocations: 3.984 kB / 474.6 MB, free: 8.973 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.943e-06/0.1115, allocations: 0 / 474.6 MB, free: 8.973 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.891e-06/0.1116, allocations: 0 / 474.6 MB, free: 8.973 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.0004842/0.112, allocations: 421.2 kB / 475 MB, free: 8.508 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.011e-05/0.1121, allocations: 8.031 kB / 475 MB, free: 8.5 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.834e-05/0.1121, allocations: 34.75 kB / 475.1 MB, free: 8.457 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.89e-05/0.1122, allocations: 12.92 kB / 475.1 MB, free: 8.445 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.717e-05/0.1123, allocations: 160.4 kB / 475.2 MB, free: 8.25 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.219e-05/0.1123, allocations: 4.375 kB / 475.2 MB, free: 8.246 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.548e-06/0.1123, allocations: 384 / 475.2 MB, free: 8.246 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.874e-05/0.1124, allocations: 33.83 kB / 475.3 MB, free: 8.207 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.546e-06/0.1124, allocations: 0 / 475.3 MB, free: 8.207 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.593e-06/0.1124, allocations: 3.938 kB / 475.3 MB, free: 8.203 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.757e-06/0.1124, allocations: 0 / 475.3 MB, free: 8.203 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.658e-05/0.1124, allocations: 3.938 kB / 475.3 MB, free: 8.199 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001264/0.1126, allocations: 153.7 kB / 475.4 MB, free: 8 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.038e-05/0.1126, allocations: 14.58 kB / 475.5 MB, free: 7.977 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.574e-05/0.1126, allocations: 8.953 kB / 475.5 MB, free: 7.965 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.819e-06/0.1127, allocations: 4 kB / 475.5 MB, free: 7.961 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.682e-05/0.1127, allocations: 60.2 kB / 475.5 MB, free: 7.887 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 9.42e-07/0.1127, allocations: 0 / 475.5 MB, free: 7.887 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001508/0.1129, allocations: 71.33 kB / 475.6 MB, free: 7.805 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.71e-05/0.1129, allocations: 77.11 kB / 475.7 MB, free: 7.711 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.289e-05/0.1129, allocations: 89.86 kB / 475.8 MB, free: 7.613 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.243e-05/0.113, allocations: 25.7 kB / 475.8 MB, free: 7.582 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.328e-05/0.113, allocations: 84.14 kB / 475.9 MB, free: 7.496 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.606e-05/0.113, allocations: 4.281 kB / 475.9 MB, free: 7.492 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.267e-05/0.1131, allocations: 9.719 kB / 475.9 MB, free: 7.477 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.738e-05/0.1132, allocations: 310.8 kB / 476.2 MB, free: 7.164 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.247e-06/0.1132, allocations: 4.125 kB / 476.2 MB, free: 7.16 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.141e-06/0.1132, allocations: 7.984 kB / 476.2 MB, free: 7.152 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.126e-05/0.1132, allocations: 60.27 kB / 476.2 MB, free: 7.078 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.112e-06/0.1132, allocations: 0 / 476.2 MB, free: 7.078 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.382e-05/0.1133, allocations: 63.34 kB / 476.3 MB, free: 7.004 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.423e-05/0.1134, allocations: 37.64 kB / 476.3 MB, free: 6.961 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.711e-06/0.1134, allocations: 3.984 kB / 476.4 MB, free: 6.957 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.54e-05/0.1134, allocations: 7.922 kB / 476.4 MB, free: 6.949 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.21e-07/0.1134, allocations: 0 / 476.4 MB, free: 6.949 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.777e-06/0.1134, allocations: 4.094 kB / 476.4 MB, free: 6.945 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.585e-05/0.1134, allocations: 3.938 kB / 476.4 MB, free: 6.941 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.235e-06/0.1134, allocations: 4 kB / 476.4 MB, free: 6.938 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.878e-05/0.1135, allocations: 131.5 kB / 476.5 MB, free: 6.793 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.047e-05/0.1135, allocations: 7.844 kB / 476.5 MB, free: 6.785 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.051e-05/0.1136, allocations: 11.08 kB / 476.5 MB, free: 6.773 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.102e-06/0.1136, allocations: 0 / 476.5 MB, free: 6.773 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/0.1136, allocations: 0 / 476.5 MB, free: 6.773 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.834e-06/0.1136, allocations: 0 / 476.5 MB, free: 6.773 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.372e-05/0.1137, allocations: 153.7 kB / 476.7 MB, free: 6.574 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.1137, allocations: 3.938 kB / 476.7 MB, free: 6.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.01e-07/0.1137, allocations: 0 / 476.7 MB, free: 6.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.968e-06/0.1137, allocations: 7.938 kB / 476.7 MB, free: 6.562 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.33e-06/0.1137, allocations: 0 / 476.7 MB, free: 6.562 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.92e-07/0.1137, allocations: 0 / 476.7 MB, free: 6.562 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.1137, allocations: 4 kB / 476.7 MB, free: 6.559 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.504e-05/0.1138, allocations: 98.75 kB / 476.8 MB, free: 6.438 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.934e-05/0.1139, allocations: 85.08 kB / 476.9 MB, free: 6.336 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.033e-05/0.1139, allocations: 0 / 476.9 MB, free: 6.336 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.895e-06/0.1139, allocations: 0 / 476.9 MB, free: 6.336 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.147e-05/0.1139, allocations: 0 / 476.9 MB, free: 6.336 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.888e-06/0.1139, allocations: 7.984 kB / 476.9 MB, free: 6.328 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.562e-05/0.1139, allocations: 79.28 kB / 476.9 MB, free: 6.25 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1139, allocations: 0 / 476.9 MB, free: 6.25 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004102/0.1144, allocations: 136 kB / 477.1 MB, free: 6.117 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.0008688/0.1152, allocations: 0.8953 MB / 478 MB, free: 5.195 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.204e-05/0.1153, allocations: 59.39 kB / 478 MB, free: 5.125 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.1153, allocations: 3.938 kB / 478 MB, free: 5.121 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.338e-05/0.1154, allocations: 55.41 kB / 478.1 MB, free: 5.055 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001178/0.1155, allocations: 6.344 kB / 478.1 MB, free: 5.051 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000337/0.1158, allocations: 174.5 kB / 478.3 MB, free: 4.84 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002205/0.1161, allocations: 0.673 MB / 478.9 MB, free: 4.141 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.739e-06/0.1161, allocations: 0 / 478.9 MB, free: 4.141 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.136e-05/0.1161, allocations: 11.44 kB / 479 MB, free: 4.129 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1161, allocations: 0 / 479 MB, free: 4.129 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02224/0.1384, allocations: 5.29 MB / 484.2 MB, free: 14.9 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.787/7.925, allocations: 1.031 kB / 484.2 MB, free: 14.9 MB / 366.1 MB (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 & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_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_4_0_0_ModelicaTest_ComplexMath_TestComplexOperations.fmu > ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations_res.csv","/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