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.0014/0.0014, allocations: 124.4 kB / 17.79 MB, free: 5.266 MB / 14.72 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.001461/0.001461, allocations: 199.3 kB / 20.74 MB, free: 2.32 MB / 14.72 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 1.563/1.563, allocations: 230.6 MB / 254.1 MB, free: 15.11 MB / 206.1 MB " [Timeout remaining time 178] 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.2539/0.2539, allocations: 46.91 MB / 357.1 MB, free: 10.44 MB / 286.1 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: translateModel(ModelicaTest.ComplexMath.TestComplexOperations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations") translateModel(ModelicaTest.ComplexMath.TestComplexOperations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002053/0.002053, allocations: 60.14 kB / 0.4914 GB, free: 7.609 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1758/0.1779, allocations: 66 MB / 0.5558 GB, free: 5.48 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.002899/0.1808, allocations: 474.6 kB / 0.5563 GB, free: 5.016 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.007616/0.1884, allocations: 2.422 MB / 0.5586 GB, free: 2.574 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.201e-05/0.1884, allocations: 4 kB / 0.5586 GB, free: 2.57 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.856e-05/0.1885, allocations: 0 / 0.5586 GB, free: 2.57 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 8.946e-06/0.1885, allocations: 4 kB / 0.5586 GB, free: 2.566 MB / 414.1 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.005761/0.1942, allocations: 1.156 MB / 0.5598 GB, free: 1.41 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 7.801e-05/0.1943, allocations: 3.984 kB / 0.5598 GB, free: 1.406 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.965e-05/0.1944, allocations: 0 / 0.5598 GB, free: 1.406 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.094e-05/0.1944, allocations: 8 kB / 0.5598 GB, free: 1.398 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.317e-05/0.1944, allocations: 3.984 kB / 0.5598 GB, free: 1.395 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 8.255e-06/0.1944, allocations: 4 kB / 0.5598 GB, free: 1.391 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00326/0.1977, allocations: 1.03 MB / 0.5608 GB, free: 368 kB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.123e-05/0.1977, allocations: 0 / 0.5608 GB, free: 368 kB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.611e-05/0.1977, allocations: 0 / 0.5608 GB, free: 368 kB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001485/0.1992, allocations: 451.1 kB / 0.5612 GB, free: 15.91 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.601e-06/0.1992, allocations: 0 / 0.5612 GB, free: 15.91 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.1992, allocations: 0 / 0.5612 GB, free: 15.91 MB / 430.1 MB Notification: Performance of Transformations before backend: time 9.508e-06/0.1992, allocations: 0 / 0.5612 GB, free: 15.91 MB / 430.1 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.0009189/0.2002, allocations: 444.3 kB / 0.5617 GB, free: 15.43 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.887e-05/0.2002, allocations: 12.03 kB / 0.5617 GB, free: 15.41 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.865e-05/0.2003, allocations: 8.875 kB / 0.5617 GB, free: 15.41 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001853/0.2005, allocations: 160.4 kB / 0.5618 GB, free: 15.21 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.311e-05/0.2005, allocations: 4.375 kB / 0.5618 GB, free: 15.21 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.275e-05/0.2005, allocations: 384 / 0.5618 GB, free: 15.21 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001721/0.2007, allocations: 41.98 kB / 0.5619 GB, free: 15.16 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.463e-05/0.2007, allocations: 3.844 kB / 0.5619 GB, free: 15.16 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.372e-05/0.2007, allocations: 0 / 0.5619 GB, free: 15.16 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.51e-06/0.2007, allocations: 0 / 0.5619 GB, free: 15.16 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.814e-05/0.2007, allocations: 4 kB / 0.5619 GB, free: 15.16 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002525/0.201, allocations: 149.7 kB / 0.562 GB, free: 14.96 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.679e-05/0.2011, allocations: 14.58 kB / 0.562 GB, free: 14.94 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.12e-05/0.2011, allocations: 8.844 kB / 0.562 GB, free: 14.93 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.742e-06/0.2011, allocations: 0 / 0.562 GB, free: 14.93 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001043/0.2012, allocations: 64.3 kB / 0.5621 GB, free: 14.85 MB / 430.1 MB Notification: Performance of pre-optimization done (n=1): time 2.194e-06/0.2012, allocations: 0 / 0.5621 GB, free: 14.85 MB / 430.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002881/0.2015, allocations: 75.28 kB / 0.5622 GB, free: 14.76 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.897e-05/0.2016, allocations: 77.11 kB / 0.5623 GB, free: 14.67 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.584e-05/0.2017, allocations: 97.8 kB / 0.5623 GB, free: 14.56 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 3.069e-05/0.2017, allocations: 25.7 kB / 0.5624 GB, free: 14.53 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.44e-05/0.2018, allocations: 80.14 kB / 0.5624 GB, free: 14.45 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.238e-05/0.2018, allocations: 0 / 0.5624 GB, free: 14.45 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.374e-05/0.2019, allocations: 13.72 kB / 0.5625 GB, free: 14.43 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002199/0.2021, allocations: 315 kB / 0.5628 GB, free: 14.11 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.613e-05/0.2021, allocations: 4 kB / 0.5628 GB, free: 14.11 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.485e-05/0.2021, allocations: 4 kB / 0.5628 GB, free: 14.11 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.504e-05/0.2022, allocations: 60.2 kB / 0.5628 GB, free: 14.03 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.487e-06/0.2022, allocations: 4 kB / 0.5628 GB, free: 14.03 MB / 430.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001533/0.2024, allocations: 59.39 kB / 0.5629 GB, free: 13.96 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.285e-05/0.2024, allocations: 41.64 kB / 0.5629 GB, free: 13.91 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.2024, allocations: 0 / 0.5629 GB, free: 13.91 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.607e-05/0.2025, allocations: 0 / 0.5629 GB, free: 13.91 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.553e-06/0.2025, allocations: 4.094 kB / 0.5629 GB, free: 13.91 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.534e-06/0.2025, allocations: 0 / 0.5629 GB, free: 13.91 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.362e-05/0.2025, allocations: 0 / 0.5629 GB, free: 13.91 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.456e-06/0.2025, allocations: 0 / 0.5629 GB, free: 13.91 MB / 430.1 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 0.0001459/0.2026, allocations: 141.7 kB / 0.5631 GB, free: 13.75 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.587e-05/0.2027, allocations: 7.875 kB / 0.5631 GB, free: 13.75 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.418e-06/0.2027, allocations: 3.125 kB / 0.5631 GB, free: 13.75 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.629e-06/0.2027, allocations: 4 kB / 0.5631 GB, free: 13.74 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.2027, allocations: 0 / 0.5631 GB, free: 13.74 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.2027, allocations: 4 kB / 0.5631 GB, free: 13.74 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001385/0.2028, allocations: 141.7 kB / 0.5632 GB, free: 13.55 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.338e-06/0.2028, allocations: 3.984 kB / 0.5632 GB, free: 13.55 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.72e-07/0.2028, allocations: 0 / 0.5632 GB, free: 13.55 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.431e-06/0.2028, allocations: 3.938 kB / 0.5632 GB, free: 13.54 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.019e-05/0.2028, allocations: 11.92 kB / 0.5632 GB, free: 13.53 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.624e-06/0.2028, allocations: 0 / 0.5632 GB, free: 13.53 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.2028, allocations: 0 / 0.5632 GB, free: 13.53 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001531/0.203, allocations: 94.83 kB / 0.5633 GB, free: 13.41 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.667e-05/0.2031, allocations: 77.11 kB / 0.5634 GB, free: 13.32 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.29e-05/0.2031, allocations: 7.938 kB / 0.5634 GB, free: 13.31 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.584e-05/0.2031, allocations: 0 / 0.5634 GB, free: 13.31 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.477e-05/0.2031, allocations: 4 kB / 0.5634 GB, free: 13.31 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.017e-06/0.2031, allocations: 4 kB / 0.5634 GB, free: 13.3 MB / 430.1 MB Notification: Performance of sorting global known variables: time 5.303e-05/0.2032, allocations: 75.28 kB / 0.5635 GB, free: 13.23 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2032, allocations: 0 / 0.5635 GB, free: 13.23 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0007741/0.2039, allocations: 155.5 kB / 0.5636 GB, free: 13.08 MB / 430.1 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.001364/0.2053, allocations: 391.9 kB / 0.564 GB, free: 12.69 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0001638/0.2055, allocations: 67.34 kB / 0.5641 GB, free: 12.61 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.2055, allocations: 0 / 0.5641 GB, free: 12.61 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 8.412e-05/0.2056, allocations: 59.39 kB / 0.5641 GB, free: 12.54 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002208/0.2058, allocations: 6.031 kB / 0.5641 GB, free: 12.54 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002915/0.2061, allocations: 81.06 kB / 0.5642 GB, free: 12.43 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004541/0.2065, allocations: 0.6729 MB / 0.5649 GB, free: 11.73 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 8.065e-06/0.2065, allocations: 0 / 0.5649 GB, free: 11.73 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.817e-05/0.2066, allocations: 7.438 kB / 0.5649 GB, free: 11.72 MB / 430.1 MB Notification: Performance of SimCode: time 6.41e-07/0.2066, allocations: 128 / 0.5649 GB, free: 11.72 MB / 430.1 MB Notification: Performance of Templates: time 0.01635/0.2229, allocations: 4.606 MB / 0.5694 GB, free: 7.113 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations.makefile [Timeout 660] (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 & ./ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe 2>&1) [Timeout 480] 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: 5.514221280813217]