Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.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.001248/0.001248, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001924/0.003172, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 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.001358/0.001358, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001918/0.003276, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 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.064/1.064, allocations: 177.2 MB / 189.8 MB, free: 5.238 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1223/1.186, allocations: 53.65 MB / 243.4 MB, free: 15.51 MB / 250.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.3617/0.3617, allocations: 34.25 MB / 278.4 MB, free: 15.28 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0378/0.3995, allocations: 13.11 MB / 291.5 MB, free: 7.332 MB / 282.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: translateModel(ModelicaTest.ComplexMath.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions") translateModel(ModelicaTest.ComplexMath.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.402e-06/1.402e-06, allocations: 0 / 292.8 MB, free: 6.246 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.225e-05/2.365e-05, allocations: 4.531 kB / 292.8 MB, free: 6.242 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001399/0.001423, allocations: 0.5248 MB / 293.3 MB, free: 5.719 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0045/0.005923, allocations: 2.381 MB / 295.7 MB, free: 3.316 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.982e-05/0.005943, allocations: 0 / 295.7 MB, free: 3.316 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 5.55e-06/0.005948, allocations: 0 / 295.7 MB, free: 3.316 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 2.414e-06/0.005951, allocations: 4 kB / 295.7 MB, free: 3.312 MB / 282.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.003026/0.008977, allocations: 1.082 MB / 296.8 MB, free: 2.227 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 7.097e-05/0.009048, allocations: 0.5 kB / 296.8 MB, free: 2.227 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.448e-05/0.009092, allocations: 0 / 296.8 MB, free: 2.227 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.227e-05/0.009134, allocations: 8 kB / 296.8 MB, free: 2.219 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.747e-05/0.009172, allocations: 3.984 kB / 296.8 MB, free: 2.215 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 5.42e-06/0.009177, allocations: 0 / 296.8 MB, free: 2.215 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00234/0.01152, allocations: 1.049 MB / 297.9 MB, free: 1.164 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 2.34e-05/0.01154, allocations: 0 / 297.9 MB, free: 1.164 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.221e-05/0.01156, allocations: 12 kB / 297.9 MB, free: 1.152 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008965/0.01246, allocations: 458.8 kB / 298.3 MB, free: 0.7031 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.631e-05/0.01248, allocations: 0 / 298.3 MB, free: 0.7031 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.01248, allocations: 0 / 298.3 MB, free: 0.7031 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.188e-05/0.01249, allocations: 0 / 298.3 MB, free: 0.7031 MB / 282.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.0005355/0.01303, allocations: 401.5 kB / 298.7 MB, free: 288 kB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.97e-05/0.01307, allocations: 12.03 kB / 298.7 MB, free: 276 kB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.898e-05/0.01309, allocations: 0.9375 kB / 298.7 MB, free: 276 kB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.59e-05/0.01317, allocations: 109.8 kB / 298.8 MB, free: 140 kB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.138e-05/0.01318, allocations: 384 / 298.8 MB, free: 140 kB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.429e-05/0.0132, allocations: 4.375 kB / 298.8 MB, free: 136 kB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.719e-05/0.01328, allocations: 63.89 kB / 298.9 MB, free: 60 kB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.635e-06/0.01329, allocations: 192 / 298.9 MB, free: 60 kB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.28e-06/0.0133, allocations: 4.375 kB / 298.9 MB, free: 56 kB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.615e-06/0.0133, allocations: 3.938 kB / 298.9 MB, free: 52 kB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.038e-05/0.01332, allocations: 25.7 kB / 298.9 MB, free: 20 kB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001094/0.01343, allocations: 61.03 kB / 299 MB, free: 15.95 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.129e-05/0.01348, allocations: 40.38 kB / 299 MB, free: 15.89 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.058e-05/0.01351, allocations: 34.56 kB / 299.1 MB, free: 15.85 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.988e-06/0.01351, allocations: 0 / 299.1 MB, free: 15.85 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.103e-05/0.01356, allocations: 68.27 kB / 299.1 MB, free: 15.77 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 1.052e-06/0.01356, allocations: 3.938 kB / 299.1 MB, free: 15.76 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001481/0.01371, allocations: 110.8 kB / 299.2 MB, free: 15.63 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.237e-05/0.01378, allocations: 158.2 kB / 299.4 MB, free: 15.44 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.46e-05/0.01383, allocations: 89.86 kB / 299.5 MB, free: 15.34 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.084e-05/0.01384, allocations: 25.7 kB / 299.5 MB, free: 15.31 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.449e-05/0.01386, allocations: 80.14 kB / 299.6 MB, free: 15.23 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.759e-05/0.01389, allocations: 0 / 299.6 MB, free: 15.23 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.389e-05/0.01392, allocations: 17.7 kB / 299.6 MB, free: 15.2 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.000104/0.01403, allocations: 314.8 kB / 299.9 MB, free: 14.89 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.04e-05/0.01405, allocations: 33.83 kB / 299.9 MB, free: 14.85 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.642e-05/0.01406, allocations: 25.7 kB / 300 MB, free: 14.82 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.72e-05/0.01412, allocations: 68.2 kB / 300 MB, free: 14.73 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.01412, allocations: 3.938 kB / 300 MB, free: 14.73 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.417e-05/0.0142, allocations: 89.09 kB / 300.1 MB, free: 14.62 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.203e-05/0.01424, allocations: 29.7 kB / 300.2 MB, free: 14.59 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.311e-06/0.01425, allocations: 0 / 300.2 MB, free: 14.59 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.183e-05/0.01426, allocations: 0 / 300.2 MB, free: 14.59 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.442e-06/0.01426, allocations: 0 / 300.2 MB, free: 14.59 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.695e-06/0.01426, allocations: 96 / 300.2 MB, free: 14.59 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.854e-05/0.01428, allocations: 8.688 kB / 300.2 MB, free: 14.58 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.407e-06/0.01429, allocations: 3.938 kB / 300.2 MB, free: 14.58 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 8.29e-05/0.01437, allocations: 139.5 kB / 300.3 MB, free: 14.43 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.285e-06/0.01438, allocations: 4 kB / 300.3 MB, free: 14.42 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.759e-06/0.01439, allocations: 3 kB / 300.3 MB, free: 14.42 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.814e-06/0.01439, allocations: 0 / 300.3 MB, free: 14.42 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.0144, allocations: 4 kB / 300.3 MB, free: 14.42 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.367e-06/0.0144, allocations: 0 / 300.3 MB, free: 14.42 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.569e-05/0.01446, allocations: 69.78 kB / 300.4 MB, free: 14.33 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.01447, allocations: 0 / 300.4 MB, free: 14.33 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.834e-06/0.01447, allocations: 4 kB / 300.4 MB, free: 14.33 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.494e-06/0.01448, allocations: 7.922 kB / 300.4 MB, free: 14.32 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.472e-06/0.01448, allocations: 0 / 300.4 MB, free: 14.32 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.43e-06/0.01448, allocations: 4 kB / 300.4 MB, free: 14.32 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.01448, allocations: 0 / 300.4 MB, free: 14.32 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.01449, allocations: 0 / 300.4 MB, free: 14.32 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001056/0.01459, allocations: 116.5 kB / 300.5 MB, free: 14.17 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.411e-05/0.0146, allocations: 4 kB / 300.5 MB, free: 14.17 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.297e-06/0.01461, allocations: 0 / 300.5 MB, free: 14.17 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.11e-05/0.01463, allocations: 3.984 kB / 300.5 MB, free: 14.16 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.278e-06/0.01463, allocations: 4.031 kB / 300.5 MB, free: 14.16 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.416e-06/0.01464, allocations: 4.859 kB / 300.5 MB, free: 14.15 MB / 298.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01464, allocations: 0 / 300.5 MB, free: 14.15 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005094/0.01515, allocations: 155.6 kB / 300.7 MB, free: 14 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.0008384/0.01599, allocations: 425 kB / 301.1 MB, free: 13.59 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001017/0.01609, allocations: 119.6 kB / 301.2 MB, free: 13.45 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.891e-06/0.01609, allocations: 0 / 301.2 MB, free: 13.45 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.48e-05/0.01613, allocations: 93.95 kB / 301.3 MB, free: 13.34 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 5.303e-05/0.01618, allocations: 13.59 kB / 301.3 MB, free: 13.32 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001649/0.01635, allocations: 116.9 kB / 301.4 MB, free: 13.18 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.052e-05/0.01638, allocations: 59.55 kB / 301.5 MB, free: 13.1 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 5.74e-06/0.01638, allocations: 0 / 301.5 MB, free: 13.1 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.649e-05/0.01642, allocations: 51.38 kB / 301.5 MB, free: 13.05 MB / 298.7 MB Notification: Performance of SimCode: time 1.182e-06/0.01642, allocations: 0 / 301.5 MB, free: 13.05 MB / 298.7 MB Notification: Performance of Templates: time 0.007785/0.02421, allocations: 6.237 MB / 307.8 MB, free: 6.805 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.sim & ./ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_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","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.237260051071644]