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.0008119/0.0008119, allocations: 76.36 kB / 20.67 MB, free: 3.895 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.0008944/0.0008944, 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.9123/0.9123, allocations: 177 MB / 204.1 MB, free: 5.75 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.2318/0.2318, allocations: 34.23 MB / 294.8 MB, free: 0.6875 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 2.605e-06/2.605e-06, allocations: 0 / 442.1 MB, free: 1.609 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.222e-05/2.483e-05, allocations: 2.281 kB / 442.1 MB, free: 1.605 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.001155/0.00118, allocations: 477.1 kB / 442.6 MB, free: 1.141 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.1871/0.1883, allocations: 2.29 MB / 444.9 MB, free: 43.07 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.979e-05/0.1883, allocations: 0 / 444.9 MB, free: 43.07 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.498e-05/0.1883, allocations: 0 / 444.9 MB, free: 43.07 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 6.913e-06/0.1883, allocations: 0 / 444.9 MB, free: 43.07 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.001723/0.19, allocations: 1.102 MB / 446 MB, free: 42.7 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 5.448e-05/0.1901, allocations: 2.719 kB / 446 MB, free: 42.7 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.028e-05/0.1901, allocations: 3.234 kB / 446 MB, free: 42.7 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.036e-05/0.1902, allocations: 6.609 kB / 446 MB, free: 42.7 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.326e-05/0.1902, allocations: 3.812 kB / 446 MB, free: 42.7 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 7.184e-06/0.1902, allocations: 0 / 446 MB, free: 42.7 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009953/0.1912, allocations: 0.9818 MB / 447 MB, free: 42.52 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 8.966e-06/0.1912, allocations: 3.375 kB / 447 MB, free: 42.52 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 2.184e-05/0.1912, allocations: 0 / 447 MB, free: 42.52 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004567/0.1917, allocations: 0.5351 MB / 447.5 MB, free: 42.29 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.303e-06/0.1917, allocations: 0 / 447.5 MB, free: 42.29 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.1917, allocations: 0 / 447.5 MB, free: 42.29 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.699e-06/0.1917, allocations: 0 / 447.5 MB, free: 42.29 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.0003042/0.192, allocations: 367.3 kB / 447.9 MB, free: 41.94 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.612e-05/0.1921, allocations: 7.594 kB / 447.9 MB, free: 41.94 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.745e-05/0.1921, allocations: 37.34 kB / 447.9 MB, free: 41.9 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.359e-05/0.1921, allocations: 4.266 kB / 447.9 MB, free: 41.9 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 3.996e-05/0.1922, allocations: 105.3 kB / 448 MB, free: 41.77 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.195e-05/0.1922, allocations: 6.875 kB / 448 MB, free: 41.77 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.876e-06/0.1922, allocations: 384 / 448 MB, free: 41.77 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.143e-05/0.1923, allocations: 54.91 kB / 448.1 MB, free: 41.71 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.472e-06/0.1923, allocations: 192 / 448.1 MB, free: 41.71 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.849e-06/0.1923, allocations: 4.125 kB / 448.1 MB, free: 41.7 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.839e-06/0.1923, allocations: 0 / 448.1 MB, free: 41.7 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.33e-05/0.1923, allocations: 31.92 kB / 448.1 MB, free: 41.67 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.761e-05/0.1924, allocations: 119.6 kB / 448.2 MB, free: 41.52 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.955e-05/0.1924, allocations: 47 kB / 448.3 MB, free: 41.46 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.589e-05/0.1925, allocations: 34.5 kB / 448.3 MB, free: 41.41 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.816e-06/0.1925, allocations: 0 / 448.3 MB, free: 41.41 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.119e-05/0.1925, allocations: 62.45 kB / 448.4 MB, free: 41.34 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 1.132e-06/0.1925, allocations: 0 / 448.4 MB, free: 41.34 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001877/0.1927, allocations: 119.6 kB / 448.5 MB, free: 41.21 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.185e-05/0.1927, allocations: 80.34 kB / 448.6 MB, free: 41.12 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.763e-05/0.1927, allocations: 97.06 kB / 448.7 MB, free: 41.02 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 6.402e-06/0.1927, allocations: 25.7 kB / 448.7 MB, free: 40.98 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.153e-06/0.1928, allocations: 86.86 kB / 448.8 MB, free: 40.9 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.775e-05/0.1928, allocations: 0 / 448.8 MB, free: 40.9 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.708e-05/0.1928, allocations: 12.78 kB / 448.8 MB, free: 40.88 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.841e-05/0.1928, allocations: 314.8 kB / 449.1 MB, free: 40.57 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.013e-05/0.1929, allocations: 32.48 kB / 449.1 MB, free: 40.53 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.118e-05/0.1929, allocations: 28.98 kB / 449.2 MB, free: 40.5 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.516e-05/0.1929, allocations: 59.11 kB / 449.2 MB, free: 40.43 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.554e-06/0.1929, allocations: 0 / 449.2 MB, free: 40.43 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.008e-05/0.193, allocations: 93.28 kB / 449.3 MB, free: 40.33 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.559e-05/0.193, allocations: 31.36 kB / 449.3 MB, free: 40.3 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.193, allocations: 4 kB / 449.3 MB, free: 40.3 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.519e-05/0.193, allocations: 4.5 kB / 449.3 MB, free: 40.29 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.903e-06/0.193, allocations: 2.688 kB / 449.4 MB, free: 40.29 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.503e-06/0.193, allocations: 5.344 kB / 449.4 MB, free: 40.29 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.71e-05/0.193, allocations: 0 / 449.4 MB, free: 40.29 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.985e-06/0.193, allocations: 0 / 449.4 MB, free: 40.29 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 5.475e-05/0.1931, allocations: 139.5 kB / 449.5 MB, free: 40.14 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.214e-06/0.1931, allocations: 3.234 kB / 449.5 MB, free: 40.14 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.339e-05/0.1931, allocations: 5.812 kB / 449.5 MB, free: 40.14 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.028e-06/0.1931, allocations: 5.953 kB / 449.5 MB, free: 40.14 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.611e-06/0.1931, allocations: 4 kB / 449.5 MB, free: 40.13 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.1931, allocations: 0 / 449.5 MB, free: 40.13 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.289e-05/0.1932, allocations: 119.6 kB / 449.6 MB, free: 39.98 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.1932, allocations: 3.469 kB / 449.6 MB, free: 39.98 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.022e-06/0.1932, allocations: 0 / 449.6 MB, free: 39.98 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.823e-06/0.1932, allocations: 0 / 449.6 MB, free: 39.98 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.434e-06/0.1932, allocations: 0 / 449.6 MB, free: 39.98 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.585e-06/0.1932, allocations: 6.938 kB / 449.6 MB, free: 39.97 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.1932, allocations: 1.875 kB / 449.6 MB, free: 39.97 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.748e-05/0.1933, allocations: 111.1 kB / 449.7 MB, free: 39.85 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.741e-06/0.1933, allocations: 8.031 kB / 449.8 MB, free: 39.84 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.207e-05/0.1933, allocations: 2.781 kB / 449.8 MB, free: 39.84 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.01e-05/0.1933, allocations: 3.938 kB / 449.8 MB, free: 39.84 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.202e-05/0.1933, allocations: 0 / 449.8 MB, free: 39.84 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.098e-06/0.1933, allocations: 9.188 kB / 449.8 MB, free: 39.83 MB / 410.7 MB Notification: Performance of sorting global known variables: time 1.038e-05/0.1933, allocations: 79.22 kB / 449.8 MB, free: 39.75 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.1933, allocations: 0 / 449.8 MB, free: 39.75 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0004914/0.1938, allocations: 158.8 kB / 450 MB, free: 39.71 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.0009015/0.1947, allocations: 0.9692 MB / 451 MB, free: 38.96 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001158/0.1948, allocations: 111.8 kB / 451.1 MB, free: 38.83 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.1948, allocations: 0 / 451.1 MB, free: 38.83 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 2.077e-05/0.1949, allocations: 87.95 kB / 451.2 MB, free: 38.73 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001534/0.195, allocations: 6.688 kB / 451.2 MB, free: 38.73 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004077/0.1954, allocations: 208.1 kB / 451.4 MB, free: 38.53 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.797e-05/0.1955, allocations: 57.41 kB / 451.4 MB, free: 38.46 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 5.881e-06/0.1955, allocations: 0 / 451.4 MB, free: 38.46 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.566e-05/0.1955, allocations: 15.19 kB / 451.4 MB, free: 38.45 MB / 410.7 MB Notification: Performance of SimCode: time 1.162e-06/0.1955, allocations: 0 / 451.4 MB, free: 38.45 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02083/0.2163, allocations: 6.365 MB / 457.8 MB, free: 37.08 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.233/7.449, allocations: 7.062 kB / 457.8 MB, free: 37.08 MB / 410.7 MB " [Timeout remaining time 652] (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 & python3 -m fmpy simulate --output-file ModelicaTest_trunk_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_trunk_ModelicaTest_ComplexMath_TestComplexOperations.fmu > ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations_res.csv","/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] "Error: Failed to open simulation result ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations_res.csv: Error: Error opening file: ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations_res.csv " [Timeout remaining time 660] "" Variables in the reference:time,result Variables in the result: [Calling sys.exit(0), Time elapsed: 9.43857647664845]