Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations.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.0013/0.0013, allocations: 124.5 kB / 17.79 MB, free: 5.227 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.001611/0.001611, allocations: 207.2 kB / 20.75 MB, free: 2.273 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.607/1.607, allocations: 230.6 MB / 254.1 MB, free: 15.09 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.92 MB / 357.1 MB, free: 10.4 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.TestComplexOperations,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_ComplexMath_TestComplexOperations",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexOperations,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_ComplexMath_TestComplexOperations",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001904/0.001904, allocations: 59.91 kB / 0.4909 GB, free: 8.059 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1165/0.1184, allocations: 65.99 MB / 0.5553 GB, free: 5.938 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.001552/0.12, allocations: 469 kB / 0.5558 GB, free: 5.477 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.003647/0.1236, allocations: 2.43 MB / 0.5582 GB, free: 3.027 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.227e-05/0.1237, allocations: 0 / 0.5582 GB, free: 3.027 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.389e-05/0.1237, allocations: 0 / 0.5582 GB, free: 3.027 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 4.708e-06/0.1237, allocations: 0 / 0.5582 GB, free: 3.027 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.003241/0.1269, allocations: 1.16 MB / 0.5593 GB, free: 1.867 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 7.115e-05/0.127, allocations: 4 kB / 0.5593 GB, free: 1.863 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.434e-05/0.127, allocations: 0 / 0.5593 GB, free: 1.863 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.725e-05/0.1271, allocations: 0 / 0.5593 GB, free: 1.863 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.512e-05/0.1271, allocations: 0 / 0.5593 GB, free: 1.863 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 7.444e-06/0.1271, allocations: 0 / 0.5593 GB, free: 1.863 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002006/0.1291, allocations: 1.05 MB / 0.5603 GB, free: 0.8125 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 9.948e-06/0.1291, allocations: 0 / 0.5603 GB, free: 0.8125 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.13e-05/0.1291, allocations: 4 kB / 0.5603 GB, free: 0.8086 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007527/0.1299, allocations: 439.1 kB / 0.5607 GB, free: 388 kB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.1299, allocations: 0 / 0.5607 GB, free: 388 kB / 414.1 MB Notification: Performance of FrontEnd: time 2.685e-06/0.1299, allocations: 0 / 0.5607 GB, free: 388 kB / 414.1 MB Notification: Performance of Transformations before backend: time 6.432e-06/0.1299, allocations: 0 / 0.5607 GB, free: 388 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.0006086/0.1305, allocations: 452.3 kB / 0.5612 GB, free: 15.88 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.649e-05/0.1306, allocations: 8.031 kB / 0.5612 GB, free: 15.88 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.464e-05/0.1306, allocations: 30.75 kB / 0.5612 GB, free: 15.84 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.055e-05/0.1306, allocations: 4.922 kB / 0.5612 GB, free: 15.83 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001254/0.1307, allocations: 172.3 kB / 0.5614 GB, free: 15.62 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.361e-05/0.1308, allocations: 4.375 kB / 0.5614 GB, free: 15.62 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.666e-06/0.1308, allocations: 384 / 0.5614 GB, free: 15.62 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001004/0.1309, allocations: 33.83 kB / 0.5614 GB, free: 15.58 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.244e-06/0.1309, allocations: 0 / 0.5614 GB, free: 15.58 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.596e-06/0.1309, allocations: 0 / 0.5614 GB, free: 15.58 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.1309, allocations: 0 / 0.5614 GB, free: 15.58 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.925e-05/0.1309, allocations: 0 / 0.5614 GB, free: 15.58 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001671/0.1311, allocations: 153.7 kB / 0.5616 GB, free: 15.38 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.326e-05/0.1311, allocations: 22.52 kB / 0.5616 GB, free: 15.35 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.639e-05/0.1311, allocations: 4.859 kB / 0.5616 GB, free: 15.34 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.846e-06/0.1312, allocations: 0 / 0.5616 GB, free: 15.34 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.758e-05/0.1312, allocations: 64.27 kB / 0.5617 GB, free: 15.27 MB / 430.1 MB Notification: Performance of pre-optimization done (n=1): time 7.11e-07/0.1312, allocations: 0 / 0.5617 GB, free: 15.27 MB / 430.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002042/0.1314, allocations: 67.39 kB / 0.5617 GB, free: 15.19 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.845e-05/0.1315, allocations: 77.11 kB / 0.5618 GB, free: 15.09 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.392e-05/0.1315, allocations: 97.94 kB / 0.5619 GB, free: 14.99 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.449e-05/0.1316, allocations: 25.7 kB / 0.5619 GB, free: 14.96 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.937e-05/0.1316, allocations: 80.14 kB / 0.562 GB, free: 14.88 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.11e-05/0.1316, allocations: 7.922 kB / 0.562 GB, free: 14.87 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.19e-05/0.1316, allocations: 13.72 kB / 0.562 GB, free: 14.85 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001626/0.1318, allocations: 314.8 kB / 0.5623 GB, free: 14.53 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.067e-05/0.1318, allocations: 3.938 kB / 0.5623 GB, free: 14.53 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.083e-05/0.1318, allocations: 7.984 kB / 0.5623 GB, free: 14.52 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.301e-05/0.1319, allocations: 60.33 kB / 0.5624 GB, free: 14.45 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.1319, allocations: 0 / 0.5624 GB, free: 14.45 MB / 430.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.756e-05/0.132, allocations: 59.41 kB / 0.5624 GB, free: 14.38 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.057e-05/0.132, allocations: 39.98 kB / 0.5625 GB, free: 14.33 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.242e-06/0.132, allocations: 0 / 0.5625 GB, free: 14.33 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.673e-05/0.132, allocations: 3.984 kB / 0.5625 GB, free: 14.33 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.51e-07/0.1321, allocations: 0 / 0.5625 GB, free: 14.33 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.937e-06/0.1321, allocations: 3.938 kB / 0.5625 GB, free: 14.32 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.862e-05/0.1321, allocations: 3.938 kB / 0.5625 GB, free: 14.32 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.608e-06/0.1321, allocations: 8.031 kB / 0.5625 GB, free: 14.31 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.0001142/0.1322, allocations: 135.5 kB / 0.5626 GB, free: 14.16 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.083e-05/0.1322, allocations: 3.938 kB / 0.5626 GB, free: 14.16 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.999e-06/0.1322, allocations: 3.125 kB / 0.5626 GB, free: 14.16 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.433e-06/0.1322, allocations: 0 / 0.5626 GB, free: 14.16 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.1322, allocations: 0 / 0.5626 GB, free: 14.16 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.495e-06/0.1322, allocations: 4 kB / 0.5626 GB, free: 14.16 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001267/0.1324, allocations: 145.7 kB / 0.5628 GB, free: 13.96 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.91e-07/0.1324, allocations: 0 / 0.5628 GB, free: 13.96 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.21e-07/0.1324, allocations: 0 / 0.5628 GB, free: 13.96 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.357e-06/0.1324, allocations: 7.938 kB / 0.5628 GB, free: 13.96 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.976e-06/0.1324, allocations: 4 kB / 0.5628 GB, free: 13.95 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.31e-07/0.1324, allocations: 0 / 0.5628 GB, free: 13.95 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.12e-07/0.1324, allocations: 0 / 0.5628 GB, free: 13.95 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001161/0.1325, allocations: 86.83 kB / 0.5629 GB, free: 13.84 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.396e-05/0.1325, allocations: 89.05 kB / 0.5629 GB, free: 13.74 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.244e-05/0.1326, allocations: 0 / 0.5629 GB, free: 13.74 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.247e-06/0.1326, allocations: 4.031 kB / 0.5629 GB, free: 13.73 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.744e-05/0.1326, allocations: 3.938 kB / 0.563 GB, free: 13.73 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.539e-06/0.1326, allocations: 4 kB / 0.563 GB, free: 13.73 MB / 430.1 MB Notification: Performance of sorting global known variables: time 3.354e-05/0.1326, allocations: 83.27 kB / 0.563 GB, free: 13.64 MB / 430.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.1326, allocations: 0 / 0.563 GB, free: 13.64 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0005432/0.1332, allocations: 151.5 kB / 0.5632 GB, free: 13.5 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.001144/0.1343, allocations: 0.9179 MB / 0.5641 GB, free: 12.55 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0001073/0.1344, allocations: 63.39 kB / 0.5641 GB, free: 12.47 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.1344, allocations: 3.938 kB / 0.5641 GB, free: 12.47 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 3.856e-05/0.1345, allocations: 55.41 kB / 0.5642 GB, free: 12.4 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001266/0.1346, allocations: 0 / 0.5642 GB, free: 12.4 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004161/0.135, allocations: 194.2 kB / 0.5644 GB, free: 12.17 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003045/0.1353, allocations: 0.6728 MB / 0.565 GB, free: 11.47 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 6.412e-06/0.1353, allocations: 0 / 0.565 GB, free: 11.47 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.727e-05/0.1353, allocations: 11.44 kB / 0.565 GB, free: 11.46 MB / 430.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1353, allocations: 4.125 kB / 0.5651 GB, free: 11.46 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03187/0.1672, allocations: 5.67 MB / 0.5706 GB, free: 5.875 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.34/8.507, allocations: 8.906 kB / 0.5706 GB, free: 5.871 MB / 430.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.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_1_0_ModelicaTest_ComplexMath_TestComplexOperations.fmu > ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/ComplexMath/TestComplexOperations/TestComplexOperations.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations.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.643975942992256]