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.001516/0.001516, allocations: 80.8 kB / 21.5 MB, free: 2.992 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.002165/0.002165, allocations: 170.3 kB / 24.91 MB, free: 8.777 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.9918/0.9918, allocations: 177.1 MB / 205.3 MB, free: 5.098 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.2638/0.2638, allocations: 32.81 MB / 294.6 MB, free: 1.133 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: translateModel(ModelicaTest.ComplexMath.TestComplexOperations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations") translateModel(ModelicaTest.ComplexMath.TestComplexOperations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.853e-06/1.853e-06, allocations: 0 / 323.2 MB, free: 9.766 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.567e-05/2.752e-05, allocations: 3.016 kB / 323.2 MB, free: 9.762 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.0017/0.001727, allocations: 496.6 kB / 323.7 MB, free: 9.277 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003011/0.004738, allocations: 2.357 MB / 326 MB, free: 6.898 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.2e-05/0.00476, allocations: 0 / 326 MB, free: 6.898 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.286e-05/0.004773, allocations: 0 / 326 MB, free: 6.898 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.392e-06/0.004779, allocations: 0 / 326 MB, free: 6.898 MB / 298.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.001984/0.006764, allocations: 1.152 MB / 327.2 MB, free: 5.742 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 4.051e-05/0.006804, allocations: 0 / 327.2 MB, free: 5.742 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.191e-05/0.006836, allocations: 4 kB / 327.2 MB, free: 5.738 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.934e-05/0.006866, allocations: 3.984 kB / 327.2 MB, free: 5.734 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.022e-05/0.006886, allocations: 0 / 327.2 MB, free: 5.734 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.252e-06/0.006892, allocations: 0 / 327.2 MB, free: 5.734 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001212/0.008104, allocations: 1.022 MB / 328.2 MB, free: 4.711 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.626e-06/0.008113, allocations: 4 kB / 328.2 MB, free: 4.707 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.371e-05/0.008126, allocations: 0.625 kB / 328.2 MB, free: 4.707 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007391/0.008866, allocations: 0.5338 MB / 328.7 MB, free: 4.172 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.805e-06/0.008868, allocations: 0 / 328.7 MB, free: 4.172 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.72e-07/0.008869, allocations: 0 / 328.7 MB, free: 4.172 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.546e-06/0.008873, allocations: 0 / 328.7 MB, free: 4.172 MB / 298.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.0002948/0.009168, allocations: 345.5 kB / 329.1 MB, free: 3.805 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.814e-05/0.009196, allocations: 8.031 kB / 329.1 MB, free: 3.797 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.495e-05/0.009221, allocations: 12.88 kB / 329.1 MB, free: 3.785 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.793e-05/0.009269, allocations: 105.8 kB / 329.2 MB, free: 3.656 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.367e-06/0.009278, allocations: 384 / 329.2 MB, free: 3.656 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.895e-06/0.009286, allocations: 384 / 329.2 MB, free: 3.656 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.769e-05/0.009344, allocations: 55.97 kB / 329.3 MB, free: 3.59 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.731e-06/0.009349, allocations: 192 / 329.3 MB, free: 3.59 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.829e-06/0.009354, allocations: 384 / 329.3 MB, free: 3.59 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.52e-06/0.00936, allocations: 3.938 kB / 329.3 MB, free: 3.586 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.422e-05/0.009374, allocations: 29.7 kB / 329.3 MB, free: 3.551 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 5.973e-05/0.009434, allocations: 57.05 kB / 329.3 MB, free: 3.48 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.449e-05/0.009478, allocations: 52.23 kB / 329.4 MB, free: 3.414 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.442e-05/0.009493, allocations: 34.56 kB / 329.4 MB, free: 3.371 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.236e-06/0.009496, allocations: 4.062 kB / 329.4 MB, free: 3.367 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.051e-05/0.009526, allocations: 56.27 kB / 329.5 MB, free: 3.297 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 6.01e-07/0.009527, allocations: 0 / 329.5 MB, free: 3.297 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001139/0.009641, allocations: 114.8 kB / 329.6 MB, free: 3.16 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.514e-05/0.009676, allocations: 81.05 kB / 329.7 MB, free: 3.062 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.726e-05/0.009703, allocations: 89.86 kB / 329.8 MB, free: 2.965 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.865e-06/0.009711, allocations: 25.7 kB / 329.8 MB, free: 2.934 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.662e-05/0.009728, allocations: 80.14 kB / 329.9 MB, free: 2.852 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.427e-05/0.009742, allocations: 5.328 kB / 329.9 MB, free: 2.848 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.9e-05/0.009761, allocations: 21.66 kB / 329.9 MB, free: 2.82 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.463e-05/0.009826, allocations: 318.8 kB / 330.2 MB, free: 2.5 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.347e-05/0.009839, allocations: 29.7 kB / 330.2 MB, free: 2.465 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.198e-05/0.009851, allocations: 25.7 kB / 330.3 MB, free: 2.434 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.698e-05/0.009888, allocations: 64.25 kB / 330.3 MB, free: 2.355 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.00989, allocations: 0 / 330.3 MB, free: 2.355 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.299e-05/0.009933, allocations: 81.11 kB / 330.4 MB, free: 2.258 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.897e-05/0.009962, allocations: 41.62 kB / 330.4 MB, free: 2.211 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.739e-06/0.009967, allocations: 4.094 kB / 330.4 MB, free: 2.207 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.062e-05/0.009977, allocations: 4 kB / 330.5 MB, free: 2.203 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.659e-06/0.009982, allocations: 0 / 330.5 MB, free: 2.203 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.545e-06/0.009984, allocations: 0 / 330.5 MB, free: 2.203 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.116e-05/0.009996, allocations: 0 / 330.5 MB, free: 2.203 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.612e-06/0.01, allocations: 7.938 kB / 330.5 MB, free: 2.195 MB / 298.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 5.339e-05/0.01006, allocations: 131.5 kB / 330.6 MB, free: 2.051 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.049e-06/0.01006, allocations: 4 kB / 330.6 MB, free: 2.047 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.534e-06/0.01007, allocations: 3 kB / 330.6 MB, free: 2.047 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.473e-06/0.01007, allocations: 0 / 330.6 MB, free: 2.047 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.312e-06/0.01007, allocations: 0 / 330.6 MB, free: 2.047 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.297e-06/0.01007, allocations: 7.984 kB / 330.6 MB, free: 2.039 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.131e-05/0.01012, allocations: 65.84 kB / 330.7 MB, free: 1.957 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.62e-07/0.01012, allocations: 0 / 330.7 MB, free: 1.957 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.41e-07/0.01012, allocations: 0 / 330.7 MB, free: 1.957 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.91e-07/0.01012, allocations: 0 / 330.7 MB, free: 1.957 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.306e-06/0.01012, allocations: 0 / 330.7 MB, free: 1.957 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.41e-07/0.01012, allocations: 0 / 330.7 MB, free: 1.957 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.31e-07/0.01012, allocations: 0 / 330.7 MB, free: 1.957 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.445e-05/0.01019, allocations: 124.4 kB / 330.8 MB, free: 1.805 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.23e-06/0.01019, allocations: 0.9688 kB / 330.8 MB, free: 1.805 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.747e-06/0.0102, allocations: 4.031 kB / 330.8 MB, free: 1.801 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.849e-06/0.0102, allocations: 0 / 330.8 MB, free: 1.801 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.185e-06/0.01021, allocations: 4 kB / 330.8 MB, free: 1.797 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.663e-06/0.01021, allocations: 0 / 330.8 MB, free: 1.797 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.671e-06/0.01022, allocations: 4.859 kB / 330.8 MB, free: 1.789 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01022, allocations: 0 / 330.8 MB, free: 1.789 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003098/0.01053, allocations: 159.5 kB / 331 MB, free: 1.633 MB / 298.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.0005594/0.01109, allocations: 440 kB / 331.4 MB, free: 1.211 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 9.013e-05/0.01118, allocations: 111.7 kB / 331.5 MB, free: 1.074 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.01118, allocations: 0 / 331.5 MB, free: 1.074 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.91e-05/0.01121, allocations: 85.97 kB / 331.6 MB, free: 0.9688 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 4.745e-05/0.01126, allocations: 23.97 kB / 331.6 MB, free: 0.9453 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001583/0.01142, allocations: 109.3 kB / 331.7 MB, free: 0.8008 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.04e-05/0.01145, allocations: 51.36 kB / 331.8 MB, free: 0.7305 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 5.471e-06/0.01145, allocations: 0 / 331.8 MB, free: 0.7305 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003134/0.01177, allocations: 55.36 kB / 331.8 MB, free: 0.6758 MB / 298.7 MB Notification: Performance of SimCode: time 6.71e-07/0.01177, allocations: 0 / 331.8 MB, free: 0.6758 MB / 298.7 MB Notification: Performance of Templates: time 0.007204/0.01897, allocations: 6.094 MB / 337.9 MB, free: 10.58 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.makefile [Timeout 660] (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 & ./ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.088108549825847]