Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.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.TestComplexFunctions,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_ComplexMath_TestComplexFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexFunctions,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_ComplexMath_TestComplexFunctions",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.0009711/0.0009711, allocations: 104.7 kB / 17.63 MB, free: 5.344 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.0009896/0.0009895, allocations: 192 kB / 18.56 MB, free: 4.434 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.2 MB, free: 15.17 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.2129/0.2129, allocations: 44.18 MB / 336.6 MB, free: 2.75 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0014/0.001401, allocations: 67.58 kB / 408.5 MB, free: 27.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1213/0.1227, allocations: 60.81 MB / 469.3 MB, free: 14.28 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001729/0.1245, allocations: 474.8 kB / 469.8 MB, free: 13.81 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003134/0.1276, allocations: 2.286 MB / 472.1 MB, free: 11.51 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.547e-05/0.1277, allocations: 0 / 472.1 MB, free: 11.51 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.034e-05/0.1277, allocations: 0 / 472.1 MB, free: 11.51 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.409e-06/0.1277, allocations: 0 / 472.1 MB, free: 11.51 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.002774/0.1305, allocations: 1.132 MB / 473.2 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.414e-05/0.1306, allocations: 8 kB / 473.2 MB, free: 10.37 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.56e-05/0.1306, allocations: 0 / 473.2 MB, free: 10.37 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.907e-05/0.1306, allocations: 4 kB / 473.2 MB, free: 10.36 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.889e-05/0.1306, allocations: 3.938 kB / 473.2 MB, free: 10.36 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.41e-06/0.1307, allocations: 0 / 473.2 MB, free: 10.36 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001392/0.1321, allocations: 0.9639 MB / 474.2 MB, free: 9.395 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.234e-06/0.1321, allocations: 0 / 474.2 MB, free: 9.395 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.109e-05/0.1321, allocations: 0 / 474.2 MB, free: 9.395 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000544/0.1327, allocations: 423.3 kB / 474.6 MB, free: 8.98 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.1327, allocations: 0 / 474.6 MB, free: 8.98 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.1327, allocations: 0 / 474.6 MB, free: 8.98 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.869e-06/0.1327, allocations: 0 / 474.6 MB, free: 8.98 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.0004116/0.1331, allocations: 425.2 kB / 475 MB, free: 8.512 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.011e-05/0.1332, allocations: 12.03 kB / 475 MB, free: 8.5 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.78e-05/0.1332, allocations: 38.73 kB / 475.1 MB, free: 8.453 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.38e-05/0.1332, allocations: 0.9375 kB / 475.1 MB, free: 8.453 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.682e-05/0.1333, allocations: 160.4 kB / 475.2 MB, free: 8.258 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.059e-05/0.1333, allocations: 384 / 475.2 MB, free: 8.258 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.368e-06/0.1334, allocations: 384 / 475.2 MB, free: 8.258 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.424e-05/0.1335, allocations: 33.83 kB / 475.3 MB, free: 8.219 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.183e-06/0.1335, allocations: 3.938 kB / 475.3 MB, free: 8.215 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.123e-06/0.1335, allocations: 0 / 475.3 MB, free: 8.215 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.967e-06/0.1335, allocations: 0 / 475.3 MB, free: 8.215 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.873e-05/0.1335, allocations: 7.938 kB / 475.3 MB, free: 8.207 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001145/0.1336, allocations: 153.7 kB / 475.4 MB, free: 8.008 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.125e-05/0.1337, allocations: 14.58 kB / 475.5 MB, free: 7.984 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.552e-05/0.1337, allocations: 8.953 kB / 475.5 MB, free: 7.973 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.573e-06/0.1337, allocations: 0 / 475.5 MB, free: 7.973 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.003e-05/0.1338, allocations: 60.2 kB / 475.5 MB, free: 7.898 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 8.71e-07/0.1338, allocations: 0 / 475.5 MB, free: 7.898 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001503/0.1339, allocations: 75.33 kB / 475.6 MB, free: 7.812 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.892e-05/0.134, allocations: 77.11 kB / 475.7 MB, free: 7.719 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.607e-05/0.134, allocations: 89.86 kB / 475.8 MB, free: 7.621 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.048e-05/0.1341, allocations: 25.7 kB / 475.8 MB, free: 7.59 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.311e-05/0.1341, allocations: 80.14 kB / 475.9 MB, free: 7.508 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.781e-05/0.1341, allocations: 4.281 kB / 475.9 MB, free: 7.504 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.415e-05/0.1341, allocations: 9.719 kB / 475.9 MB, free: 7.488 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001022/0.1342, allocations: 319 kB / 476.2 MB, free: 7.168 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.208e-05/0.1343, allocations: 7.938 kB / 476.2 MB, free: 7.16 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.969e-06/0.1343, allocations: 0 / 476.2 MB, free: 7.16 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.396e-05/0.1343, allocations: 64.27 kB / 476.3 MB, free: 7.082 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.172e-06/0.1343, allocations: 0 / 476.3 MB, free: 7.082 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.199e-05/0.1344, allocations: 59.34 kB / 476.3 MB, free: 7.012 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.996e-05/0.1345, allocations: 41.62 kB / 476.4 MB, free: 6.965 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/0.1345, allocations: 4 kB / 476.4 MB, free: 6.961 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.065e-05/0.1345, allocations: 96 / 476.4 MB, free: 6.961 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.81e-07/0.1345, allocations: 4 kB / 476.4 MB, free: 6.957 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.729e-06/0.1345, allocations: 0 / 476.4 MB, free: 6.957 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.586e-05/0.1345, allocations: 3.938 kB / 476.4 MB, free: 6.953 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.125e-06/0.1345, allocations: 4 kB / 476.4 MB, free: 6.949 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.548e-05/0.1346, allocations: 135.5 kB / 476.5 MB, free: 6.801 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.912e-05/0.1346, allocations: 7.844 kB / 476.5 MB, free: 6.793 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.075e-05/0.1347, allocations: 11.08 kB / 476.5 MB, free: 6.781 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.172e-06/0.1347, allocations: 0 / 476.5 MB, free: 6.781 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.1347, allocations: 0 / 476.5 MB, free: 6.781 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.127e-06/0.1347, allocations: 7.984 kB / 476.5 MB, free: 6.773 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.958e-05/0.1348, allocations: 145.6 kB / 476.7 MB, free: 6.582 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.71e-07/0.1348, allocations: 0 / 476.7 MB, free: 6.582 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.31e-07/0.1348, allocations: 0 / 476.7 MB, free: 6.582 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.338e-06/0.1348, allocations: 11.92 kB / 476.7 MB, free: 6.57 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.922e-06/0.1348, allocations: 0 / 476.7 MB, free: 6.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.42e-07/0.1348, allocations: 0 / 476.7 MB, free: 6.57 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.1348, allocations: 0 / 476.7 MB, free: 6.57 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000105/0.1349, allocations: 98.77 kB / 476.8 MB, free: 6.449 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.077e-05/0.135, allocations: 81.05 kB / 476.9 MB, free: 6.352 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.351e-05/0.135, allocations: 0 / 476.9 MB, free: 6.352 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.886e-06/0.135, allocations: 0 / 476.9 MB, free: 6.352 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.729e-05/0.135, allocations: 7.984 kB / 476.9 MB, free: 6.344 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.404e-06/0.135, allocations: 0 / 476.9 MB, free: 6.344 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.505e-05/0.1351, allocations: 79.28 kB / 476.9 MB, free: 6.266 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1351, allocations: 0 / 476.9 MB, free: 6.266 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003986/0.1355, allocations: 140 kB / 477.1 MB, free: 6.129 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.0008876/0.1364, allocations: 0.8929 MB / 478 MB, free: 5.207 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001192/0.1365, allocations: 63.39 kB / 478 MB, free: 5.133 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.1365, allocations: 0 / 478 MB, free: 5.133 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.976e-05/0.1365, allocations: 55.41 kB / 478.1 MB, free: 5.066 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001193/0.1367, allocations: 0 / 478.1 MB, free: 5.066 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003414/0.137, allocations: 178.6 kB / 478.3 MB, free: 4.852 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002222/0.1372, allocations: 0.669 MB / 478.9 MB, free: 4.156 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.172e-06/0.1373, allocations: 0 / 478.9 MB, free: 4.156 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.318e-05/0.1373, allocations: 11.44 kB / 478.9 MB, free: 4.145 MB / 350.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1373, allocations: 0 / 478.9 MB, free: 4.145 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0225/0.1598, allocations: 5.288 MB / 484.2 MB, free: 14.92 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.899/8.059, allocations: 3.062 kB / 484.2 MB, free: 14.92 MB / 366.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions_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_TestComplexFunctions.fmu > ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/ComplexMath/TestComplexFunctions/TestComplexFunctions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches