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.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.001568/0.001568, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.001519/0.001519, allocations: 209.7 kB / 23.73 MB, free: 4.387 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.642/1.642, allocations: 230.6 MB / 257.5 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2265/0.2265, allocations: 44.94 MB / 358.8 MB, free: 6.125 MB / 286.1 MB " [Timeout remaining time 180] 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.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_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"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002103/0.002103, allocations: 68.09 kB / 0.493 GB, free: 10.56 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3785/0.3806, allocations: 65.47 MB / 0.5569 GB, free: 7.34 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.00169/0.3823, allocations: 480.9 kB / 0.5574 GB, free: 6.984 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003748/0.386, allocations: 2.288 MB / 0.5596 GB, free: 4.789 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.007e-05/0.386, allocations: 0 / 0.5596 GB, free: 4.789 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.568e-05/0.3861, allocations: 0 / 0.5596 GB, free: 4.789 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.76e-06/0.3861, allocations: 0 / 0.5596 GB, free: 4.789 MB / 398.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.002883/0.3889, allocations: 1.102 MB / 0.5607 GB, free: 3.688 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.552e-05/0.389, allocations: 7.922 kB / 0.5607 GB, free: 3.68 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.32e-05/0.3891, allocations: 3.984 kB / 0.5607 GB, free: 3.676 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.024e-05/0.3891, allocations: 4 kB / 0.5607 GB, free: 3.672 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.612e-05/0.3891, allocations: 0 / 0.5607 GB, free: 3.672 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.123e-06/0.3891, allocations: 0 / 0.5607 GB, free: 3.672 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001605/0.3907, allocations: 0.9794 MB / 0.5617 GB, free: 2.691 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.096e-05/0.3907, allocations: 0 / 0.5617 GB, free: 2.691 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.469e-05/0.3908, allocations: 0 / 0.5617 GB, free: 2.691 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006679/0.3914, allocations: 441 kB / 0.5621 GB, free: 2.262 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.3914, allocations: 0 / 0.5621 GB, free: 2.262 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.3914, allocations: 0 / 0.5621 GB, free: 2.262 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.041e-06/0.3914, allocations: 0 / 0.5621 GB, free: 2.262 MB / 398.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.0005101/0.3919, allocations: 371.2 kB / 0.5624 GB, free: 1.863 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.203e-05/0.392, allocations: 8.031 kB / 0.5625 GB, free: 1.855 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.632e-05/0.392, allocations: 34.75 kB / 0.5625 GB, free: 1.812 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.171e-05/0.392, allocations: 4.938 kB / 0.5625 GB, free: 1.809 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.775e-05/0.3921, allocations: 110.5 kB / 0.5626 GB, free: 1.676 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.387e-05/0.3922, allocations: 8.312 kB / 0.5626 GB, free: 1.668 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.22e-05/0.3922, allocations: 384 / 0.5626 GB, free: 1.668 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001418/0.3923, allocations: 59.53 kB / 0.5627 GB, free: 1.598 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.606e-06/0.3923, allocations: 3.938 kB / 0.5627 GB, free: 1.594 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.446e-06/0.3923, allocations: 0 / 0.5627 GB, free: 1.594 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.688e-06/0.3923, allocations: 0 / 0.5627 GB, free: 1.594 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.662e-05/0.3924, allocations: 29.7 kB / 0.5627 GB, free: 1.559 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00015/0.3925, allocations: 116.8 kB / 0.5628 GB, free: 1.402 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.372e-05/0.3926, allocations: 56.23 kB / 0.5629 GB, free: 1.332 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.163e-05/0.3926, allocations: 34.56 kB / 0.5629 GB, free: 1.289 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.27e-06/0.3926, allocations: 0 / 0.5629 GB, free: 1.289 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.478e-05/0.3927, allocations: 64.27 kB / 0.563 GB, free: 1.211 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.11e-07/0.3927, allocations: 0 / 0.563 GB, free: 1.211 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002409/0.3929, allocations: 122.7 kB / 0.5631 GB, free: 1.066 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.823e-05/0.393, allocations: 77.11 kB / 0.5631 GB, free: 0.9727 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.703e-05/0.3931, allocations: 93.81 kB / 0.5632 GB, free: 0.8711 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.657e-05/0.3931, allocations: 25.7 kB / 0.5633 GB, free: 0.8398 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.065e-05/0.3931, allocations: 80.14 kB / 0.5633 GB, free: 0.7578 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.037e-05/0.3931, allocations: 4 kB / 0.5633 GB, free: 0.7539 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.906e-05/0.3932, allocations: 13.84 kB / 0.5634 GB, free: 0.7344 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001429/0.3933, allocations: 318.8 kB / 0.5637 GB, free: 424 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.704e-05/0.3933, allocations: 29.7 kB / 0.5637 GB, free: 388 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.152e-05/0.3934, allocations: 25.7 kB / 0.5637 GB, free: 356 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.18e-05/0.3934, allocations: 60.27 kB / 0.5638 GB, free: 280 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.175e-06/0.3934, allocations: 0 / 0.5638 GB, free: 280 kB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001071/0.3935, allocations: 97.03 kB / 0.5639 GB, free: 164 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.232e-05/0.3936, allocations: 33.64 kB / 0.5639 GB, free: 124 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.3936, allocations: 0 / 0.5639 GB, free: 124 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.871e-05/0.3936, allocations: 8.094 kB / 0.5639 GB, free: 116 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.243e-06/0.3936, allocations: 0 / 0.5639 GB, free: 116 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.081e-06/0.3936, allocations: 0 / 0.5639 GB, free: 116 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.784e-05/0.3936, allocations: 0 / 0.5639 GB, free: 116 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.794e-06/0.3936, allocations: 0 / 0.5639 GB, free: 116 kB / 398.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.0001432/0.3938, allocations: 135.6 kB / 0.564 GB, free: 15.96 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.035e-05/0.3938, allocations: 3.938 kB / 0.564 GB, free: 15.96 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.37e-05/0.3938, allocations: 6.938 kB / 0.564 GB, free: 15.95 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.81e-07/0.3938, allocations: 3.938 kB / 0.564 GB, free: 15.95 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.3938, allocations: 0 / 0.564 GB, free: 15.95 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.3938, allocations: 8 kB / 0.5641 GB, free: 15.94 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001185/0.3939, allocations: 112.8 kB / 0.5642 GB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.51e-07/0.3939, allocations: 0 / 0.5642 GB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.21e-07/0.3939, allocations: 0 / 0.5642 GB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.047e-06/0.3939, allocations: 3.938 kB / 0.5642 GB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.045e-05/0.3939, allocations: 4 kB / 0.5642 GB, free: 15.78 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.915e-06/0.3939, allocations: 4 kB / 0.5642 GB, free: 15.78 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.394, allocations: 7.922 kB / 0.5642 GB, free: 15.77 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001381/0.3941, allocations: 120.5 kB / 0.5643 GB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.294e-06/0.3941, allocations: 7.922 kB / 0.5643 GB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.132e-05/0.3941, allocations: 0 / 0.5643 GB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.051e-05/0.3941, allocations: 8.031 kB / 0.5643 GB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.344e-05/0.3941, allocations: 0 / 0.5643 GB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.124e-06/0.3941, allocations: 0 / 0.5643 GB, free: 15.61 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.039e-05/0.3942, allocations: 75.28 kB / 0.5644 GB, free: 15.53 MB / 414.1 MB Notification: Performance of sort global known variables: time 5e-08/0.3942, allocations: 0 / 0.5644 GB, free: 15.53 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004618/0.3946, allocations: 159.5 kB / 0.5645 GB, free: 15.38 MB / 414.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.001138/0.3958, allocations: 0.9401 MB / 0.5655 GB, free: 14.4 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001563/0.3959, allocations: 110.8 kB / 0.5656 GB, free: 14.27 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.3959, allocations: 0 / 0.5656 GB, free: 14.27 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 6.316e-05/0.396, allocations: 89.09 kB / 0.5656 GB, free: 14.16 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000132/0.3961, allocations: 8.125 kB / 0.5656 GB, free: 14.16 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004536/0.3966, allocations: 203.9 kB / 0.5658 GB, free: 13.91 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.856e-05/0.3966, allocations: 59.34 kB / 0.5659 GB, free: 13.83 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 7.073e-06/0.3966, allocations: 0 / 0.5659 GB, free: 13.83 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.024e-05/0.3967, allocations: 7.438 kB / 0.5659 GB, free: 13.82 MB / 414.1 MB Notification: Performance of SimCode: time 2.91e-07/0.3967, allocations: 0 / 0.5659 GB, free: 13.82 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03763/0.4343, allocations: 6.197 MB / 0.572 GB, free: 7.75 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.41/11.85, allocations: 7.922 kB / 0.572 GB, free: 7.742 MB / 414.1 MB " [Timeout remaining time 648] (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) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.986892617307603]