Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.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.000891/0.000891, allocations: 79.7 kB / 20.67 MB, free: 3.895 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.001003/0.001003, allocations: 170 kB / 23.94 MB, free: 0.6211 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.9108/0.9108, allocations: 177.1 MB / 204.3 MB, free: 5.738 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.2623/0.2623, allocations: 32.78 MB / 293.5 MB, free: 1.207 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.TestComplexOperations,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_ComplexMath_TestComplexOperations",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexOperations,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_ComplexMath_TestComplexOperations",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.814e-06/1.814e-06, allocations: 3.938 kB / 439.5 MB, free: 4.301 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.042e-05/2.223e-05, allocations: 6.281 kB / 439.5 MB, free: 4.293 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.001276/0.001298, allocations: 485 kB / 440 MB, free: 3.82 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0026/0.003899, allocations: 2.291 MB / 442.3 MB, free: 1.508 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.362e-05/0.003922, allocations: 0 / 442.3 MB, free: 1.508 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.283e-05/0.003935, allocations: 0 / 442.3 MB, free: 1.508 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 7.554e-06/0.003943, allocations: 0 / 442.3 MB, free: 1.508 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.002491/0.006433, allocations: 1.105 MB / 443.4 MB, free: 412 kB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 6.035e-05/0.006494, allocations: 0 / 443.4 MB, free: 412 kB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.608e-05/0.00654, allocations: 4 kB / 443.4 MB, free: 408 kB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.995e-05/0.00657, allocations: 0 / 443.4 MB, free: 408 kB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.602e-05/0.006596, allocations: 3.938 kB / 443.4 MB, free: 404 kB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 7.925e-06/0.006604, allocations: 0 / 443.4 MB, free: 404 kB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1826/0.1892, allocations: 0.9775 MB / 444.4 MB, free: 43.38 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 1.041e-05/0.1892, allocations: 0 / 444.4 MB, free: 43.38 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 2.215e-05/0.1893, allocations: 0 / 444.4 MB, free: 43.38 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004417/0.1897, allocations: 0.5385 MB / 444.9 MB, free: 43.38 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.1897, allocations: 1.594 kB / 444.9 MB, free: 43.38 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1897, allocations: 0 / 444.9 MB, free: 43.38 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.649e-06/0.1897, allocations: 0 / 444.9 MB, free: 43.38 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.0002618/0.19, allocations: 368.7 kB / 445.3 MB, free: 43.05 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.811e-05/0.19, allocations: 10.81 kB / 445.3 MB, free: 43.05 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.734e-05/0.19, allocations: 30.75 kB / 445.3 MB, free: 43.01 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.508e-05/0.19, allocations: 2.406 kB / 445.3 MB, free: 43.01 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 3.688e-05/0.1901, allocations: 104.5 kB / 445.4 MB, free: 42.89 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.717e-06/0.1901, allocations: 384 / 445.4 MB, free: 42.89 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.093e-06/0.1901, allocations: 4.219 kB / 445.4 MB, free: 42.89 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.812e-05/0.1902, allocations: 63.28 kB / 445.5 MB, free: 42.82 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.512e-06/0.1902, allocations: 4.312 kB / 445.5 MB, free: 42.82 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.622e-06/0.1902, allocations: 384 / 445.5 MB, free: 42.82 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.398e-06/0.1902, allocations: 3.938 kB / 445.5 MB, free: 42.82 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.702e-05/0.1902, allocations: 25.7 kB / 445.5 MB, free: 42.79 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.669e-05/0.1903, allocations: 115.5 kB / 445.7 MB, free: 42.64 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.379e-05/0.1903, allocations: 49.02 kB / 445.7 MB, free: 42.58 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.409e-05/0.1903, allocations: 43.34 kB / 445.7 MB, free: 42.54 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.831e-06/0.1903, allocations: 0 / 445.7 MB, free: 42.54 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.204e-05/0.1903, allocations: 56.27 kB / 445.8 MB, free: 42.47 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 5.61e-07/0.1903, allocations: 0 / 445.8 MB, free: 42.47 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.00014/0.1905, allocations: 127.6 kB / 445.9 MB, free: 42.34 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.111e-05/0.1905, allocations: 77.67 kB / 446 MB, free: 42.25 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.225e-05/0.1905, allocations: 96.09 kB / 446.1 MB, free: 42.15 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.997e-06/0.1905, allocations: 25.7 kB / 446.1 MB, free: 42.12 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.993e-06/0.1905, allocations: 84.64 kB / 446.2 MB, free: 42.04 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.329e-05/0.1905, allocations: 2.688 kB / 446.2 MB, free: 42.04 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.819e-05/0.1906, allocations: 18.11 kB / 446.2 MB, free: 42.02 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.395e-05/0.1906, allocations: 312.6 kB / 446.5 MB, free: 41.71 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.407e-06/0.1906, allocations: 25.7 kB / 446.5 MB, free: 41.68 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.442e-06/0.1906, allocations: 28.48 kB / 446.6 MB, free: 41.65 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.47e-05/0.1906, allocations: 65.42 kB / 446.6 MB, free: 41.58 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.1906, allocations: 0 / 446.6 MB, free: 41.58 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 2.938e-05/0.1907, allocations: 90.25 kB / 446.7 MB, free: 41.48 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.873e-05/0.1907, allocations: 33.61 kB / 446.8 MB, free: 41.45 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.288e-06/0.1907, allocations: 0 / 446.8 MB, free: 41.45 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.272e-05/0.1907, allocations: 2.5 kB / 446.8 MB, free: 41.45 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.92e-07/0.1907, allocations: 3.938 kB / 446.8 MB, free: 41.45 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.178e-06/0.1907, allocations: 3.141 kB / 446.8 MB, free: 41.45 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.209e-05/0.1907, allocations: 6.719 kB / 446.8 MB, free: 41.45 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.492e-06/0.1907, allocations: 5.312 kB / 446.8 MB, free: 41.45 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.541e-05/0.1908, allocations: 134.2 kB / 446.9 MB, free: 41.3 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.936e-06/0.1908, allocations: 0 / 446.9 MB, free: 41.3 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.113e-06/0.1908, allocations: 3 kB / 446.9 MB, free: 41.3 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.062e-06/0.1908, allocations: 0 / 446.9 MB, free: 41.3 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.1908, allocations: 3.938 kB / 446.9 MB, free: 41.3 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.264e-06/0.1908, allocations: 6.219 kB / 446.9 MB, free: 41.3 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.034e-05/0.1908, allocations: 120.9 kB / 447 MB, free: 41.14 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.81e-07/0.1908, allocations: 0 / 447 MB, free: 41.14 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.7e-07/0.1908, allocations: 2.781 kB / 447 MB, free: 41.14 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.51e-07/0.1908, allocations: 0 / 447 MB, free: 41.14 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.949e-06/0.1908, allocations: 0 / 447 MB, free: 41.14 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3e-07/0.1908, allocations: 2.438 kB / 447 MB, free: 41.14 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.1908, allocations: 3.938 kB / 447.1 MB, free: 41.14 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.349e-05/0.1909, allocations: 116.4 kB / 447.2 MB, free: 41.02 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.677e-06/0.1909, allocations: 7.203 kB / 447.2 MB, free: 41.02 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.207e-06/0.1909, allocations: 4.281 kB / 447.2 MB, free: 41.02 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.959e-06/0.1909, allocations: 0 / 447.2 MB, free: 41.02 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.103e-05/0.1909, allocations: 8.906 kB / 447.2 MB, free: 41.01 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.643e-06/0.1909, allocations: 2.531 kB / 447.2 MB, free: 41.01 MB / 410.7 MB Notification: Performance of sorting global known variables: time 7.374e-06/0.1909, allocations: 75.28 kB / 447.3 MB, free: 40.94 MB / 410.7 MB Notification: Performance of sort global known variables: time 4e-08/0.1909, allocations: 0 / 447.3 MB, free: 40.94 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002404/0.1911, allocations: 154.8 kB / 447.4 MB, free: 40.91 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.0005344/0.1917, allocations: 0.971 MB / 448.4 MB, free: 40.22 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 6.733e-05/0.1917, allocations: 115.4 kB / 448.5 MB, free: 40.1 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.1917, allocations: 0 / 448.5 MB, free: 40.1 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.243e-05/0.1917, allocations: 83.48 kB / 448.6 MB, free: 40 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.841e-05/0.1918, allocations: 10.36 kB / 448.6 MB, free: 40 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002372/0.1921, allocations: 209.1 kB / 448.8 MB, free: 39.81 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.065e-05/0.1921, allocations: 58.2 kB / 448.9 MB, free: 39.73 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 4.91e-06/0.1921, allocations: 0 / 448.9 MB, free: 39.73 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.198e-05/0.1921, allocations: 11.25 kB / 448.9 MB, free: 39.73 MB / 410.7 MB Notification: Performance of SimCode: time 5.91e-07/0.1921, allocations: 0 / 448.9 MB, free: 39.73 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01596/0.2081, allocations: 6.389 MB / 455.3 MB, free: 38.38 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.765/6.973, allocations: 7.484 kB / 455.3 MB, free: 38.38 MB / 410.7 MB " [Timeout remaining time 653] (rm -f ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_ComplexMath_TestComplexOperations_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_ComplexMath_TestComplexOperations.fmu > ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/ComplexMath/TestComplexOperations/TestComplexOperations.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_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.932118426077068]