Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001234/0.001234, allocations: 79.7 kB / 20.67 MB, free: 3.891 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.001578/0.001578, allocations: 174.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.8692/0.8692, allocations: 177.2 MB / 204.3 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2494/0.2494, allocations: 34.25 MB / 294.9 MB, free: 0.6992 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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_1_0_ModelicaTest_ComplexMath_TestComplexFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexFunctions,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_ComplexMath_TestComplexFunctions",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.513e-06/1.513e-06, allocations: 0 / 442.1 MB, free: 1.684 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.598e-05/1.749e-05, allocations: 2.281 kB / 442.1 MB, free: 1.68 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001064/0.001082, allocations: 465.1 kB / 442.6 MB, free: 1.227 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.1836/0.1846, allocations: 2.285 MB / 444.9 MB, free: 43.12 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.728e-05/0.1847, allocations: 3.938 kB / 444.9 MB, free: 43.12 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.804e-05/0.1847, allocations: 0 / 444.9 MB, free: 43.12 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 7.093e-06/0.1847, allocations: 0 / 444.9 MB, free: 43.12 MB / 410.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.001643/0.1863, allocations: 1.11 MB / 446 MB, free: 42.75 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 5.01e-05/0.1864, allocations: 0.5 kB / 446 MB, free: 42.75 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.893e-05/0.1864, allocations: 6.344 kB / 446 MB, free: 42.75 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.69e-05/0.1865, allocations: 2.656 kB / 446 MB, free: 42.75 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.26e-05/0.1865, allocations: 3.984 kB / 446 MB, free: 42.74 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 7.363e-06/0.1865, allocations: 0 / 446 MB, free: 42.74 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008474/0.1873, allocations: 0.9809 MB / 447 MB, free: 42.59 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 8.787e-06/0.1873, allocations: 3.688 kB / 447 MB, free: 42.59 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 1.937e-05/0.1874, allocations: 0 / 447 MB, free: 42.59 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004211/0.1878, allocations: 0.5358 MB / 447.5 MB, free: 42.36 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.1878, allocations: 2.875 kB / 447.5 MB, free: 42.36 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.402e-06/0.1878, allocations: 0 / 447.5 MB, free: 42.36 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.452e-06/0.1878, allocations: 0 / 447.5 MB, free: 42.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.0002785/0.1881, allocations: 363.7 kB / 447.9 MB, free: 42.02 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.635e-05/0.1881, allocations: 11.59 kB / 447.9 MB, free: 42.02 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.931e-05/0.1881, allocations: 30.75 kB / 447.9 MB, free: 41.98 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.11e-05/0.1882, allocations: 0.9375 kB / 447.9 MB, free: 41.98 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 3.734e-05/0.1882, allocations: 112.1 kB / 448 MB, free: 41.85 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.608e-06/0.1882, allocations: 384 / 448 MB, free: 41.85 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.693e-06/0.1882, allocations: 5.875 kB / 448 MB, free: 41.84 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.73e-05/0.1883, allocations: 58.84 kB / 448.1 MB, free: 41.78 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.474e-06/0.1883, allocations: 192 / 448.1 MB, free: 41.78 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.035e-06/0.1883, allocations: 4.125 kB / 448.1 MB, free: 41.77 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-06/0.1883, allocations: 2.906 kB / 448.1 MB, free: 41.77 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.955e-05/0.1883, allocations: 29.08 kB / 448.1 MB, free: 41.74 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.487e-05/0.1884, allocations: 119 kB / 448.3 MB, free: 41.59 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.646e-05/0.1884, allocations: 47.25 kB / 448.3 MB, free: 41.53 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.215e-05/0.1885, allocations: 34.56 kB / 448.3 MB, free: 41.49 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.56e-06/0.1885, allocations: 3.938 kB / 448.3 MB, free: 41.48 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.365e-05/0.1885, allocations: 59.2 kB / 448.4 MB, free: 41.41 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 1.022e-06/0.1885, allocations: 1.219 kB / 448.4 MB, free: 41.41 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001374/0.1886, allocations: 118.7 kB / 448.5 MB, free: 41.29 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.406e-05/0.1886, allocations: 84.34 kB / 448.6 MB, free: 41.19 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.606e-05/0.1887, allocations: 93.12 kB / 448.7 MB, free: 41.09 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.777e-06/0.1887, allocations: 25.7 kB / 448.7 MB, free: 41.06 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.061e-06/0.1887, allocations: 85.42 kB / 448.8 MB, free: 40.98 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.327e-05/0.1887, allocations: 128 / 448.8 MB, free: 40.98 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.812e-05/0.1887, allocations: 16.66 kB / 448.8 MB, free: 40.96 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.766e-05/0.1887, allocations: 310.8 kB / 449.1 MB, free: 40.64 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.967e-06/0.1887, allocations: 29.64 kB / 449.1 MB, free: 40.61 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.475e-06/0.1887, allocations: 36.61 kB / 449.2 MB, free: 40.57 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.409e-05/0.1888, allocations: 62.67 kB / 449.2 MB, free: 40.5 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.203e-06/0.1888, allocations: 0 / 449.2 MB, free: 40.5 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 3.312e-05/0.1888, allocations: 85.77 kB / 449.3 MB, free: 40.41 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.342e-05/0.1888, allocations: 34.78 kB / 449.4 MB, free: 40.38 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.968e-06/0.1888, allocations: 0 / 449.4 MB, free: 40.38 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.157e-05/0.1888, allocations: 8.031 kB / 449.4 MB, free: 40.37 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.21e-07/0.1888, allocations: 0 / 449.4 MB, free: 40.37 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.23e-06/0.1888, allocations: 3.203 kB / 449.4 MB, free: 40.37 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.134e-05/0.1889, allocations: 2.906 kB / 449.4 MB, free: 40.37 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.262e-06/0.1889, allocations: 4 kB / 449.4 MB, free: 40.36 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.648e-05/0.1889, allocations: 134.5 kB / 449.5 MB, free: 40.22 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.737e-06/0.1889, allocations: 2.766 kB / 449.5 MB, free: 40.22 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.446e-06/0.1889, allocations: 6.938 kB / 449.5 MB, free: 40.21 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.22e-07/0.1889, allocations: 3.938 kB / 449.5 MB, free: 40.21 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.948e-06/0.1889, allocations: 2.875 kB / 449.5 MB, free: 40.21 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.335e-06/0.1889, allocations: 4 kB / 449.5 MB, free: 40.2 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.112e-05/0.189, allocations: 119.9 kB / 449.6 MB, free: 40.05 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.21e-07/0.189, allocations: 2.875 kB / 449.6 MB, free: 40.05 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.52e-07/0.189, allocations: 2.906 kB / 449.6 MB, free: 40.05 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.41e-07/0.189, allocations: 1.594 kB / 449.6 MB, free: 40.05 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.071e-06/0.189, allocations: 0 / 449.6 MB, free: 40.05 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.92e-07/0.189, allocations: 3.938 kB / 449.7 MB, free: 40.04 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.189, allocations: 1.375 kB / 449.7 MB, free: 40.04 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.974e-05/0.189, allocations: 117.6 kB / 449.8 MB, free: 39.91 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.975e-06/0.189, allocations: 0 / 449.8 MB, free: 39.91 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.318e-06/0.189, allocations: 6.562 kB / 449.8 MB, free: 39.91 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.019e-06/0.189, allocations: 3.938 kB / 449.8 MB, free: 39.91 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.13e-05/0.189, allocations: 0 / 449.8 MB, free: 39.91 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.984e-06/0.189, allocations: 5.906 kB / 449.8 MB, free: 39.91 MB / 410.7 MB Notification: Performance of sorting global known variables: time 8.736e-06/0.1891, allocations: 75.28 kB / 449.9 MB, free: 39.83 MB / 410.7 MB Notification: Performance of sort global known variables: time 4e-08/0.1891, allocations: 0 / 449.9 MB, free: 39.83 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002517/0.1893, allocations: 159.1 kB / 450 MB, free: 39.78 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.0005366/0.1898, allocations: 0.9589 MB / 451 MB, free: 39.04 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 6.718e-05/0.1899, allocations: 116.3 kB / 451.1 MB, free: 38.91 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.1899, allocations: 0 / 451.1 MB, free: 38.91 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.149e-05/0.1899, allocations: 84.02 kB / 451.2 MB, free: 38.81 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.441e-05/0.19, allocations: 12.69 kB / 451.2 MB, free: 38.8 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002392/0.1903, allocations: 214.1 kB / 451.4 MB, free: 38.6 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.147e-05/0.1903, allocations: 54.3 kB / 451.4 MB, free: 38.53 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 4.088e-06/0.1903, allocations: 0 / 451.4 MB, free: 38.53 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.258e-05/0.1903, allocations: 11.78 kB / 451.5 MB, free: 38.53 MB / 410.7 MB Notification: Performance of SimCode: time 4.41e-07/0.1903, allocations: 0 / 451.5 MB, free: 38.53 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01594/0.2062, allocations: 6.391 MB / 457.8 MB, free: 37.16 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.22/7.427, allocations: 9.438 kB / 457.9 MB, free: 37.16 MB / 410.7 MB " [Timeout remaining time 652] (rm -f ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0_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_4_1_0_ModelicaTest_ComplexMath_TestComplexFunctions.fmu > ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_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_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Failed to open simulation result ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions_res.csv: Error: Error opening file: ModelicaTest_4.1.0_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.40961600933224]