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.0008206/0.0008206, allocations: 80.34 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.001691/0.001691, allocations: 160.9 kB / 23.95 MB, free: 0.6172 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.8903/0.8903, allocations: 177 MB / 204.1 MB, free: 5.758 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.2528/0.2528, allocations: 34.24 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.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 1.774e-06/1.774e-06, allocations: 0 / 442.1 MB, free: 1.625 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.247e-05/2.425e-05, allocations: 6.219 kB / 442.1 MB, free: 1.617 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001643/0.001668, allocations: 473.1 kB / 442.6 MB, free: 1.156 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.1668/0.1685, allocations: 2.281 MB / 444.9 MB, free: 43.07 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.854e-05/0.1685, allocations: 4.438 kB / 444.9 MB, free: 43.07 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.493e-05/0.1685, allocations: 3.938 kB / 444.9 MB, free: 43.07 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 6.472e-06/0.1685, 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.001724/0.1703, allocations: 1.111 MB / 446 MB, free: 42.69 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 5.612e-05/0.1703, allocations: 3.984 kB / 446 MB, free: 42.68 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.99e-05/0.1703, allocations: 2.812 kB / 446 MB, free: 42.68 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.935e-05/0.1704, allocations: 0 / 446 MB, free: 42.68 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.627e-05/0.1704, allocations: 4 kB / 446 MB, free: 42.68 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 8.255e-06/0.1704, allocations: 2.875 kB / 446 MB, free: 42.68 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009961/0.1714, allocations: 0.9793 MB / 447 MB, free: 42.51 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 9.308e-06/0.1714, allocations: 2.844 kB / 447 MB, free: 42.51 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 2.212e-05/0.1714, allocations: 0 / 447 MB, free: 42.51 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004887/0.1719, allocations: 0.5375 MB / 447.5 MB, free: 42.28 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.548e-06/0.1719, allocations: 0 / 447.5 MB, free: 42.28 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.324e-06/0.1719, allocations: 0 / 447.5 MB, free: 42.28 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7.344e-06/0.1719, allocations: 0 / 447.5 MB, free: 42.28 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.0003096/0.1723, allocations: 370.4 kB / 447.9 MB, free: 41.93 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.131e-05/0.1723, allocations: 11.75 kB / 447.9 MB, free: 41.93 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.081e-05/0.1723, allocations: 30.75 kB / 447.9 MB, free: 41.89 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.704e-05/0.1723, allocations: 3.906 kB / 447.9 MB, free: 41.89 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 3.931e-05/0.1724, allocations: 101.8 kB / 448 MB, free: 41.76 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.126e-05/0.1724, allocations: 3.703 kB / 448 MB, free: 41.76 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.804e-06/0.1724, allocations: 3.25 kB / 448 MB, free: 41.76 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.671e-05/0.1725, allocations: 58.81 kB / 448.1 MB, free: 41.7 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.364e-06/0.1725, allocations: 192 / 448.1 MB, free: 41.7 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.774e-06/0.1725, allocations: 4.125 kB / 448.1 MB, free: 41.69 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.488e-06/0.1725, allocations: 0 / 448.1 MB, free: 41.69 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.931e-05/0.1725, allocations: 32.48 kB / 448.1 MB, free: 41.66 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.792e-05/0.1726, allocations: 120 kB / 448.2 MB, free: 41.5 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.642e-05/0.1726, allocations: 43.31 kB / 448.3 MB, free: 41.45 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.384e-05/0.1726, allocations: 33.47 kB / 448.3 MB, free: 41.41 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.923e-06/0.1727, allocations: 3.938 kB / 448.3 MB, free: 41.4 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.586e-05/0.1727, allocations: 56.27 kB / 448.4 MB, free: 41.33 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 7.92e-07/0.1727, allocations: 0 / 448.4 MB, free: 41.33 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001493/0.1728, allocations: 122.8 kB / 448.5 MB, free: 41.2 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.709e-05/0.1729, allocations: 79.98 kB / 448.6 MB, free: 41.11 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.578e-05/0.1729, allocations: 104.5 kB / 448.7 MB, free: 41 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.769e-06/0.1729, allocations: 25.7 kB / 448.7 MB, free: 40.97 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.505e-06/0.1729, allocations: 80.14 kB / 448.8 MB, free: 40.89 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.423e-05/0.1729, allocations: 0 / 448.8 MB, free: 40.89 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.938e-05/0.1729, allocations: 16.56 kB / 448.8 MB, free: 40.87 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.061e-05/0.1729, allocations: 313.6 kB / 449.1 MB, free: 40.55 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.768e-06/0.173, allocations: 25.7 kB / 449.1 MB, free: 40.52 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.326e-06/0.173, allocations: 32.64 kB / 449.2 MB, free: 40.49 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.657e-05/0.173, allocations: 62.39 kB / 449.2 MB, free: 40.42 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.173, allocations: 0 / 449.2 MB, free: 40.42 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 3.448e-05/0.173, allocations: 96.05 kB / 449.3 MB, free: 40.32 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.344e-05/0.1731, allocations: 34.25 kB / 449.3 MB, free: 40.29 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.2e-06/0.1731, allocations: 0 / 449.3 MB, free: 40.29 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.2e-05/0.1731, allocations: 3.938 kB / 449.3 MB, free: 40.28 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.824e-06/0.1731, allocations: 2.766 kB / 449.3 MB, free: 40.28 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.289e-06/0.1731, allocations: 1.875 kB / 449.3 MB, free: 40.28 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.342e-05/0.1731, allocations: 2.688 kB / 449.4 MB, free: 40.28 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.851e-06/0.1731, allocations: 0 / 449.4 MB, free: 40.28 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.001e-05/0.1731, allocations: 135.7 kB / 449.5 MB, free: 40.14 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.236e-06/0.1731, allocations: 32 / 449.5 MB, free: 40.14 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.016e-05/0.1731, allocations: 14.23 kB / 449.5 MB, free: 40.12 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.1731, allocations: 7.875 kB / 449.5 MB, free: 40.12 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.1732, allocations: 3.344 kB / 449.5 MB, free: 40.12 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.1732, allocations: 0 / 449.5 MB, free: 40.12 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.564e-05/0.1732, allocations: 115.4 kB / 449.6 MB, free: 39.96 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.01e-07/0.1732, allocations: 0 / 449.6 MB, free: 39.96 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.5e-07/0.1732, allocations: 0 / 449.6 MB, free: 39.96 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.61e-07/0.1732, allocations: 0 / 449.6 MB, free: 39.96 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.212e-06/0.1732, allocations: 3.281 kB / 449.6 MB, free: 39.96 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.11e-07/0.1732, allocations: 6.906 kB / 449.6 MB, free: 39.96 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.61e-07/0.1732, allocations: 0 / 449.6 MB, free: 39.96 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.873e-05/0.1732, allocations: 124.8 kB / 449.8 MB, free: 39.82 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.748e-06/0.1733, allocations: 0 / 449.8 MB, free: 39.82 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.947e-06/0.1733, allocations: 2.781 kB / 449.8 MB, free: 39.82 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.472e-06/0.1733, allocations: 6.625 kB / 449.8 MB, free: 39.82 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.07e-05/0.1733, allocations: 0 / 449.8 MB, free: 39.82 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.703e-06/0.1733, allocations: 6.562 kB / 449.8 MB, free: 39.82 MB / 410.7 MB Notification: Performance of sorting global known variables: time 8.727e-06/0.1733, allocations: 75.28 kB / 449.8 MB, free: 39.74 MB / 410.7 MB Notification: Performance of sort global known variables: time 4e-08/0.1733, allocations: 0 / 449.8 MB, free: 39.74 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002727/0.1736, allocations: 161.2 kB / 450 MB, free: 39.7 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.0006439/0.1742, allocations: 0.9662 MB / 451 MB, free: 38.95 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 9.314e-05/0.1743, allocations: 115.5 kB / 451.1 MB, free: 38.82 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.442e-06/0.1743, allocations: 0 / 451.1 MB, free: 38.82 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.884e-05/0.1743, allocations: 87.55 kB / 451.2 MB, free: 38.71 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001042/0.1744, allocations: 6.438 kB / 451.2 MB, free: 38.71 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003166/0.1747, allocations: 206.3 kB / 451.4 MB, free: 38.52 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.711e-05/0.1748, allocations: 57.39 kB / 451.4 MB, free: 38.45 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 6.292e-06/0.1748, allocations: 0 / 451.4 MB, free: 38.45 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.838e-05/0.1748, allocations: 8.5 kB / 451.4 MB, free: 38.44 MB / 410.7 MB Notification: Performance of SimCode: time 1.042e-06/0.1748, allocations: 3.938 kB / 451.4 MB, free: 38.44 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01629/0.1911, allocations: 6.367 MB / 457.8 MB, free: 37.07 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.873/7.064, allocations: 7.594 kB / 457.8 MB, free: 37.07 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_ComplexMath_TestComplexFunctions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_ComplexMath_TestComplexFunctions.fmu > ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions_res.mat","/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.97225910704583]