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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007783/0.0007783, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001532/0.00231, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0006966/0.0006966, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001101/0.001798, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9318/0.9318, allocations: 173.4 MB / 186 MB, free: 7.535 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1816/1.113, allocations: 52.49 MB / 238.5 MB, free: 7.617 MB / 234.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.1311/0.1311, allocations: 32.8 MB / 272 MB, free: 6.289 MB / 266.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02395/0.1551, allocations: 12.54 MB / 284.5 MB, free: 9.707 MB / 282.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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.873e-06/1.873e-06, allocations: 3.938 kB / 285.8 MB, free: 8.453 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.115e-05/2.302e-05, allocations: 2.312 kB / 285.8 MB, free: 8.449 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.001821/0.001844, allocations: 0.5356 MB / 286.3 MB, free: 7.918 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.003323/0.005167, allocations: 2.266 MB / 288.6 MB, free: 5.633 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.538e-05/0.005182, allocations: 4 kB / 288.6 MB, free: 5.629 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 6.632e-06/0.005189, allocations: 3.938 kB / 288.6 MB, free: 5.625 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 1.493e-06/0.00519, allocations: 0 / 288.6 MB, free: 5.625 MB / 282.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.00253/0.00772, allocations: 1.062 MB / 289.7 MB, free: 4.559 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 5.547e-05/0.007775, allocations: 0 / 289.7 MB, free: 4.559 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.824e-05/0.007814, allocations: 7.984 kB / 289.7 MB, free: 4.551 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.392e-05/0.007848, allocations: 7.938 kB / 289.7 MB, free: 4.543 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.692e-05/0.007874, allocations: 0 / 289.7 MB, free: 4.543 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 8.095e-06/0.007883, allocations: 0 / 289.7 MB, free: 4.543 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001682/0.009564, allocations: 0.9949 MB / 290.7 MB, free: 3.547 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.667e-05/0.009581, allocations: 3.938 kB / 290.7 MB, free: 3.543 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 1.55e-05/0.009596, allocations: 4 kB / 290.7 MB, free: 3.539 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006364/0.01023, allocations: 423 kB / 291.1 MB, free: 3.125 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.364e-05/0.01025, allocations: 0 / 291.1 MB, free: 3.125 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.142e-06/0.01025, allocations: 0 / 291.1 MB, free: 3.125 MB / 282.7 MB Notification: Performance of Transformations before backend: time 9.929e-06/0.01026, allocations: 4 kB / 291.1 MB, free: 3.121 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.0004537/0.01071, allocations: 389.6 kB / 291.5 MB, free: 2.711 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.485e-05/0.01075, allocations: 8.031 kB / 291.5 MB, free: 2.703 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.608e-05/0.01078, allocations: 4.938 kB / 291.5 MB, free: 2.699 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.421e-05/0.01086, allocations: 109.7 kB / 291.6 MB, free: 2.566 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.144e-05/0.01087, allocations: 384 / 291.6 MB, free: 2.566 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.229e-05/0.01088, allocations: 4.375 kB / 291.6 MB, free: 2.562 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.708e-05/0.01096, allocations: 55.95 kB / 291.7 MB, free: 2.496 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.144e-06/0.01096, allocations: 192 / 291.7 MB, free: 2.496 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.841e-06/0.01097, allocations: 384 / 291.7 MB, free: 2.496 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.485e-06/0.01098, allocations: 7.938 kB / 291.7 MB, free: 2.488 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.251e-05/0.011, allocations: 29.7 kB / 291.7 MB, free: 2.453 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.234e-05/0.01107, allocations: 57.05 kB / 291.8 MB, free: 2.383 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.171e-05/0.01112, allocations: 48.22 kB / 291.8 MB, free: 2.32 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.238e-05/0.01115, allocations: 34.66 kB / 291.8 MB, free: 2.277 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.767e-06/0.01115, allocations: 0 / 291.8 MB, free: 2.277 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.892e-05/0.01119, allocations: 60.25 kB / 291.9 MB, free: 2.203 MB / 282.7 MB Notification: Performance of pre-optimization done (n=1): time 1.273e-06/0.01119, allocations: 0 / 291.9 MB, free: 2.203 MB / 282.7 MB Notification: Performance of matching and sorting (n=1): time 0.000153/0.01134, allocations: 114.8 kB / 292 MB, free: 2.066 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.27e-05/0.01142, allocations: 162.2 kB / 292.2 MB, free: 1.871 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.231e-05/0.01146, allocations: 93.98 kB / 292.3 MB, free: 1.77 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.323e-05/0.01147, allocations: 25.7 kB / 292.3 MB, free: 1.738 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.174e-05/0.0115, allocations: 88.06 kB / 292.4 MB, free: 1.648 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.387e-05/0.01153, allocations: 3.938 kB / 292.4 MB, free: 1.645 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.03e-05/0.01156, allocations: 13.72 kB / 292.4 MB, free: 1.625 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 8.487e-05/0.01164, allocations: 314.8 kB / 292.7 MB, free: 1.309 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.785e-05/0.01166, allocations: 25.7 kB / 292.7 MB, free: 1.277 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.49e-05/0.01168, allocations: 29.7 kB / 292.8 MB, free: 1.242 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.032e-05/0.01173, allocations: 64.25 kB / 292.8 MB, free: 1.164 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.993e-06/0.01173, allocations: 0 / 292.8 MB, free: 1.164 MB / 282.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.123e-05/0.0118, allocations: 85.17 kB / 292.9 MB, free: 1.062 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 4e-05/0.01184, allocations: 37.7 kB / 292.9 MB, free: 1.02 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.381e-06/0.01184, allocations: 0 / 292.9 MB, free: 1.02 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.282e-05/0.01186, allocations: 3.984 kB / 292.9 MB, free: 1.016 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.336e-06/0.01186, allocations: 3.938 kB / 292.9 MB, free: 1.012 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.604e-06/0.01186, allocations: 0 / 292.9 MB, free: 1.012 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.938e-05/0.01188, allocations: 4 kB / 293 MB, free: 1.008 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.436e-06/0.01189, allocations: 7.938 kB / 293 MB, free: 1 MB / 282.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 7.148e-05/0.01196, allocations: 131.5 kB / 293.1 MB, free: 0.8555 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.728e-06/0.01197, allocations: 8.031 kB / 293.1 MB, free: 0.8477 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.209e-05/0.01198, allocations: 6.953 kB / 293.1 MB, free: 0.8359 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.735e-06/0.01199, allocations: 0 / 293.1 MB, free: 0.8359 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.643e-06/0.01199, allocations: 0 / 293.1 MB, free: 0.8359 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.698e-06/0.01199, allocations: 3.984 kB / 293.1 MB, free: 0.832 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.477e-05/0.01206, allocations: 69.83 kB / 293.2 MB, free: 0.7461 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.01206, allocations: 0 / 293.2 MB, free: 0.7461 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.453e-06/0.01206, allocations: 0 / 293.2 MB, free: 0.7461 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.588e-06/0.01207, allocations: 0 / 293.2 MB, free: 0.7461 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.01207, allocations: 0 / 293.2 MB, free: 0.7461 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.278e-06/0.01207, allocations: 0 / 293.2 MB, free: 0.7461 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.01207, allocations: 4 kB / 293.2 MB, free: 0.7422 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.01207, allocations: 4 kB / 293.2 MB, free: 0.7383 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.333e-05/0.01217, allocations: 120.4 kB / 293.3 MB, free: 0.5898 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.21e-05/0.01218, allocations: 0 / 293.3 MB, free: 0.5898 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.111e-05/0.01219, allocations: 4 kB / 293.3 MB, free: 0.5859 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.337e-06/0.0122, allocations: 0 / 293.3 MB, free: 0.5859 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.426e-06/0.0122, allocations: 0 / 293.3 MB, free: 0.5859 MB / 282.7 MB Notification: Performance of sorting global known variables: time 1.095e-05/0.01221, allocations: 8.859 kB / 293.3 MB, free: 0.5742 MB / 282.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.01221, allocations: 0 / 293.3 MB, free: 0.5742 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004538/0.01267, allocations: 151.5 kB / 293.5 MB, free: 436 kB / 282.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.0008067/0.01348, allocations: 389.6 kB / 293.8 MB, free: 52 kB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001235/0.0136, allocations: 123.6 kB / 294 MB, free: 15.9 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.761e-06/0.0136, allocations: 4 kB / 294 MB, free: 15.9 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.129e-05/0.01365, allocations: 89.95 kB / 294.1 MB, free: 15.79 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 6.168e-05/0.01371, allocations: 11.94 kB / 294.1 MB, free: 15.78 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001693/0.01388, allocations: 115.8 kB / 294.2 MB, free: 15.63 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.078e-05/0.01391, allocations: 55.36 kB / 294.2 MB, free: 15.55 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 5.58e-06/0.01391, allocations: 0 / 294.2 MB, free: 15.55 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.754e-05/0.01396, allocations: 51.38 kB / 294.3 MB, free: 15.5 MB / 298.7 MB Notification: Performance of SimCode: time 9.72e-07/0.01396, allocations: 0 / 294.3 MB, free: 15.5 MB / 298.7 MB Notification: Performance of Templates: time 0.01042/0.02438, allocations: 5.836 MB / 300.1 MB, free: 9.668 MB / 298.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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.7769840247929096]