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.001774/0.001774, allocations: 69.95 kB / 21.24 MB, free: 0.5391 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.002214/0.002214, allocations: 162.2 kB / 24.5 MB, free: 3.711 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.472/1.472, allocations: 177.2 MB / 204.9 MB, free: 8.969 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.2079/0.2079, allocations: 32.8 MB / 294.1 MB, free: 15.98 MB / 286.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: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00204/0.00204, allocations: 67.91 kB / 440.5 MB, free: 9.43 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3722/0.3742, allocations: 65.44 MB / 0.4941 GB, free: 31.34 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.001567/0.3758, allocations: 485.5 kB / 0.4946 GB, free: 31.05 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.002878/0.3787, allocations: 2.285 MB / 0.4968 GB, free: 29.52 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.179e-05/0.3787, allocations: 0 / 0.4968 GB, free: 29.52 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 1.957e-05/0.3787, allocations: 0 / 0.4968 GB, free: 29.52 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 9.137e-06/0.3787, allocations: 2.938 kB / 0.4968 GB, free: 29.52 MB / 446.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.002651/0.3814, allocations: 1.105 MB / 0.4979 GB, free: 28.93 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 5.199e-05/0.3814, allocations: 4 kB / 0.4979 GB, free: 28.92 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.719e-05/0.3815, allocations: 7.188 kB / 0.4979 GB, free: 28.92 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.569e-05/0.3815, allocations: 0 / 0.4979 GB, free: 28.92 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.471e-05/0.3815, allocations: 0 / 0.4979 GB, free: 28.92 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 6.602e-06/0.3815, allocations: 0 / 0.4979 GB, free: 28.92 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001363/0.3829, allocations: 0.9735 MB / 0.4989 GB, free: 28.64 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 1.075e-05/0.3829, allocations: 3 kB / 0.4989 GB, free: 28.64 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 1.992e-05/0.3829, allocations: 3.938 kB / 0.4989 GB, free: 28.63 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004986/0.3834, allocations: 441.3 kB / 0.4993 GB, free: 28.46 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.3834, allocations: 7.125 kB / 0.4993 GB, free: 28.46 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3834, allocations: 0 / 0.4993 GB, free: 28.46 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.141e-05/0.3834, allocations: 0 / 0.4993 GB, free: 28.46 MB / 446.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.0003456/0.3838, allocations: 368.2 kB / 0.4996 GB, free: 28.11 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.173e-05/0.3838, allocations: 9.562 kB / 0.4997 GB, free: 28.11 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.161e-05/0.3838, allocations: 0.9375 kB / 0.4997 GB, free: 28.11 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.685e-05/0.3839, allocations: 105.5 kB / 0.4998 GB, free: 27.98 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.047e-06/0.3839, allocations: 384 / 0.4998 GB, free: 27.98 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.08e-05/0.3839, allocations: 384 / 0.4998 GB, free: 27.98 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.315e-05/0.384, allocations: 62.11 kB / 0.4998 GB, free: 27.92 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.846e-06/0.384, allocations: 0 / 0.4998 GB, free: 27.92 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.546e-06/0.384, allocations: 4 kB / 0.4998 GB, free: 27.91 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.649e-06/0.384, allocations: 3 kB / 0.4998 GB, free: 27.91 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.327e-05/0.3841, allocations: 29.64 kB / 0.4998 GB, free: 27.88 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.07e-05/0.3841, allocations: 104.5 kB / 0.4999 GB, free: 27.75 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.182e-05/0.3842, allocations: 43.59 kB / 0.5 GB, free: 27.7 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.005e-05/0.3842, allocations: 33.94 kB / 0.5 GB, free: 27.66 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.638e-06/0.3842, allocations: 0 / 0.5 GB, free: 27.66 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.422e-05/0.3842, allocations: 59.55 kB / 0.5001 GB, free: 27.59 MB / 446.1 MB Notification: Performance of pre-optimization done (n=1): time 6.81e-07/0.3842, allocations: 0 / 0.5001 GB, free: 27.59 MB / 446.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001649/0.3844, allocations: 124.5 kB / 0.5002 GB, free: 27.45 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.031e-05/0.3844, allocations: 84.61 kB / 0.5003 GB, free: 27.35 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.1e-05/0.3844, allocations: 93.81 kB / 0.5004 GB, free: 27.25 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 5.581e-06/0.3845, allocations: 25.7 kB / 0.5004 GB, free: 27.22 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.899e-06/0.3845, allocations: 80.14 kB / 0.5005 GB, free: 27.14 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.833e-05/0.3845, allocations: 0 / 0.5005 GB, free: 27.14 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.257e-05/0.3845, allocations: 12.97 kB / 0.5005 GB, free: 27.12 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.248e-05/0.3846, allocations: 314.8 kB / 0.5008 GB, free: 26.8 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.725e-05/0.3846, allocations: 28.8 kB / 0.5008 GB, free: 26.77 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.045e-05/0.3846, allocations: 28.98 kB / 0.5008 GB, free: 26.74 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.195e-05/0.3846, allocations: 63.36 kB / 0.5009 GB, free: 26.67 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.332e-06/0.3846, allocations: 0 / 0.5009 GB, free: 26.67 MB / 446.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.498e-05/0.3847, allocations: 97.95 kB / 0.501 GB, free: 26.57 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.209e-05/0.3847, allocations: 29.02 kB / 0.501 GB, free: 26.54 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.266e-06/0.3847, allocations: 3.156 kB / 0.501 GB, free: 26.54 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.682e-05/0.3847, allocations: 3.938 kB / 0.501 GB, free: 26.53 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.22e-07/0.3847, allocations: 3.938 kB / 0.501 GB, free: 26.53 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.858e-06/0.3847, allocations: 0 / 0.501 GB, free: 26.53 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.723e-05/0.3847, allocations: 7.984 kB / 0.501 GB, free: 26.52 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.684e-06/0.3847, allocations: 3.312 kB / 0.501 GB, free: 26.52 MB / 446.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 5.055e-05/0.3848, allocations: 143.5 kB / 0.5012 GB, free: 26.37 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.564e-06/0.3848, allocations: 3.219 kB / 0.5012 GB, free: 26.37 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.937e-06/0.3848, allocations: 6.938 kB / 0.5012 GB, free: 26.36 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.042e-06/0.3848, allocations: 0 / 0.5012 GB, free: 26.36 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.035e-06/0.3848, allocations: 0 / 0.5012 GB, free: 26.36 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.184e-06/0.3848, allocations: 0 / 0.5012 GB, free: 26.36 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.08e-05/0.3849, allocations: 100.6 kB / 0.5013 GB, free: 26.23 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.11e-07/0.3849, allocations: 0 / 0.5013 GB, free: 26.23 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.373e-06/0.3849, allocations: 3.562 kB / 0.5013 GB, free: 26.23 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.203e-06/0.3849, allocations: 0 / 0.5013 GB, free: 26.23 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.502e-06/0.3849, allocations: 0 / 0.5013 GB, free: 26.23 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.312e-06/0.3849, allocations: 7.938 kB / 0.5013 GB, free: 26.23 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.3849, allocations: 3.188 kB / 0.5013 GB, free: 26.23 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.321e-05/0.3849, allocations: 117.4 kB / 0.5014 GB, free: 26.09 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.678e-06/0.3849, allocations: 3.344 kB / 0.5014 GB, free: 26.09 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.104e-05/0.385, allocations: 0 / 0.5014 GB, free: 26.09 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.077e-06/0.385, allocations: 3.938 kB / 0.5014 GB, free: 26.09 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.579e-05/0.385, allocations: 3.219 kB / 0.5014 GB, free: 26.09 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.425e-06/0.385, allocations: 0 / 0.5014 GB, free: 26.09 MB / 446.1 MB Notification: Performance of sorting global known variables: time 1.161e-05/0.385, allocations: 75.28 kB / 0.5015 GB, free: 26.02 MB / 446.1 MB Notification: Performance of sort global known variables: time 5.1e-08/0.385, allocations: 0 / 0.5015 GB, free: 26.02 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0004085/0.3854, allocations: 164.2 kB / 0.5016 GB, free: 25.96 MB / 446.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.0006262/0.386, allocations: 384.4 kB / 0.502 GB, free: 25.78 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 9.198e-05/0.3861, allocations: 112.8 kB / 0.5021 GB, free: 25.66 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.3861, allocations: 0 / 0.5021 GB, free: 25.66 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 2.686e-05/0.3862, allocations: 84.14 kB / 0.5022 GB, free: 25.56 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001355/0.3863, allocations: 12.89 kB / 0.5022 GB, free: 25.55 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001657/0.3865, allocations: 106.8 kB / 0.5023 GB, free: 25.43 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.878e-05/0.3865, allocations: 54.45 kB / 0.5024 GB, free: 25.36 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 5.821e-06/0.3865, allocations: 7.875 kB / 0.5024 GB, free: 25.35 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.12e-05/0.3865, allocations: 8.5 kB / 0.5024 GB, free: 25.34 MB / 446.1 MB Notification: Performance of SimCode: time 5.01e-07/0.3865, allocations: 128 / 0.5024 GB, free: 25.34 MB / 446.1 MB Notification: Performance of Templates: time 0.007427/0.3939, allocations: 4.629 MB / 0.5069 GB, free: 24.84 MB / 446.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 -s ida -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/ComplexMath/TestComplexOperations/TestComplexOperations.csv","/var/lib/jenkins1/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.247411822085269]