Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001691/0.001691, allocations: 124.4 kB / 17.79 MB, free: 5.266 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00151/0.00151, allocations: 199.3 kB / 20.74 MB, free: 2.32 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.617/1.617, allocations: 230.6 MB / 254.1 MB, free: 15.07 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2415/0.2415, allocations: 46.93 MB / 357.1 MB, free: 10.41 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexFunctions,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_ComplexMath_TestComplexFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexFunctions,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_ComplexMath_TestComplexFunctions",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001969/0.001969, allocations: 63.89 kB / 0.4909 GB, free: 8.086 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1268/0.1288, allocations: 65.99 MB / 0.5553 GB, free: 5.961 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001547/0.1303, allocations: 478.7 kB / 0.5558 GB, free: 5.492 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.003702/0.134, allocations: 2.426 MB / 0.5582 GB, free: 3.047 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.422e-05/0.1341, allocations: 0 / 0.5582 GB, free: 3.047 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.401e-05/0.1341, allocations: 0 / 0.5582 GB, free: 3.047 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 5.45e-06/0.1341, allocations: 0 / 0.5582 GB, free: 3.047 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.002826/0.1369, allocations: 1.156 MB / 0.5593 GB, free: 1.891 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 4.61e-05/0.137, allocations: 0 / 0.5593 GB, free: 1.891 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.833e-05/0.137, allocations: 0 / 0.5593 GB, free: 1.891 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.571e-05/0.137, allocations: 8 kB / 0.5593 GB, free: 1.883 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.849e-05/0.137, allocations: 0 / 0.5593 GB, free: 1.883 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.37e-06/0.137, allocations: 0 / 0.5593 GB, free: 1.883 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001702/0.1387, allocations: 1.038 MB / 0.5603 GB, free: 0.8438 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 7.714e-06/0.1388, allocations: 4 kB / 0.5603 GB, free: 0.8398 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 1.668e-05/0.1388, allocations: 0 / 0.5603 GB, free: 0.8398 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006502/0.1394, allocations: 447.1 kB / 0.5607 GB, free: 412 kB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.1394, allocations: 0 / 0.5607 GB, free: 412 kB / 414.1 MB Notification: Performance of FrontEnd: time 3.687e-06/0.1394, allocations: 4 kB / 0.5607 GB, free: 408 kB / 414.1 MB Notification: Performance of Transformations before backend: time 5.149e-06/0.1394, allocations: 0 / 0.5607 GB, free: 408 kB / 414.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.0005038/0.1399, allocations: 444.3 kB / 0.5612 GB, free: 15.91 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.949e-05/0.14, allocations: 12.03 kB / 0.5612 GB, free: 15.9 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.349e-05/0.14, allocations: 30.75 kB / 0.5612 GB, free: 15.86 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.7e-05/0.14, allocations: 0.9375 kB / 0.5612 GB, free: 15.86 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000111/0.1401, allocations: 168.4 kB / 0.5614 GB, free: 15.66 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.27e-05/0.1402, allocations: 4.312 kB / 0.5614 GB, free: 15.65 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.222e-06/0.1402, allocations: 4.312 kB / 0.5614 GB, free: 15.65 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.089e-05/0.1402, allocations: 37.83 kB / 0.5614 GB, free: 15.61 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.652e-06/0.1403, allocations: 0 / 0.5614 GB, free: 15.61 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.933e-06/0.1403, allocations: 0 / 0.5614 GB, free: 15.61 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.536e-06/0.1403, allocations: 0 / 0.5614 GB, free: 15.61 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.097e-05/0.1403, allocations: 8 kB / 0.5614 GB, free: 15.6 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001444/0.1404, allocations: 145.7 kB / 0.5616 GB, free: 15.41 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.79e-05/0.1405, allocations: 22.52 kB / 0.5616 GB, free: 15.38 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.56e-05/0.1405, allocations: 12.94 kB / 0.5616 GB, free: 15.36 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.313e-06/0.1405, allocations: 0 / 0.5616 GB, free: 15.36 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.218e-05/0.1406, allocations: 60.2 kB / 0.5617 GB, free: 15.29 MB / 430.1 MB Notification: Performance of pre-optimization done (n=1): time 7.72e-07/0.1406, allocations: 0 / 0.5617 GB, free: 15.29 MB / 430.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001703/0.1407, allocations: 71.38 kB / 0.5617 GB, free: 15.2 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.559e-05/0.1408, allocations: 81.23 kB / 0.5618 GB, free: 15.11 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.452e-05/0.1408, allocations: 93.81 kB / 0.5619 GB, free: 15 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.801e-05/0.1409, allocations: 29.7 kB / 0.5619 GB, free: 14.97 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.214e-05/0.1409, allocations: 80.14 kB / 0.562 GB, free: 14.89 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.369e-05/0.1409, allocations: 0 / 0.562 GB, free: 14.89 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.041e-05/0.1409, allocations: 13.72 kB / 0.562 GB, free: 14.87 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001356/0.1411, allocations: 310.8 kB / 0.5623 GB, free: 14.55 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.888e-06/0.1411, allocations: 7.938 kB / 0.5623 GB, free: 14.55 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.514e-06/0.1411, allocations: 4 kB / 0.5623 GB, free: 14.54 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.693e-05/0.1411, allocations: 64.25 kB / 0.5624 GB, free: 14.46 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.1411, allocations: 0 / 0.5624 GB, free: 14.46 MB / 430.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.261e-05/0.1412, allocations: 63.41 kB / 0.5624 GB, free: 14.39 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.739e-05/0.1413, allocations: 33.64 kB / 0.5625 GB, free: 14.35 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/0.1413, allocations: 0 / 0.5625 GB, free: 14.35 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.274e-05/0.1413, allocations: 0 / 0.5625 GB, free: 14.35 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.42e-07/0.1413, allocations: 0 / 0.5625 GB, free: 14.35 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.452e-06/0.1413, allocations: 3.984 kB / 0.5625 GB, free: 14.35 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.689e-05/0.1413, allocations: 12.03 kB / 0.5625 GB, free: 14.34 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.572e-06/0.1413, allocations: 0 / 0.5625 GB, free: 14.34 MB / 430.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 0.0001075/0.1414, allocations: 135.5 kB / 0.5626 GB, free: 14.19 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.359e-05/0.1414, allocations: 7.938 kB / 0.5626 GB, free: 14.18 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.175e-06/0.1414, allocations: 3.125 kB / 0.5626 GB, free: 14.18 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.242e-06/0.1414, allocations: 0 / 0.5626 GB, free: 14.18 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.006e-06/0.1414, allocations: 0 / 0.5626 GB, free: 14.18 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.863e-06/0.1414, allocations: 0 / 0.5626 GB, free: 14.18 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001105/0.1415, allocations: 145.7 kB / 0.5628 GB, free: 13.99 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.1415, allocations: 4 kB / 0.5628 GB, free: 13.98 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.31e-07/0.1415, allocations: 4 kB / 0.5628 GB, free: 13.98 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.807e-06/0.1416, allocations: 3.938 kB / 0.5628 GB, free: 13.98 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.632e-06/0.1416, allocations: 3.938 kB / 0.5628 GB, free: 13.97 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.1416, allocations: 0 / 0.5628 GB, free: 13.97 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.1416, allocations: 0 / 0.5628 GB, free: 13.97 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001098/0.1417, allocations: 90.83 kB / 0.5629 GB, free: 13.86 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.471e-05/0.1417, allocations: 85.05 kB / 0.5629 GB, free: 13.76 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.141e-05/0.1417, allocations: 4.031 kB / 0.5629 GB, free: 13.75 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.21e-05/0.1417, allocations: 8 kB / 0.563 GB, free: 13.75 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.042e-05/0.1417, allocations: 0 / 0.563 GB, free: 13.75 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.585e-06/0.1417, allocations: 3.938 kB / 0.563 GB, free: 13.74 MB / 430.1 MB Notification: Performance of sorting global known variables: time 3.358e-05/0.1418, allocations: 75.28 kB / 0.563 GB, free: 13.67 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1418, allocations: 0 / 0.563 GB, free: 13.67 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0004741/0.1423, allocations: 159.5 kB / 0.5632 GB, free: 13.51 MB / 430.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.00109/0.1433, allocations: 0.908 MB / 0.5641 GB, free: 12.57 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0001047/0.1435, allocations: 55.41 kB / 0.5641 GB, free: 12.51 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.1435, allocations: 0 / 0.5641 GB, free: 12.51 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 4.324e-05/0.1435, allocations: 63.33 kB / 0.5642 GB, free: 12.43 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001308/0.1436, allocations: 4 kB / 0.5642 GB, free: 12.43 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004171/0.144, allocations: 190.2 kB / 0.5644 GB, free: 12.2 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002874/0.1443, allocations: 0.6767 MB / 0.565 GB, free: 11.5 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 6.071e-06/0.1443, allocations: 0 / 0.565 GB, free: 11.5 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.42e-05/0.1444, allocations: 11.56 kB / 0.565 GB, free: 11.49 MB / 430.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1444, allocations: 0 / 0.565 GB, free: 11.49 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03151/0.1759, allocations: 5.682 MB / 0.5706 GB, free: 5.891 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.268/8.443, allocations: 2.344 kB / 0.5706 GB, free: 5.891 MB / 430.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.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_1_0_ModelicaTest_ComplexMath_TestComplexFunctions.fmu > ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/ComplexMath/TestComplexFunctions/TestComplexFunctions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.682096529999399]