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.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.000793/0.000793, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 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.0007984/0.0007984, allocations: 170.3 kB / 23.95 MB, free: 0.6094 MB / 18.57 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 0.8863/0.8863, allocations: 177.1 MB / 204.2 MB, free: 5.758 MB / 186.7 MB " [Timeout remaining time 179] 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.2369/0.2369, allocations: 32.79 MB / 293.5 MB, free: 1.211 MB / 266.7 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.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.843e-06/1.843e-06, allocations: 0 / 439.5 MB, free: 4.293 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.151e-05/1.336e-05, allocations: 7.406 kB / 439.5 MB, free: 4.285 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.0009077/0.0009211, allocations: 475.3 kB / 440 MB, free: 3.824 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.002316/0.003237, allocations: 2.287 MB / 442.3 MB, free: 1.516 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.179e-05/0.003258, allocations: 3.938 kB / 442.3 MB, free: 1.512 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.415e-05/0.003273, allocations: 4 kB / 442.3 MB, free: 1.508 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 6.232e-06/0.003279, allocations: 4 kB / 442.3 MB, free: 1.504 MB / 410.7 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.001951/0.00523, allocations: 1.104 MB / 443.4 MB, free: 408 kB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 5.041e-05/0.00528, allocations: 4 kB / 443.4 MB, free: 404 kB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.373e-05/0.005314, allocations: 4 kB / 443.4 MB, free: 400 kB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.609e-05/0.00534, allocations: 0 / 443.4 MB, free: 400 kB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.314e-05/0.005363, allocations: 4 kB / 443.4 MB, free: 396 kB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 8.115e-06/0.005372, allocations: 0 / 443.4 MB, free: 396 kB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1837/0.1891, allocations: 0.9706 MB / 444.4 MB, free: 43.36 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 1.297e-05/0.1891, allocations: 6.969 kB / 444.4 MB, free: 43.36 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 2.856e-05/0.1891, allocations: 0 / 444.4 MB, free: 43.36 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005723/0.1897, allocations: 0.5358 MB / 444.9 MB, free: 43.36 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.545e-06/0.1897, allocations: 6.25 kB / 444.9 MB, free: 43.36 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1897, allocations: 0 / 444.9 MB, free: 43.36 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.108e-06/0.1897, allocations: 0 / 444.9 MB, free: 43.36 MB / 410.7 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.000226/0.1899, allocations: 361.6 kB / 445.3 MB, free: 43.04 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.336e-05/0.19, allocations: 11 kB / 445.3 MB, free: 43.04 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.804e-05/0.1901, allocations: 33.69 kB / 445.3 MB, free: 43 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.086e-05/0.1901, allocations: 0.9375 kB / 445.3 MB, free: 43 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.17e-05/0.1901, allocations: 105.1 kB / 445.4 MB, free: 42.87 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.215e-05/0.1901, allocations: 1.844 kB / 445.4 MB, free: 42.87 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.692e-06/0.1901, allocations: 3.375 kB / 445.4 MB, free: 42.87 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001139/0.1903, allocations: 59.22 kB / 445.5 MB, free: 42.81 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.187e-06/0.1903, allocations: 0.9062 kB / 445.5 MB, free: 42.81 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.145e-06/0.1903, allocations: 384 / 445.5 MB, free: 42.81 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.608e-06/0.1903, allocations: 4.5 kB / 445.5 MB, free: 42.8 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.1e-05/0.1903, allocations: 29.95 kB / 445.5 MB, free: 42.77 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.778e-05/0.1904, allocations: 122.4 kB / 445.7 MB, free: 42.62 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.429e-05/0.1904, allocations: 42.62 kB / 445.7 MB, free: 42.57 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.542e-05/0.1904, allocations: 39.98 kB / 445.7 MB, free: 42.53 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.952e-06/0.1904, allocations: 0 / 445.7 MB, free: 42.53 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.694e-05/0.1905, allocations: 65.22 kB / 445.8 MB, free: 42.46 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 1.082e-06/0.1905, allocations: 0 / 445.8 MB, free: 42.46 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001437/0.1906, allocations: 119 kB / 445.9 MB, free: 42.33 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.564e-05/0.1906, allocations: 78.7 kB / 446 MB, free: 42.23 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.4e-05/0.1907, allocations: 93.12 kB / 446.1 MB, free: 42.14 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.709e-06/0.1907, allocations: 27.42 kB / 446.1 MB, free: 42.11 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.524e-06/0.1907, allocations: 84.64 kB / 446.2 MB, free: 42.02 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.545e-05/0.1907, allocations: 0 / 446.2 MB, free: 42.02 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.307e-05/0.1907, allocations: 16.19 kB / 446.2 MB, free: 42.01 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.941e-05/0.1907, allocations: 317.7 kB / 446.5 MB, free: 41.7 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.336e-05/0.1907, allocations: 28.64 kB / 446.6 MB, free: 41.66 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.009e-05/0.1908, allocations: 31.81 kB / 446.6 MB, free: 41.63 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.853e-05/0.1908, allocations: 59.2 kB / 446.6 MB, free: 41.56 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-06/0.1908, allocations: 0 / 446.6 MB, free: 41.56 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.065e-05/0.1908, allocations: 92.08 kB / 446.7 MB, free: 41.47 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.328e-05/0.1909, allocations: 31.27 kB / 446.8 MB, free: 41.44 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.368e-06/0.1909, allocations: 3.031 kB / 446.8 MB, free: 41.44 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.131e-05/0.1909, allocations: 0 / 446.8 MB, free: 41.44 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.172e-06/0.1909, allocations: 9.375 kB / 446.8 MB, free: 41.43 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.967e-06/0.1909, allocations: 0 / 446.8 MB, free: 41.43 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.523e-05/0.1909, allocations: 6.219 kB / 446.8 MB, free: 41.43 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.072e-06/0.1909, allocations: 0 / 446.8 MB, free: 41.43 MB / 410.7 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 3.907e-05/0.1909, allocations: 140.8 kB / 446.9 MB, free: 41.29 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.617e-06/0.1909, allocations: 0.8438 kB / 446.9 MB, free: 41.29 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.01e-05/0.191, allocations: 3 kB / 446.9 MB, free: 41.29 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-06/0.191, allocations: 0.7812 kB / 446.9 MB, free: 41.29 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.191, allocations: 6.781 kB / 446.9 MB, free: 41.28 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/0.191, allocations: 3.047 kB / 446.9 MB, free: 41.28 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.889e-05/0.191, allocations: 118.4 kB / 447 MB, free: 41.13 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.191, allocations: 3.875 kB / 447 MB, free: 41.13 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.1e-07/0.191, allocations: 0 / 447 MB, free: 41.13 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.01e-07/0.191, allocations: 2.062 kB / 447.1 MB, free: 41.13 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.5e-06/0.191, allocations: 0 / 447.1 MB, free: 41.13 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.41e-07/0.191, allocations: 0 / 447.1 MB, free: 41.13 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.191, allocations: 3.938 kB / 447.1 MB, free: 41.12 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.164e-05/0.1911, allocations: 120.6 kB / 447.2 MB, free: 41 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.15e-06/0.1911, allocations: 3.312 kB / 447.2 MB, free: 41 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.041e-05/0.1911, allocations: 0 / 447.2 MB, free: 41 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.514e-06/0.1911, allocations: 4.188 kB / 447.2 MB, free: 41 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.517e-05/0.1911, allocations: 3.938 kB / 447.2 MB, free: 41 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.444e-06/0.1911, allocations: 0 / 447.2 MB, free: 41 MB / 410.7 MB Notification: Performance of sorting global known variables: time 1.152e-05/0.1911, allocations: 81.81 kB / 447.3 MB, free: 40.92 MB / 410.7 MB Notification: Performance of sort global known variables: time 4e-08/0.1911, allocations: 0 / 447.3 MB, free: 40.92 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0004091/0.1915, allocations: 160.8 kB / 447.4 MB, free: 40.89 MB / 410.7 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.0006538/0.1922, allocations: 0.9684 MB / 448.4 MB, free: 40.21 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 7.596e-05/0.1923, allocations: 108.2 kB / 448.5 MB, free: 40.08 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.502e-06/0.1923, allocations: 2.625 kB / 448.5 MB, free: 40.08 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.459e-05/0.1923, allocations: 90.48 kB / 448.6 MB, free: 39.99 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.317e-05/0.1924, allocations: 6.688 kB / 448.6 MB, free: 39.98 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002637/0.1926, allocations: 206.3 kB / 448.8 MB, free: 39.79 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.177e-05/0.1927, allocations: 58.39 kB / 448.9 MB, free: 39.72 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 9.298e-06/0.1927, allocations: 0 / 448.9 MB, free: 39.72 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.287e-05/0.1927, allocations: 15.22 kB / 448.9 MB, free: 39.71 MB / 410.7 MB Notification: Performance of SimCode: time 4.9e-07/0.1927, allocations: 0 / 448.9 MB, free: 39.71 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0175/0.2102, allocations: 6.381 MB / 455.2 MB, free: 38.37 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.832/7.043, allocations: 14.89 kB / 455.3 MB, free: 38.36 MB / 410.7 MB " [Timeout remaining time 653] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_ComplexMath_TestComplexFunctions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_ComplexMath_TestComplexFunctions.fmu > ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/ComplexMath/TestComplexFunctions/TestComplexFunctions.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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: 8.91822302620858]