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.00132/0.00132, allocations: 107.6 kB / 21.19 MB, free: 0.6484 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.001453/0.001453, allocations: 214.8 kB / 24.48 MB, free: 3.961 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.496/1.496, allocations: 230.6 MB / 258.2 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] 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.2374/0.2374, allocations: 46.96 MB / 361.6 MB, free: 4.121 MB / 286.1 MB " [Timeout remaining time 179] 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 0.001989/0.001989, allocations: 71.89 kB / 0.4973 GB, free: 7.25 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3946/0.3966, allocations: 66.03 MB / 0.5618 GB, free: 4.188 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001718/0.3983, allocations: 479.9 kB / 0.5622 GB, free: 3.719 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003655/0.402, allocations: 2.295 MB / 0.5645 GB, free: 1.406 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.658e-05/0.402, allocations: 0 / 0.5645 GB, free: 1.406 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.37e-05/0.402, allocations: 0 / 0.5645 GB, free: 1.406 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.271e-06/0.402, allocations: 0 / 0.5645 GB, free: 1.406 MB / 398.1 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.002894/0.4049, allocations: 1.101 MB / 0.5656 GB, free: 312 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.002e-05/0.4049, allocations: 3.938 kB / 0.5656 GB, free: 308 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.75e-05/0.405, allocations: 7.984 kB / 0.5656 GB, free: 300 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.314e-05/0.405, allocations: 0 / 0.5656 GB, free: 300 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.646e-05/0.405, allocations: 3.984 kB / 0.5656 GB, free: 296 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.115e-06/0.405, allocations: 0 / 0.5656 GB, free: 296 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001663/0.4067, allocations: 1.011 MB / 0.5666 GB, free: 15.28 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.038e-05/0.4067, allocations: 0 / 0.5666 GB, free: 15.28 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.497e-05/0.4067, allocations: 4 kB / 0.5666 GB, free: 15.27 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006267/0.4074, allocations: 433.7 kB / 0.567 GB, free: 14.86 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.4074, allocations: 0 / 0.567 GB, free: 14.86 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.4074, allocations: 0 / 0.567 GB, free: 14.86 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.352e-06/0.4074, allocations: 0 / 0.567 GB, free: 14.86 MB / 414.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.0004948/0.4079, allocations: 367.3 kB / 0.5673 GB, free: 14.46 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.953e-05/0.4079, allocations: 8.031 kB / 0.5673 GB, free: 14.45 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.922e-05/0.4079, allocations: 12.86 kB / 0.5673 GB, free: 14.44 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.7e-05/0.408, allocations: 106.5 kB / 0.5674 GB, free: 14.31 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.4e-05/0.4081, allocations: 384 / 0.5674 GB, free: 14.31 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.126e-06/0.4081, allocations: 8.25 kB / 0.5675 GB, free: 14.3 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001096/0.4082, allocations: 63.7 kB / 0.5675 GB, free: 14.23 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.558e-06/0.4082, allocations: 0 / 0.5675 GB, free: 14.23 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.016e-06/0.4082, allocations: 0 / 0.5675 GB, free: 14.23 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.797e-06/0.4082, allocations: 0 / 0.5675 GB, free: 14.23 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.312e-05/0.4082, allocations: 29.7 kB / 0.5675 GB, free: 14.2 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001351/0.4084, allocations: 101.3 kB / 0.5676 GB, free: 14.07 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.328e-05/0.4084, allocations: 48.3 kB / 0.5677 GB, free: 14 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.798e-05/0.4084, allocations: 34.5 kB / 0.5677 GB, free: 13.96 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.869e-06/0.4085, allocations: 4 kB / 0.5677 GB, free: 13.96 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.362e-05/0.4085, allocations: 60.33 kB / 0.5678 GB, free: 13.88 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 8.42e-07/0.4085, allocations: 0 / 0.5678 GB, free: 13.88 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002199/0.4087, allocations: 122.7 kB / 0.5679 GB, free: 13.74 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.925e-05/0.4088, allocations: 77.11 kB / 0.568 GB, free: 13.64 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.833e-05/0.4089, allocations: 93.81 kB / 0.5681 GB, free: 13.54 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.523e-05/0.4089, allocations: 25.7 kB / 0.5681 GB, free: 13.51 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.69e-05/0.4089, allocations: 84.14 kB / 0.5682 GB, free: 13.43 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.523e-05/0.4089, allocations: 0 / 0.5682 GB, free: 13.43 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.874e-05/0.409, allocations: 9.844 kB / 0.5682 GB, free: 13.41 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001602/0.4091, allocations: 322.8 kB / 0.5685 GB, free: 13.09 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.498e-05/0.4091, allocations: 29.64 kB / 0.5685 GB, free: 13.05 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.179e-05/0.4092, allocations: 29.69 kB / 0.5685 GB, free: 13.02 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.816e-05/0.4092, allocations: 60.27 kB / 0.5686 GB, free: 12.94 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.4092, allocations: 0 / 0.5686 GB, free: 12.94 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.000102/0.4093, allocations: 89.11 kB / 0.5687 GB, free: 12.84 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.751e-05/0.4094, allocations: 33.69 kB / 0.5687 GB, free: 12.8 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.272e-06/0.4094, allocations: 4 kB / 0.5687 GB, free: 12.79 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.684e-05/0.4094, allocations: 3.938 kB / 0.5687 GB, free: 12.79 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.52e-07/0.4094, allocations: 4.094 kB / 0.5687 GB, free: 12.79 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.33e-06/0.4094, allocations: 0 / 0.5687 GB, free: 12.79 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.417e-05/0.4094, allocations: 0 / 0.5687 GB, free: 12.79 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.71e-06/0.4094, allocations: 0 / 0.5687 GB, free: 12.79 MB / 414.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.0001063/0.4095, allocations: 139.5 kB / 0.5689 GB, free: 12.63 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.454e-06/0.4095, allocations: 0 / 0.5689 GB, free: 12.63 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.374e-05/0.4095, allocations: 6.938 kB / 0.5689 GB, free: 12.62 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.413e-06/0.4095, allocations: 0 / 0.5689 GB, free: 12.62 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/0.4095, allocations: 7.938 kB / 0.5689 GB, free: 12.62 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.4096, allocations: 3.984 kB / 0.5689 GB, free: 12.61 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.195e-05/0.4096, allocations: 97.33 kB / 0.569 GB, free: 12.49 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.71e-07/0.4096, allocations: 3.938 kB / 0.569 GB, free: 12.48 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.4e-07/0.4096, allocations: 0 / 0.569 GB, free: 12.48 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.62e-07/0.4096, allocations: 0 / 0.569 GB, free: 12.48 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.429e-05/0.4097, allocations: 12 kB / 0.569 GB, free: 12.47 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.805e-06/0.4097, allocations: 3.938 kB / 0.569 GB, free: 12.47 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.4097, allocations: 0 / 0.569 GB, free: 12.47 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001252/0.4098, allocations: 116.5 kB / 0.5691 GB, free: 12.32 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.05e-06/0.4098, allocations: 0 / 0.5691 GB, free: 12.32 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.223e-05/0.4098, allocations: 0 / 0.5691 GB, free: 12.32 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.25e-05/0.4098, allocations: 7.969 kB / 0.5691 GB, free: 12.32 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.642e-05/0.4098, allocations: 4 kB / 0.5691 GB, free: 12.31 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.445e-06/0.4098, allocations: 0 / 0.5691 GB, free: 12.31 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.387e-05/0.4099, allocations: 79.22 kB / 0.5692 GB, free: 12.23 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.4099, allocations: 0 / 0.5692 GB, free: 12.23 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004778/0.4103, allocations: 159.5 kB / 0.5693 GB, free: 12.08 MB / 414.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.0008028/0.4111, allocations: 395.2 kB / 0.5697 GB, free: 11.69 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001366/0.4113, allocations: 110.8 kB / 0.5698 GB, free: 11.56 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.4113, allocations: 0 / 0.5698 GB, free: 11.56 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.753e-05/0.4113, allocations: 81.11 kB / 0.5699 GB, free: 11.46 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001315/0.4115, allocations: 4 kB / 0.5699 GB, free: 11.46 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002714/0.4117, allocations: 140.5 kB / 0.57 GB, free: 11.28 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.28e-05/0.4118, allocations: 55.36 kB / 0.5701 GB, free: 11.21 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.505e-05/0.4118, allocations: 7.438 kB / 0.5701 GB, free: 11.2 MB / 414.1 MB Notification: Performance of SimCode: time 4.41e-07/0.4118, allocations: 0 / 0.5701 GB, free: 11.2 MB / 414.1 MB Notification: Performance of Templates: time 0.007189/0.419, allocations: 3.928 MB / 0.5739 GB, free: 7.266 MB / 414.1 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/ComplexMath/TestComplexFunctions/TestComplexFunctions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.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: 7.722667463996913]