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.001501/0.001501, allocations: 84.39 kB / 20.68 MB, free: 1.023 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.001615/0.001615, allocations: 164.1 kB / 23.95 MB, free: 4.156 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.433/1.433, allocations: 177.1 MB / 204.3 MB, free: 9.176 MB / 190.1 MB " [Timeout remaining time 178] 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.2136/0.2136, allocations: 32.81 MB / 293.5 MB, free: 24 kB / 270.1 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.963e-06/1.963e-06, allocations: 0 / 440 MB, free: 8.195 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.455e-05/3.651e-05, allocations: 2.281 kB / 440 MB, free: 8.191 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.001727/0.001763, allocations: 476.5 kB / 440.5 MB, free: 7.73 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004301/0.006065, allocations: 2.295 MB / 442.8 MB, free: 5.414 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.965e-05/0.006094, allocations: 0 / 442.8 MB, free: 5.414 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 1.675e-05/0.006111, allocations: 0 / 442.8 MB, free: 5.414 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 7.084e-06/0.006118, allocations: 0 / 442.8 MB, free: 5.414 MB / 366.1 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.003344/0.009463, allocations: 1.102 MB / 443.9 MB, free: 4.312 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 5.937e-05/0.009522, allocations: 4 kB / 443.9 MB, free: 4.309 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.305e-05/0.009575, allocations: 3.984 kB / 443.9 MB, free: 4.305 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.838e-05/0.009603, allocations: 0 / 443.9 MB, free: 4.305 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.588e-05/0.009629, allocations: 4 kB / 443.9 MB, free: 4.301 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 7.694e-06/0.009637, allocations: 0 / 443.9 MB, free: 4.301 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001679/0.01132, allocations: 0.9791 MB / 444.9 MB, free: 3.32 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 1.19e-05/0.01133, allocations: 0 / 444.9 MB, free: 3.32 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 2.041e-05/0.01135, allocations: 4 kB / 444.9 MB, free: 3.316 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007726/0.01212, allocations: 0.5379 MB / 445.4 MB, free: 2.777 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.01213, allocations: 0 / 445.4 MB, free: 2.777 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.01213, allocations: 0 / 445.4 MB, free: 2.777 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.609e-06/0.01213, allocations: 0 / 445.4 MB, free: 2.777 MB / 366.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.0005263/0.01266, allocations: 367.2 kB / 445.8 MB, free: 2.383 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.949e-05/0.0127, allocations: 12.02 kB / 445.8 MB, free: 2.371 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.439e-05/0.01273, allocations: 4.938 kB / 445.8 MB, free: 2.367 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.313e-05/0.01282, allocations: 105.8 kB / 445.9 MB, free: 2.238 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.538e-06/0.01283, allocations: 4.312 kB / 445.9 MB, free: 2.234 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.2e-05/0.01285, allocations: 4.312 kB / 445.9 MB, free: 2.23 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001186/0.01297, allocations: 63.97 kB / 446 MB, free: 2.156 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.839e-06/0.01297, allocations: 192 / 446 MB, free: 2.156 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.417e-06/0.01298, allocations: 384 / 446 MB, free: 2.156 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.713e-06/0.01299, allocations: 3.938 kB / 446 MB, free: 2.152 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.541e-05/0.01303, allocations: 29.7 kB / 446 MB, free: 2.117 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001219/0.01315, allocations: 97.31 kB / 446.1 MB, free: 1.992 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.997e-05/0.01321, allocations: 44.31 kB / 446.2 MB, free: 1.934 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.117e-05/0.01324, allocations: 34.5 kB / 446.2 MB, free: 1.891 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.639e-06/0.01324, allocations: 0 / 446.2 MB, free: 1.891 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.353e-05/0.0133, allocations: 64.33 kB / 446.3 MB, free: 1.812 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 1.112e-06/0.0133, allocations: 4 kB / 446.3 MB, free: 1.809 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002297/0.01353, allocations: 114.8 kB / 446.4 MB, free: 1.672 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.512e-05/0.01358, allocations: 81.05 kB / 446.5 MB, free: 1.574 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.513e-05/0.01364, allocations: 93.86 kB / 446.5 MB, free: 1.473 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.482e-05/0.01365, allocations: 25.7 kB / 446.6 MB, free: 1.441 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.621e-05/0.01369, allocations: 80.14 kB / 446.6 MB, free: 1.359 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.386e-05/0.01371, allocations: 3.953 kB / 446.7 MB, free: 1.355 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.644e-05/0.01374, allocations: 13.72 kB / 446.7 MB, free: 1.336 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001383/0.01388, allocations: 314.8 kB / 447 MB, free: 1.02 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.834e-05/0.01391, allocations: 33.64 kB / 447 MB, free: 0.9805 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.907e-05/0.01393, allocations: 29.83 kB / 447 MB, free: 0.9453 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.607e-05/0.01398, allocations: 68.2 kB / 447.1 MB, free: 0.8633 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.01398, allocations: 0 / 447.1 MB, free: 0.8633 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.855e-05/0.01407, allocations: 89.09 kB / 447.2 MB, free: 0.7578 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.58e-05/0.01411, allocations: 29.7 kB / 447.2 MB, free: 0.7227 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.598e-06/0.01411, allocations: 0 / 447.2 MB, free: 0.7227 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.599e-05/0.01413, allocations: 0 / 447.2 MB, free: 0.7227 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.865e-06/0.01413, allocations: 4 kB / 447.2 MB, free: 0.7188 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.661e-06/0.01414, allocations: 3.938 kB / 447.2 MB, free: 0.7148 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.444e-05/0.01415, allocations: 4.094 kB / 447.2 MB, free: 0.7109 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.75e-06/0.01416, allocations: 0 / 447.2 MB, free: 0.7109 MB / 366.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.0001076/0.01426, allocations: 148.1 kB / 447.4 MB, free: 0.5508 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.555e-06/0.01427, allocations: 0 / 447.4 MB, free: 0.5508 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.016e-05/0.01428, allocations: 3 kB / 447.4 MB, free: 0.5469 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.775e-06/0.01429, allocations: 3.984 kB / 447.4 MB, free: 0.543 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/0.01429, allocations: 0 / 447.4 MB, free: 0.543 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.01429, allocations: 3.938 kB / 447.4 MB, free: 0.5391 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.445e-05/0.01437, allocations: 97.33 kB / 447.5 MB, free: 424 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.51e-07/0.01437, allocations: 0 / 447.5 MB, free: 424 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.01e-07/0.01437, allocations: 0 / 447.5 MB, free: 424 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.353e-06/0.01437, allocations: 7.938 kB / 447.5 MB, free: 416 kB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.154e-06/0.01438, allocations: 0 / 447.5 MB, free: 416 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.51e-07/0.01438, allocations: 0 / 447.5 MB, free: 416 kB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.571e-06/0.01438, allocations: 11.98 kB / 447.5 MB, free: 404 kB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000121/0.0145, allocations: 116.5 kB / 447.6 MB, free: 256 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.102e-06/0.01451, allocations: 3.984 kB / 447.6 MB, free: 252 kB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.106e-05/0.01452, allocations: 0 / 447.6 MB, free: 252 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.325e-06/0.01453, allocations: 0 / 447.6 MB, free: 252 kB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.641e-05/0.01455, allocations: 4 kB / 447.6 MB, free: 248 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.414e-06/0.01455, allocations: 0 / 447.6 MB, free: 248 kB / 366.1 MB Notification: Performance of sorting global known variables: time 3.763e-05/0.01459, allocations: 87.19 kB / 447.7 MB, free: 160 kB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.01459, allocations: 0 / 447.7 MB, free: 160 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004334/0.01502, allocations: 159.5 kB / 447.9 MB, free: 0 / 366.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.236/0.251, allocations: 414.6 kB / 448.3 MB, free: 21.12 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001646/0.2512, allocations: 115.7 kB / 448.4 MB, free: 21 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.2512, allocations: 0 / 448.4 MB, free: 21 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.375e-05/0.2512, allocations: 85.77 kB / 448.5 MB, free: 20.91 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001939/0.2514, allocations: 4.734 kB / 448.5 MB, free: 20.91 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002123/0.2516, allocations: 103.4 kB / 448.6 MB, free: 20.79 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.405e-05/0.2517, allocations: 55.02 kB / 448.6 MB, free: 20.71 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.7e-06/0.2517, allocations: 0 / 448.6 MB, free: 20.71 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.353e-05/0.2517, allocations: 10.81 kB / 448.6 MB, free: 20.71 MB / 366.1 MB Notification: Performance of SimCode: time 5.11e-07/0.2517, allocations: 0 / 448.6 MB, free: 20.71 MB / 366.1 MB Notification: Performance of Templates: time 0.01364/0.2653, allocations: 4.683 MB / 453.3 MB, free: 20.27 MB / 366.1 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe 2>&1) [Timeout 480] 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: 5.004928257316351]