Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.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.001191/0.001191, 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.001371/0.001371, allocations: 160.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.9058/0.9058, allocations: 177 MB / 204.1 MB, free: 5.734 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.2395/0.2395, allocations: 34.24 MB / 294.8 MB, free: 0.6836 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.TestComplexFunctions,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_ComplexMath_TestComplexFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexFunctions,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_ComplexMath_TestComplexFunctions",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.805e-06/2.805e-06, allocations: 0 / 442.1 MB, free: 1.605 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.041e-05/3.321e-05, allocations: 2.281 kB / 442.1 MB, free: 1.602 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001854/0.001887, allocations: 485 kB / 442.6 MB, free: 1.129 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.1797/0.1816, allocations: 2.288 MB / 444.9 MB, free: 43.02 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.615e-05/0.1816, allocations: 0.7188 kB / 444.9 MB, free: 43.02 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.284e-05/0.1816, allocations: 0 / 444.9 MB, free: 43.02 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 6.823e-06/0.1816, allocations: 0.5625 kB / 444.9 MB, free: 43.02 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.00172/0.1833, allocations: 1.104 MB / 446 MB, free: 42.64 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 5.372e-05/0.1834, allocations: 7.047 kB / 446 MB, free: 42.64 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.737e-05/0.1834, allocations: 3.234 kB / 446 MB, free: 42.64 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.92e-05/0.1834, allocations: 3.188 kB / 446 MB, free: 42.64 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.232e-05/0.1835, allocations: 0 / 446 MB, free: 42.64 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 7.865e-06/0.1835, allocations: 0 / 446 MB, free: 42.64 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009282/0.1844, allocations: 0.9833 MB / 447 MB, free: 42.46 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 8.977e-06/0.1844, allocations: 0 / 447 MB, free: 42.46 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 2.078e-05/0.1844, allocations: 3.375 kB / 447 MB, free: 42.46 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004488/0.1849, allocations: 0.5361 MB / 447.5 MB, free: 42.23 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.1849, allocations: 0 / 447.5 MB, free: 42.23 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.1849, allocations: 0 / 447.5 MB, free: 42.23 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.439e-06/0.1849, allocations: 0 / 447.5 MB, free: 42.23 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.000272/0.1852, allocations: 363.8 kB / 447.9 MB, free: 41.89 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.602e-05/0.1852, allocations: 14.91 kB / 447.9 MB, free: 41.89 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.744e-05/0.1852, allocations: 30.75 kB / 447.9 MB, free: 41.85 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.431e-05/0.1852, allocations: 0.9375 kB / 447.9 MB, free: 41.85 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 3.316e-05/0.1853, allocations: 113 kB / 448 MB, free: 41.71 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.245e-06/0.1853, allocations: 3.281 kB / 448 MB, free: 41.71 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.583e-06/0.1853, allocations: 384 / 448 MB, free: 41.71 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.051e-05/0.1854, allocations: 54.75 kB / 448.1 MB, free: 41.65 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.701e-06/0.1854, allocations: 192 / 448.1 MB, free: 41.65 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.374e-06/0.1854, allocations: 4.125 kB / 448.1 MB, free: 41.65 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.977e-06/0.1854, allocations: 0 / 448.1 MB, free: 41.65 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.65e-05/0.1854, allocations: 35.81 kB / 448.1 MB, free: 41.61 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.484e-05/0.1855, allocations: 115.6 kB / 448.2 MB, free: 41.46 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.658e-05/0.1855, allocations: 46.94 kB / 448.3 MB, free: 41.4 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.716e-05/0.1855, allocations: 34.56 kB / 448.3 MB, free: 41.36 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.176e-06/0.1855, allocations: 0 / 448.3 MB, free: 41.36 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.314e-05/0.1856, allocations: 66.31 kB / 448.4 MB, free: 41.29 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 7.91e-07/0.1856, allocations: 0 / 448.4 MB, free: 41.29 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001652/0.1857, allocations: 118.3 kB / 448.5 MB, free: 41.16 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.252e-05/0.1858, allocations: 77.11 kB / 448.6 MB, free: 41.06 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.501e-05/0.1858, allocations: 99.88 kB / 448.7 MB, free: 40.96 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.95e-06/0.1858, allocations: 25.7 kB / 448.7 MB, free: 40.93 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.395e-06/0.1858, allocations: 80.14 kB / 448.8 MB, free: 40.85 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.75e-05/0.1858, allocations: 4 kB / 448.8 MB, free: 40.84 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.201e-05/0.1858, allocations: 16.66 kB / 448.8 MB, free: 40.82 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.237e-05/0.1859, allocations: 314.8 kB / 449.1 MB, free: 40.51 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.184e-05/0.1859, allocations: 28.7 kB / 449.1 MB, free: 40.48 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.707e-06/0.1859, allocations: 28.94 kB / 449.2 MB, free: 40.45 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.733e-05/0.1859, allocations: 66.11 kB / 449.2 MB, free: 40.37 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.973e-06/0.1859, allocations: 0 / 449.2 MB, free: 40.37 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 3.734e-05/0.1859, allocations: 85.98 kB / 449.3 MB, free: 40.28 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.601e-05/0.186, allocations: 30.98 kB / 449.3 MB, free: 40.25 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.556e-06/0.186, allocations: 5.188 kB / 449.3 MB, free: 40.25 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.301e-05/0.186, allocations: 11.41 kB / 449.3 MB, free: 40.24 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.012e-06/0.186, allocations: 0 / 449.3 MB, free: 40.24 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.531e-06/0.186, allocations: 2.531 kB / 449.3 MB, free: 40.24 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.3e-05/0.186, allocations: 0 / 449.3 MB, free: 40.24 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.093e-06/0.186, allocations: 6.469 kB / 449.4 MB, free: 40.23 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.269e-05/0.1861, allocations: 138.6 kB / 449.5 MB, free: 40.09 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.797e-06/0.1861, allocations: 4 kB / 449.5 MB, free: 40.09 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.458e-06/0.1861, allocations: 3 kB / 449.5 MB, free: 40.08 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.547e-06/0.1861, allocations: 6.875 kB / 449.5 MB, free: 40.08 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.1861, allocations: 0.8438 kB / 449.5 MB, free: 40.08 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.425e-06/0.1861, allocations: 4 kB / 449.5 MB, free: 40.07 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.644e-05/0.1861, allocations: 116 kB / 449.6 MB, free: 39.92 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.61e-07/0.1861, allocations: 2.781 kB / 449.6 MB, free: 39.92 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.4e-07/0.1861, allocations: 0 / 449.6 MB, free: 39.92 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.92e-07/0.1861, allocations: 0 / 449.6 MB, free: 39.92 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.7e-06/0.1861, allocations: 0 / 449.6 MB, free: 39.92 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.42e-07/0.1861, allocations: 3.938 kB / 449.6 MB, free: 39.92 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.1861, allocations: 2.875 kB / 449.6 MB, free: 39.92 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.094e-05/0.1862, allocations: 121 kB / 449.8 MB, free: 39.79 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.607e-06/0.1862, allocations: 0 / 449.8 MB, free: 39.79 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.135e-05/0.1862, allocations: 3 kB / 449.8 MB, free: 39.79 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.29e-06/0.1862, allocations: 7.938 kB / 449.8 MB, free: 39.78 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.25e-05/0.1862, allocations: 7.219 kB / 449.8 MB, free: 39.77 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.713e-06/0.1862, allocations: 6.5 kB / 449.8 MB, free: 39.77 MB / 410.7 MB Notification: Performance of sorting global known variables: time 9.007e-06/0.1862, allocations: 77.75 kB / 449.9 MB, free: 39.7 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.1862, allocations: 0 / 449.9 MB, free: 39.7 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002959/0.1865, allocations: 156.9 kB / 450 MB, free: 39.65 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.0006075/0.1871, allocations: 0.957 MB / 451 MB, free: 38.9 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 8.717e-05/0.1872, allocations: 114 kB / 451.1 MB, free: 38.78 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.383e-06/0.1872, allocations: 0 / 451.1 MB, free: 38.78 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.388e-05/0.1872, allocations: 87.86 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 9.398e-05/0.1873, allocations: 11.03 kB / 451.2 MB, free: 38.67 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002913/0.1876, allocations: 205.1 kB / 451.4 MB, free: 38.47 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.045e-05/0.1876, allocations: 57.17 kB / 451.4 MB, free: 38.4 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 5.31e-06/0.1877, allocations: 0 / 451.4 MB, free: 38.4 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.511e-05/0.1877, allocations: 8.5 kB / 451.4 MB, free: 38.4 MB / 410.7 MB Notification: Performance of SimCode: time 7.32e-07/0.1877, allocations: 3.938 kB / 451.4 MB, free: 38.39 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02043/0.2081, allocations: 6.378 MB / 457.8 MB, free: 37.03 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.039/7.247, allocations: 7.469 kB / 457.8 MB, free: 37.03 MB / 410.7 MB " [Timeout remaining time 653] (rm -f ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions_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_TestComplexFunctions.fmu > ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/ComplexMath/TestComplexFunctions/TestComplexFunctions.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Failed to open simulation result ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions_res.csv: Error: Error opening file: ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions_res.csv " [Timeout remaining time 660] "" Variables in the reference:time,result Variables in the result: [Calling sys.exit(0), Time elapsed: 9.260495803318918]