Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.0009517/0.0009517, allocations: 79.69 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.0008618/0.0008618, allocations: 170 kB / 23.95 MB, free: 0.6133 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.8905/0.8905, allocations: 177.1 MB / 204.3 MB, free: 5.719 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.2681/0.2681, allocations: 34.25 MB / 294.9 MB, free: 0.7227 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.TestComplexOperations,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_ComplexMath_TestComplexOperations",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexOperations,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_ComplexMath_TestComplexOperations",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.703e-06/1.703e-06, allocations: 0 / 442.1 MB, free: 1.695 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.378e-05/1.548e-05, allocations: 4.531 kB / 442.1 MB, free: 1.691 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.0008788/0.0008943, allocations: 469.1 kB / 442.6 MB, free: 1.234 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.1846/0.1854, allocations: 2.282 MB / 444.9 MB, free: 42.68 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.184e-05/0.1855, allocations: 0 / 444.9 MB, free: 42.68 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.582e-05/0.1855, allocations: 0 / 444.9 MB, free: 42.68 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 7.214e-06/0.1855, allocations: 0 / 444.9 MB, free: 42.68 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.001667/0.1872, allocations: 1.107 MB / 446 MB, free: 42.3 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 5.173e-05/0.1872, allocations: 2.719 kB / 446 MB, free: 42.3 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.724e-05/0.1873, allocations: 4 kB / 446 MB, free: 42.3 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.601e-05/0.1873, allocations: 2.094 kB / 446 MB, free: 42.3 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.353e-05/0.1873, allocations: 9.656 kB / 446 MB, free: 42.29 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 6.993e-06/0.1873, allocations: 0 / 446 MB, free: 42.29 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008689/0.1882, allocations: 0.9775 MB / 447 MB, free: 42.18 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 7.194e-06/0.1882, allocations: 1.438 kB / 447 MB, free: 42.18 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 1.758e-05/0.1882, allocations: 2.188 kB / 447 MB, free: 42.18 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004423/0.1886, allocations: 0.538 MB / 447.5 MB, free: 42.07 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.444e-06/0.1887, allocations: 0 / 447.5 MB, free: 42.07 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.452e-06/0.1887, allocations: 4.656 kB / 447.5 MB, free: 42.07 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.761e-06/0.1887, allocations: 0 / 447.5 MB, free: 42.07 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.0003086/0.189, allocations: 366.5 kB / 447.9 MB, free: 41.73 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.191e-05/0.189, allocations: 8.625 kB / 447.9 MB, free: 41.73 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.084e-05/0.189, allocations: 34.12 kB / 447.9 MB, free: 41.69 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.735e-05/0.1891, allocations: 7 kB / 447.9 MB, free: 41.69 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.209e-05/0.1891, allocations: 101.8 kB / 448 MB, free: 41.56 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.106e-05/0.1891, allocations: 384 / 448 MB, free: 41.56 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.698e-06/0.1891, allocations: 7.656 kB / 448 MB, free: 41.56 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.15e-05/0.1892, allocations: 54.91 kB / 448.1 MB, free: 41.5 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.174e-06/0.1892, allocations: 192 / 448.1 MB, free: 41.5 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.769e-06/0.1892, allocations: 4.125 kB / 448.1 MB, free: 41.5 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.679e-06/0.1892, allocations: 4 kB / 448.1 MB, free: 41.49 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.837e-05/0.1892, allocations: 35.42 kB / 448.1 MB, free: 41.46 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.933e-05/0.1893, allocations: 120 kB / 448.3 MB, free: 41.3 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.441e-05/0.1893, allocations: 43.16 kB / 448.3 MB, free: 41.25 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.287e-05/0.1894, allocations: 36.66 kB / 448.3 MB, free: 41.21 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.32e-06/0.1894, allocations: 0 / 448.3 MB, free: 41.21 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.395e-05/0.1894, allocations: 62.92 kB / 448.4 MB, free: 41.14 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 5.21e-07/0.1894, allocations: 0 / 448.4 MB, free: 41.14 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001349/0.1895, allocations: 119.4 kB / 448.5 MB, free: 41.01 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.592e-05/0.1895, allocations: 79.95 kB / 448.6 MB, free: 40.91 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.484e-05/0.1896, allocations: 97.25 kB / 448.7 MB, free: 40.81 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.148e-06/0.1896, allocations: 25.7 kB / 448.7 MB, free: 40.78 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.953e-06/0.1896, allocations: 82.48 kB / 448.8 MB, free: 40.7 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.82e-05/0.1896, allocations: 6.656 kB / 448.8 MB, free: 40.7 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.122e-05/0.1896, allocations: 9.719 kB / 448.8 MB, free: 40.68 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.952e-05/0.1896, allocations: 316.9 kB / 449.1 MB, free: 40.37 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.073e-05/0.1897, allocations: 25.7 kB / 449.1 MB, free: 40.34 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.284e-06/0.1897, allocations: 28.58 kB / 449.2 MB, free: 40.31 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.752e-05/0.1897, allocations: 63.14 kB / 449.2 MB, free: 40.24 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.1897, allocations: 64 / 449.2 MB, free: 40.24 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 3.194e-05/0.1897, allocations: 96.86 kB / 449.3 MB, free: 40.14 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.886e-05/0.1897, allocations: 35.17 kB / 449.4 MB, free: 40.1 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.591e-06/0.1897, allocations: 3.203 kB / 449.4 MB, free: 40.1 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.127e-05/0.1898, allocations: 3.938 kB / 449.4 MB, free: 40.1 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.463e-06/0.1898, allocations: 0 / 449.4 MB, free: 40.1 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.801e-06/0.1898, allocations: 0 / 449.4 MB, free: 40.1 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.167e-05/0.1898, allocations: 2.906 kB / 449.4 MB, free: 40.1 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.011e-06/0.1898, allocations: 0 / 449.4 MB, free: 40.1 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.44e-05/0.1898, allocations: 141.1 kB / 449.5 MB, free: 39.95 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.286e-06/0.1898, allocations: 4.031 kB / 449.5 MB, free: 39.95 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.318e-06/0.1898, allocations: 3 kB / 449.5 MB, free: 39.95 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-06/0.1898, allocations: 3.938 kB / 449.5 MB, free: 39.94 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.588e-06/0.1898, allocations: 2.781 kB / 449.5 MB, free: 39.94 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.294e-06/0.1898, allocations: 0 / 449.5 MB, free: 39.94 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.532e-05/0.1899, allocations: 115.9 kB / 449.6 MB, free: 39.79 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.21e-07/0.1899, allocations: 2.812 kB / 449.6 MB, free: 39.79 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.51e-07/0.1899, allocations: 0 / 449.6 MB, free: 39.79 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.31e-07/0.1899, allocations: 1.594 kB / 449.6 MB, free: 39.79 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.773e-06/0.1899, allocations: 0 / 449.6 MB, free: 39.79 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.92e-07/0.1899, allocations: 3.938 kB / 449.6 MB, free: 39.79 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.1899, allocations: 4 kB / 449.6 MB, free: 39.78 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.132e-05/0.1899, allocations: 121.5 kB / 449.8 MB, free: 39.65 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.519e-06/0.1899, allocations: 7.172 kB / 449.8 MB, free: 39.65 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.063e-05/0.19, allocations: 7.656 kB / 449.8 MB, free: 39.65 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.829e-06/0.19, allocations: 3.938 kB / 449.8 MB, free: 39.64 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.196e-05/0.19, allocations: 0 / 449.8 MB, free: 39.64 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.92e-07/0.19, allocations: 0 / 449.8 MB, free: 39.64 MB / 410.7 MB Notification: Performance of sorting global known variables: time 9.087e-06/0.19, allocations: 78.16 kB / 449.9 MB, free: 39.57 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.19, allocations: 0 / 449.9 MB, free: 39.57 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002552/0.1902, allocations: 154.5 kB / 450 MB, free: 39.55 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.0005583/0.1908, allocations: 0.9606 MB / 451 MB, free: 38.83 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 9.797e-05/0.1909, allocations: 119.8 kB / 451.1 MB, free: 38.7 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.1909, allocations: 0 / 451.1 MB, free: 38.7 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.75e-05/0.1909, allocations: 83.14 kB / 451.2 MB, free: 38.61 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001026/0.191, allocations: 20.39 kB / 451.2 MB, free: 38.6 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002769/0.1913, allocations: 213.5 kB / 451.4 MB, free: 38.4 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 1.975e-05/0.1913, allocations: 54.23 kB / 451.4 MB, free: 38.33 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 4.217e-06/0.1913, allocations: 0 / 451.4 MB, free: 38.33 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.284e-05/0.1913, allocations: 11.41 kB / 451.5 MB, free: 38.33 MB / 410.7 MB Notification: Performance of SimCode: time 3.9e-07/0.1913, allocations: 0 / 451.5 MB, free: 38.33 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01638/0.2077, allocations: 6.383 MB / 457.8 MB, free: 36.95 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.798/7.006, allocations: 3.688 kB / 457.8 MB, free: 36.95 MB / 410.7 MB " [Timeout remaining time 653] (rm -f ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_ComplexMath_TestComplexOperations_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_ComplexMath_TestComplexOperations.fmu > ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_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_4.1.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.947627738118172]