Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008538/0.0008538, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009223/0.0009223, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.904/0.904, allocations: 177 MB / 204.1 MB, free: 5.758 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2445/0.2445, allocations: 34.25 MB / 294.8 MB, free: 0.6797 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexOperations,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_ComplexMath_TestComplexOperations",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexOperations,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_ComplexMath_TestComplexOperations",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.843e-06/1.843e-06, allocations: 3.938 kB / 442.1 MB, free: 1.617 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.525e-05/1.709e-05, allocations: 13.09 kB / 442.1 MB, free: 1.605 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.0009188/0.0009359, allocations: 465.1 kB / 442.6 MB, free: 1.152 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.1912/0.1921, allocations: 2.297 MB / 444.9 MB, free: 43.05 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.267e-05/0.1921, allocations: 2.875 kB / 444.9 MB, free: 43.05 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.513e-05/0.1922, allocations: 0 / 444.9 MB, free: 43.05 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 7.764e-06/0.1922, allocations: 0 / 444.9 MB, free: 43.05 MB / 410.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.001864/0.194, allocations: 1.104 MB / 446 MB, free: 42.67 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 6.609e-05/0.1941, allocations: 2.969 kB / 446 MB, free: 42.67 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.262e-05/0.1941, allocations: 3.375 kB / 446 MB, free: 42.67 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.778e-05/0.1942, allocations: 2.969 kB / 446 MB, free: 42.67 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.767e-05/0.1942, allocations: 4 kB / 446 MB, free: 42.66 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 7.083e-06/0.1942, allocations: 0 / 446 MB, free: 42.66 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001114/0.1953, allocations: 0.9833 MB / 447 MB, free: 42.48 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 9.658e-06/0.1953, allocations: 0 / 447 MB, free: 42.48 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 2.46e-05/0.1954, allocations: 2.906 kB / 447 MB, free: 42.48 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005118/0.1959, allocations: 0.5318 MB / 447.5 MB, free: 42.25 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.1959, allocations: 0 / 447.5 MB, free: 42.25 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1959, allocations: 0 / 447.5 MB, free: 42.25 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.761e-06/0.1959, allocations: 2.906 kB / 447.5 MB, free: 42.25 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.0003198/0.1962, allocations: 374 kB / 447.9 MB, free: 41.89 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.587e-05/0.1962, allocations: 8.656 kB / 447.9 MB, free: 41.89 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.062e-05/0.1963, allocations: 34.69 kB / 447.9 MB, free: 41.85 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.984e-05/0.1963, allocations: 0.9375 kB / 447.9 MB, free: 41.85 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.406e-05/0.1963, allocations: 104.6 kB / 448 MB, free: 41.73 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.105e-05/0.1963, allocations: 384 / 448 MB, free: 41.73 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.055e-06/0.1964, allocations: 3.844 kB / 448 MB, free: 41.73 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.256e-05/0.1964, allocations: 54.91 kB / 448.1 MB, free: 41.66 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.613e-06/0.1964, allocations: 3.031 kB / 448.1 MB, free: 41.66 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.007e-06/0.1965, allocations: 6 kB / 448.1 MB, free: 41.66 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.997e-06/0.1965, allocations: 4 kB / 448.1 MB, free: 41.66 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.088e-05/0.1965, allocations: 25.7 kB / 448.1 MB, free: 41.62 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.515e-05/0.1966, allocations: 123 kB / 448.2 MB, free: 41.47 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.922e-05/0.1966, allocations: 47.38 kB / 448.3 MB, free: 41.41 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.378e-05/0.1966, allocations: 30.56 kB / 448.3 MB, free: 41.37 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.973e-06/0.1966, allocations: 3.156 kB / 448.3 MB, free: 41.37 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.38e-05/0.1967, allocations: 56.27 kB / 448.4 MB, free: 41.3 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 1.162e-06/0.1967, allocations: 0 / 448.4 MB, free: 41.3 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001573/0.1968, allocations: 122.8 kB / 448.5 MB, free: 41.17 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.829e-05/0.1968, allocations: 81.17 kB / 448.6 MB, free: 41.07 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.676e-05/0.1969, allocations: 103.8 kB / 448.7 MB, free: 40.96 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.81e-06/0.1969, allocations: 25.7 kB / 448.7 MB, free: 40.93 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.484e-06/0.1969, allocations: 80.14 kB / 448.8 MB, free: 40.85 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.937e-05/0.1969, allocations: 3.234 kB / 448.8 MB, free: 40.85 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.953e-05/0.1969, allocations: 16.59 kB / 448.8 MB, free: 40.83 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.253e-05/0.197, allocations: 310.8 kB / 449.1 MB, free: 40.52 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.142e-05/0.197, allocations: 28.61 kB / 449.1 MB, free: 40.49 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.06e-05/0.197, allocations: 25.7 kB / 449.2 MB, free: 40.46 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.212e-05/0.197, allocations: 65.45 kB / 449.2 MB, free: 40.39 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.197, allocations: 5.562 kB / 449.2 MB, free: 40.38 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.428e-05/0.1971, allocations: 89.92 kB / 449.3 MB, free: 40.29 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.531e-05/0.1971, allocations: 31.48 kB / 449.3 MB, free: 40.25 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.55e-06/0.1971, allocations: 0 / 449.3 MB, free: 40.25 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.588e-05/0.1971, allocations: 10.97 kB / 449.4 MB, free: 40.25 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.222e-06/0.1971, allocations: 0 / 449.4 MB, free: 40.25 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.563e-06/0.1971, allocations: 4.75 kB / 449.4 MB, free: 40.25 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.752e-05/0.1971, allocations: 1.594 kB / 449.4 MB, free: 40.25 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.204e-06/0.1972, allocations: 0 / 449.4 MB, free: 40.25 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 4.604e-05/0.1972, allocations: 136 kB / 449.5 MB, free: 40.1 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.577e-06/0.1972, allocations: 4.031 kB / 449.5 MB, free: 40.1 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.171e-05/0.1972, allocations: 5.906 kB / 449.5 MB, free: 40.09 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.386e-06/0.1972, allocations: 7.031 kB / 449.5 MB, free: 40.09 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.1972, allocations: 0 / 449.5 MB, free: 40.09 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.1972, allocations: 0 / 449.5 MB, free: 40.09 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.496e-05/0.1973, allocations: 119.5 kB / 449.6 MB, free: 39.93 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.71e-07/0.1973, allocations: 3.938 kB / 449.6 MB, free: 39.93 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.81e-07/0.1973, allocations: 0 / 449.6 MB, free: 39.93 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.71e-07/0.1973, allocations: 0 / 449.6 MB, free: 39.93 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.075e-06/0.1973, allocations: 3.094 kB / 449.6 MB, free: 39.93 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.435e-06/0.1973, allocations: 6.844 kB / 449.6 MB, free: 39.93 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.1973, allocations: 4 kB / 449.6 MB, free: 39.92 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.971e-05/0.1974, allocations: 118.8 kB / 449.8 MB, free: 39.79 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.138e-06/0.1974, allocations: 0 / 449.8 MB, free: 39.79 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.089e-05/0.1974, allocations: 2.812 kB / 449.8 MB, free: 39.79 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.093e-06/0.1974, allocations: 6.625 kB / 449.8 MB, free: 39.79 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.338e-05/0.1974, allocations: 0 / 449.8 MB, free: 39.79 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.166e-06/0.1974, allocations: 6.75 kB / 449.8 MB, free: 39.78 MB / 410.7 MB Notification: Performance of sorting global known variables: time 1.08e-05/0.1974, allocations: 75.28 kB / 449.8 MB, free: 39.71 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1974, allocations: 0 / 449.8 MB, free: 39.71 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003254/0.1977, allocations: 158 kB / 450 MB, free: 39.66 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.0007002/0.1984, allocations: 0.964 MB / 451 MB, free: 38.91 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 9.173e-05/0.1985, allocations: 119.8 kB / 451.1 MB, free: 38.78 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.1985, allocations: 0 / 451.1 MB, free: 38.78 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.383e-05/0.1985, allocations: 86.73 kB / 451.2 MB, free: 38.68 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001094/0.1986, allocations: 3.938 kB / 451.2 MB, free: 38.68 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002973/0.1989, allocations: 204.8 kB / 451.4 MB, free: 38.48 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.891e-05/0.199, allocations: 57.39 kB / 451.4 MB, free: 38.41 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 5.13e-06/0.199, allocations: 2.875 kB / 451.4 MB, free: 38.41 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.507e-05/0.199, allocations: 8.5 kB / 451.4 MB, free: 38.41 MB / 410.7 MB Notification: Performance of SimCode: time 4.4e-07/0.199, allocations: 3.938 kB / 451.4 MB, free: 38.41 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0212/0.2202, allocations: 6.363 MB / 457.8 MB, free: 37.04 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.819/7.039, allocations: 3.188 kB / 457.8 MB, free: 37.04 MB / 410.7 MB " [Timeout remaining time 653] (rm -f ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_ComplexMath_TestComplexOperations_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_ComplexMath_TestComplexOperations.fmu > ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/ComplexMath/TestComplexOperations/TestComplexOperations.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_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: 8.972994923591614]